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

Side by Side Diff: chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h

Issue 1995813002: Use the virtual URL of the page in the Page Info Bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac build Created 4 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // implementation in WebsiteSettingsBubbleController. 106 // implementation in WebsiteSettingsBubbleController.
107 class WebsiteSettingsUIBridge : public content::WebContentsObserver, 107 class WebsiteSettingsUIBridge : public content::WebContentsObserver,
108 public WebsiteSettingsUI { 108 public WebsiteSettingsUI {
109 public: 109 public:
110 explicit WebsiteSettingsUIBridge(content::WebContents* web_contents); 110 explicit WebsiteSettingsUIBridge(content::WebContents* web_contents);
111 ~WebsiteSettingsUIBridge() override; 111 ~WebsiteSettingsUIBridge() override;
112 112
113 // Creates a |WebsiteSettingsBubbleController| and displays the UI. |parent| 113 // Creates a |WebsiteSettingsBubbleController| and displays the UI. |parent|
114 // is the currently active window. |profile| points to the currently active 114 // is the currently active window. |profile| points to the currently active
115 // profile. |web_contents| points to the WebContents that wraps the currently 115 // profile. |web_contents| points to the WebContents that wraps the currently
116 // active tab. |url| is the GURL of the currently active 116 // active tab. |virtual_url| is the virtual GURL of the currently active
117 // tab. |security_info| is the 117 // tab. |security_info| is the
118 // |security_state::SecurityStateModel::SecurityInfo| of 118 // |security_state::SecurityStateModel::SecurityInfo| of
119 // the connection to the website in the currently active tab. 119 // the connection to the website in the currently active tab.
120 static void Show( 120 static void Show(
121 gfx::NativeWindow parent, 121 gfx::NativeWindow parent,
122 Profile* profile, 122 Profile* profile,
123 content::WebContents* web_contents, 123 content::WebContents* web_contents,
124 const GURL& url, 124 const GURL& virtual_url,
125 const security_state::SecurityStateModel::SecurityInfo& security_info); 125 const security_state::SecurityStateModel::SecurityInfo& security_info);
126 126
127 void set_bubble_controller( 127 void set_bubble_controller(
128 WebsiteSettingsBubbleController* bubble_controller); 128 WebsiteSettingsBubbleController* bubble_controller);
129 129
130 // WebContentsObserver implementation. 130 // WebContentsObserver implementation.
131 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; 131 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override;
132 132
133 // WebsiteSettingsUI implementations. 133 // WebsiteSettingsUI implementations.
134 void SetCookieInfo(const CookieInfoList& cookie_info_list) override; 134 void SetCookieInfo(const CookieInfoList& cookie_info_list) override;
135 void SetPermissionInfo( 135 void SetPermissionInfo(
136 const PermissionInfoList& permission_info_list, 136 const PermissionInfoList& permission_info_list,
137 const ChosenObjectInfoList& chosen_object_info_list) override; 137 const ChosenObjectInfoList& chosen_object_info_list) override;
138 void SetIdentityInfo(const IdentityInfo& identity_info) override; 138 void SetIdentityInfo(const IdentityInfo& identity_info) override;
139 void SetSelectedTab(TabId tab_id) override; 139 void SetSelectedTab(TabId tab_id) override;
140 140
141 private: 141 private:
142 // The WebContents the bubble UI is attached to. 142 // The WebContents the bubble UI is attached to.
143 content::WebContents* web_contents_; 143 content::WebContents* web_contents_;
144 144
145 // The Cocoa controller for the bubble UI. 145 // The Cocoa controller for the bubble UI.
146 WebsiteSettingsBubbleController* bubble_controller_; 146 WebsiteSettingsBubbleController* bubble_controller_;
147 147
148 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge); 148 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge);
149 }; 149 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698