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

Unified Diff: chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h

Issue 2448943002: Refactor SecurityStateModel/Clients for simplicity and reusability. (Closed)
Patch Set: sync. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h b/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h
index 04ecb58dee43a68f27997ecf80c13cf4a60ed84a..fd10658d0615bb964c1175e36965839acc8e453d 100644
--- a/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h
@@ -10,7 +10,6 @@
#include "base/macros.h"
#import "chrome/browser/ui/cocoa/base_bubble_controller.h"
#include "chrome/browser/ui/website_settings/website_settings_ui.h"
-#include "components/security_state/security_state_model.h"
#include "content/public/browser/web_contents_observer.h"
class WebsiteSettingsUIBridge;
@@ -23,6 +22,10 @@ namespace net {
class X509Certificate;
}
+namespace security_state {
+struct SecurityInfo;
+} // namespace security_state
+
// This NSWindowController subclass manages the InfoBubbleWindow and view that
// are displayed when the user clicks the favicon or security lock icon.
//
@@ -124,15 +127,13 @@ class WebsiteSettingsUIBridge : public content::WebContentsObserver,
// is the currently active window. |profile| points to the currently active
// profile. |web_contents| points to the WebContents that wraps the currently
// active tab. |virtual_url| is the virtual GURL of the currently active
- // tab. |security_info| is the
- // |security_state::SecurityStateModel::SecurityInfo| of
- // the connection to the website in the currently active tab.
- static void Show(
- gfx::NativeWindow parent,
- Profile* profile,
- content::WebContents* web_contents,
- const GURL& virtual_url,
- const security_state::SecurityStateModel::SecurityInfo& security_info);
+ // tab. |security_info| is the |security_state::SecurityInfo| of the
+ // connection to the website in the currently active tab.
+ static void Show(gfx::NativeWindow parent,
+ Profile* profile,
+ content::WebContents* web_contents,
+ const GURL& virtual_url,
+ const security_state::SecurityInfo& security_info);
void set_bubble_controller(
WebsiteSettingsBubbleController* bubble_controller);

Powered by Google App Engine
This is Rietveld 408576698