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

Side by Side Diff: chrome/browser/ui/android/page_info/page_info_popup_android.h

Issue 2754383004: Rename WebsiteSettings code to PageInfo. (Closed)
Patch Set: Upload missing comment fix for WebSettingsUI -> PageInfoUI. Created 3 years, 9 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_PAGE_INFO_WEBSITE_SETTINGS_POPUP_ANDROID_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_PAGE_INFO_PAGE_INFO_POPUP_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_PAGE_INFO_WEBSITE_SETTINGS_POPUP_ANDROID_H_ 6 #define CHROME_BROWSER_UI_ANDROID_PAGE_INFO_PAGE_INFO_POPUP_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/android/scoped_java_ref.h" 12 #include "base/android/scoped_java_ref.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "chrome/browser/ui/page_info/website_settings_ui.h" 14 #include "chrome/browser/ui/page_info/page_info_ui.h"
15 15
16 namespace content { 16 namespace content {
17 class WebContents; 17 class WebContents;
18 } 18 }
19 19
20 class SearchGeolocationService; 20 class SearchGeolocationService;
21 21
22 // A Java counterpart will be generated for this enum. 22 // A Java counterpart will be generated for this enum.
23 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser 23 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser
24 enum PageInfoConnectionType { 24 enum PageInfoConnectionType {
25 CONNECTION_UNKNOWN, 25 CONNECTION_UNKNOWN,
26 CONNECTION_ENCRYPTED, 26 CONNECTION_ENCRYPTED,
27 CONNECTION_MIXED_CONTENT, 27 CONNECTION_MIXED_CONTENT,
28 CONNECTION_UNENCRYPTED, 28 CONNECTION_UNENCRYPTED,
29 CONNECTION_ENCRYPTED_ERROR, 29 CONNECTION_ENCRYPTED_ERROR,
30 CONNECTION_INTERNAL_PAGE, 30 CONNECTION_INTERNAL_PAGE,
31 }; 31 };
32 32
33 // Android implementation of the website settings UI. 33 // Android implementation of the page info UI.
34 class WebsiteSettingsPopupAndroid : public WebsiteSettingsUI { 34 class PageInfoPopupAndroid : public PageInfoUI {
35 public: 35 public:
36 WebsiteSettingsPopupAndroid(JNIEnv* env, 36 PageInfoPopupAndroid(JNIEnv* env,
37 jobject java_website_settings, 37 jobject java_page_info,
38 content::WebContents* web_contents); 38 content::WebContents* web_contents);
39 ~WebsiteSettingsPopupAndroid() override; 39 ~PageInfoPopupAndroid() override;
40 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); 40 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
41 void RecordWebsiteSettingsAction( 41 void RecordPageInfoAction(JNIEnv* env,
42 JNIEnv* env, 42 const base::android::JavaParamRef<jobject>& obj,
43 const base::android::JavaParamRef<jobject>& obj, 43 jint action);
44 jint action);
45 44
46 // WebsiteSettingsUI implementations. 45 // PageInfoUI implementations.
47 void SetCookieInfo(const CookieInfoList& cookie_info_list) override; 46 void SetCookieInfo(const CookieInfoList& cookie_info_list) override;
48 void SetPermissionInfo(const PermissionInfoList& permission_info_list, 47 void SetPermissionInfo(const PermissionInfoList& permission_info_list,
49 ChosenObjectInfoList chosen_object_info_list) override; 48 ChosenObjectInfoList chosen_object_info_list) override;
50 void SetIdentityInfo(const IdentityInfo& identity_info) override; 49 void SetIdentityInfo(const IdentityInfo& identity_info) override;
51 50
52 static bool RegisterWebsiteSettingsPopupAndroid(JNIEnv* env); 51 static bool RegisterPageInfoPopupAndroid(JNIEnv* env);
53 52
54 private: 53 private:
55 // The presenter that controlls the Website Settings UI. 54 // The presenter that controlls the Page Info UI.
56 std::unique_ptr<WebsiteSettings> presenter_; 55 std::unique_ptr<PageInfo> presenter_;
57 56
58 // The java prompt implementation. 57 // The java prompt implementation.
59 base::android::ScopedJavaGlobalRef<jobject> popup_jobject_; 58 base::android::ScopedJavaGlobalRef<jobject> popup_jobject_;
60 59
61 // Owned by the profile. 60 // Owned by the profile.
62 SearchGeolocationService* search_geolocation_service_; 61 SearchGeolocationService* search_geolocation_service_;
63 62
64 GURL url_; 63 GURL url_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopupAndroid); 65 DISALLOW_COPY_AND_ASSIGN(PageInfoPopupAndroid);
67 }; 66 };
68 67
69 #endif // CHROME_BROWSER_UI_ANDROID_PAGE_INFO_WEBSITE_SETTINGS_POPUP_ANDROID_H_ 68 #endif // CHROME_BROWSER_UI_ANDROID_PAGE_INFO_PAGE_INFO_POPUP_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698