Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / android / website_settings_popup_android.h
blobea9e5b2f56a64a07f7477bdd5b0325f3442862ac
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 // Androidimplementation of the website settings UI.
20 class WebsiteSettingsPopupAndroid : public WebsiteSettingsUI {
21 public:
22 static void Show(JNIEnv* env,
23 jobject context,
24 jobject java_content_view,
25 content::WebContents* web_contents);
27 virtual ~WebsiteSettingsPopupAndroid();
28 void Destroy(JNIEnv* env, jobject obj);
30 // WebsiteSettingsUI implementations.
31 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE;
32 virtual void SetPermissionInfo(
33 const PermissionInfoList& permission_info_list) OVERRIDE;
34 virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE;
35 virtual void SetFirstVisit(const base::string16& first_visit) OVERRIDE;
36 virtual void SetSelectedTab(WebsiteSettingsUI::TabId tab_id) OVERRIDE;
38 static bool RegisterWebsiteSettingsPopupAndroid(JNIEnv* env);
40 private:
41 WebsiteSettingsPopupAndroid(JNIEnv* env,
42 jobject context,
43 jobject java_content_view,
44 content::WebContents* web_contents);
46 // The presenter that controlls the Website Settings UI.
47 scoped_ptr<WebsiteSettings> presenter_;
49 // The java prompt implementation.
50 base::android::ScopedJavaGlobalRef<jobject> popup_jobject_;
52 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupAndroid);
55 #endif // CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_