1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_LEGACY_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_LEGACY_ANDROID_H_
10 #include "base/android/scoped_java_ref.h"
11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/ui/website_settings/website_settings_ui.h"
19 // Android implementation of the website settings UI.
20 class WebsiteSettingsPopupLegacyAndroid : public WebsiteSettingsUI {
22 WebsiteSettingsPopupLegacyAndroid(JNIEnv* env,
23 jobject java_website_settings,
24 content::WebContents* web_contents);
25 virtual ~WebsiteSettingsPopupLegacyAndroid();
26 void Destroy(JNIEnv* env, jobject obj);
28 // Revokes any current user exceptions for bypassing SSL error interstitials
30 void ResetCertDecisions(JNIEnv* env, jobject obj, jobject java_web_contents);
32 // WebsiteSettingsUI implementations.
33 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) override;
34 virtual void SetPermissionInfo(
35 const PermissionInfoList& permission_info_list) override;
36 virtual void SetIdentityInfo(const IdentityInfo& identity_info) override;
37 virtual void SetFirstVisit(const base::string16& first_visit) override;
38 virtual void SetSelectedTab(WebsiteSettingsUI::TabId tab_id) override;
40 static bool RegisterWebsiteSettingsPopupLegacyAndroid(JNIEnv* env);
43 // The presenter that controlls the Website Settings UI.
44 scoped_ptr<WebsiteSettings> presenter_;
46 // The java prompt implementation.
47 base::android::ScopedJavaGlobalRef<jobject> popup_jobject_;
49 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupLegacyAndroid);
52 #endif // CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_LEGACY_ANDROID_H_