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

Side by Side Diff: chrome/browser/ui/android/page_info/connection_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CONNECTION_INFO_POPUP_ANDROID_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_PAGE_INFO_CONNECTION_INFO_POPUP_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_PAGE_INFO_CONNECTION_INFO_POPUP_ANDROID_H_ 6 #define CHROME_BROWSER_UI_ANDROID_PAGE_INFO_CONNECTION_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 // Android implementation of the website settings UI which displays detailed 20 // Android implementation of the page info UI which displays detailed
21 // connection and certificate information for the website. 21 // connection and certificate information for the website.
22 class ConnectionInfoPopupAndroid : public WebsiteSettingsUI { 22 class ConnectionInfoPopupAndroid : public PageInfoUI {
23 public: 23 public:
24 ConnectionInfoPopupAndroid(JNIEnv* env, 24 ConnectionInfoPopupAndroid(JNIEnv* env,
25 jobject java_website_settings, 25 jobject java_page_info,
26 content::WebContents* web_contents); 26 content::WebContents* web_contents);
27 ~ConnectionInfoPopupAndroid() override; 27 ~ConnectionInfoPopupAndroid() override;
28 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); 28 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
29 29
30 // Revokes any current user exceptions for bypassing SSL error interstitials 30 // Revokes any current user exceptions for bypassing SSL error interstitials
31 // on this page. 31 // on this page.
32 void ResetCertDecisions( 32 void ResetCertDecisions(
33 JNIEnv* env, 33 JNIEnv* env,
34 const base::android::JavaParamRef<jobject>& obj, 34 const base::android::JavaParamRef<jobject>& obj,
35 const base::android::JavaParamRef<jobject>& java_web_contents); 35 const base::android::JavaParamRef<jobject>& java_web_contents);
36 36
37 // WebsiteSettingsUI implementations. 37 // PageInfoUI implementations.
38 void SetCookieInfo(const CookieInfoList& cookie_info_list) override; 38 void SetCookieInfo(const CookieInfoList& cookie_info_list) override;
39 void SetPermissionInfo(const PermissionInfoList& permission_info_list, 39 void SetPermissionInfo(const PermissionInfoList& permission_info_list,
40 ChosenObjectInfoList chosen_object_info_list) override; 40 ChosenObjectInfoList chosen_object_info_list) override;
41 void SetIdentityInfo(const IdentityInfo& identity_info) override; 41 void SetIdentityInfo(const IdentityInfo& identity_info) override;
42 42
43 static bool RegisterConnectionInfoPopupAndroid(JNIEnv* env); 43 static bool RegisterConnectionInfoPopupAndroid(JNIEnv* env);
44 44
45 private: 45 private:
46 // The presenter that controls the Website Settings UI. 46 // The presenter that controls the Page Info UI.
47 std::unique_ptr<WebsiteSettings> presenter_; 47 std::unique_ptr<PageInfo> presenter_;
48 48
49 // The java prompt implementation. 49 // The java prompt implementation.
50 base::android::ScopedJavaGlobalRef<jobject> popup_jobject_; 50 base::android::ScopedJavaGlobalRef<jobject> popup_jobject_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(ConnectionInfoPopupAndroid); 52 DISALLOW_COPY_AND_ASSIGN(ConnectionInfoPopupAndroid);
53 }; 53 };
54 54
55 #endif // CHROME_BROWSER_UI_ANDROID_PAGE_INFO_CONNECTION_INFO_POPUP_ANDROID_H_ 55 #endif // CHROME_BROWSER_UI_ANDROID_PAGE_INFO_CONNECTION_INFO_POPUP_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/android/page_info/connection_info_popup_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698