Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / android / website_settings_popup_android.h
blob33bb7713c9df5c2a733b0014353cd6f4dbafea72
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_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_
8 #include <jni.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"
15 namespace content {
16 class WebContents;
19 // A Java counterpart will be generated for this enum.
20 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser
21 enum PageInfoConnectionType {
22 CONNECTION_UNKNOWN,
23 CONNECTION_ENCRYPTED,
24 CONNECTION_MIXED_CONTENT,
25 CONNECTION_UNENCRYPTED,
26 CONNECTION_ENCRYPTED_ERROR,
27 CONNECTION_INTERNAL_PAGE,
30 // Android implementation of the website settings UI.
31 class WebsiteSettingsPopupAndroid : public WebsiteSettingsUI {
32 public:
33 WebsiteSettingsPopupAndroid(JNIEnv* env,
34 jobject java_website_settings,
35 content::WebContents* web_contents);
36 ~WebsiteSettingsPopupAndroid() override;
37 void Destroy(JNIEnv* env, jobject obj);
38 void OnPermissionSettingChanged(JNIEnv* env,
39 jobject obj,
40 jint type,
41 jint setting);
43 // WebsiteSettingsUI implementations.
44 void SetCookieInfo(const CookieInfoList& cookie_info_list) override;
45 void SetPermissionInfo(
46 const PermissionInfoList& permission_info_list) override;
47 void SetIdentityInfo(const IdentityInfo& identity_info) override;
48 void SetFirstVisit(const base::string16& first_visit) override;
49 void SetSelectedTab(WebsiteSettingsUI::TabId tab_id) override;
51 static bool RegisterWebsiteSettingsPopupAndroid(JNIEnv* env);
53 private:
54 // The presenter that controlls the Website Settings UI.
55 scoped_ptr<WebsiteSettings> presenter_;
57 // The java prompt implementation.
58 base::android::ScopedJavaGlobalRef<jobject> popup_jobject_;
60 GURL url_;
62 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupAndroid);
65 #endif // CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_