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

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

Powered by Google App Engine
This is Rietveld 408576698