Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: chrome/browser/ui/android/website_settings_popup_android.h

Issue 516703002: Replaced the current WebsiteSettings dialog with a new PageInfo dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing template files for PageInfoConnectionType enum Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ 6 #define CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/ui/website_settings/website_settings_ui.h" 13 #include "chrome/browser/ui/website_settings/website_settings_ui.h"
14 14
15 namespace content { 15 namespace content {
16 class WebContents; 16 class WebContents;
17 } 17 }
18 18
19 enum PageInfoConnectionType {
20 #define DEFINE_PAGE_INFO_CONNECTION_TYPE(x, y) PAGE_INFO_##x = y,
21 #include "ui/gfx/android/page_info_connection_type_list.h"
Ted C 2014/09/03 20:44:49 I think the new method of generating enums is prob
sashab 2014/09/19 02:29:48 Ahh... And it's landed. Alright, I'll switch over
22 #undef DEFINE_PAGE_INFO_CONNECTION_TYPE
23 };
24
19 // Android implementation of the website settings UI. 25 // Android implementation of the website settings UI.
20 class WebsiteSettingsPopupAndroid : public WebsiteSettingsUI { 26 class WebsiteSettingsPopupAndroid : public WebsiteSettingsUI {
21 public: 27 public:
22 WebsiteSettingsPopupAndroid(JNIEnv* env, 28 WebsiteSettingsPopupAndroid(JNIEnv* env,
23 jobject java_website_settings, 29 jobject java_website_settings,
24 content::WebContents* web_contents); 30 content::WebContents* web_contents);
25 virtual ~WebsiteSettingsPopupAndroid(); 31 virtual ~WebsiteSettingsPopupAndroid();
26 void Destroy(JNIEnv* env, jobject obj); 32 void Destroy(JNIEnv* env, jobject obj);
27 33
28 // Revokes any current user exceptions for bypassing SSL error interstitials
29 // on this page.
30 void ResetCertDecisions(JNIEnv* env, jobject obj, jobject java_web_contents);
31
32 // WebsiteSettingsUI implementations. 34 // WebsiteSettingsUI implementations.
33 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE; 35 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) OVERRIDE;
34 virtual void SetPermissionInfo( 36 virtual void SetPermissionInfo(
35 const PermissionInfoList& permission_info_list) OVERRIDE; 37 const PermissionInfoList& permission_info_list) OVERRIDE;
36 virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE; 38 virtual void SetIdentityInfo(const IdentityInfo& identity_info) OVERRIDE;
37 virtual void SetFirstVisit(const base::string16& first_visit) OVERRIDE; 39 virtual void SetFirstVisit(const base::string16& first_visit) OVERRIDE;
38 virtual void SetSelectedTab(WebsiteSettingsUI::TabId tab_id) OVERRIDE; 40 virtual void SetSelectedTab(WebsiteSettingsUI::TabId tab_id) OVERRIDE;
39 41
40 static bool RegisterWebsiteSettingsPopupAndroid(JNIEnv* env); 42 static bool RegisterWebsiteSettingsPopupAndroid(JNIEnv* env);
41 43
42 private: 44 private:
43 // The presenter that controlls the Website Settings UI. 45 // The presenter that controlls the Website Settings UI.
44 scoped_ptr<WebsiteSettings> presenter_; 46 scoped_ptr<WebsiteSettings> presenter_;
45 47
46 // The java prompt implementation. 48 // The java prompt implementation.
47 base::android::ScopedJavaGlobalRef<jobject> popup_jobject_; 49 base::android::ScopedJavaGlobalRef<jobject> popup_jobject_;
48 50
51 GURL url_;
52
49 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupAndroid); 53 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupAndroid);
50 }; 54 };
51 55
52 #endif // CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_ 56 #endif // CHROME_BROWSER_UI_ANDROID_WEBSITE_SETTINGS_POPUP_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698