Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROME_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 int render_process_id, | 177 int render_process_id, |
| 178 int render_frame_id, | 178 int render_frame_id, |
| 179 net::SSLCertRequestInfo* cert_request_info, | 179 net::SSLCertRequestInfo* cert_request_info, |
| 180 const base::Callback<void(net::X509Certificate*)>& callback) override; | 180 const base::Callback<void(net::X509Certificate*)>& callback) override; |
| 181 virtual void AddCertificate(net::CertificateMimeType cert_type, | 181 virtual void AddCertificate(net::CertificateMimeType cert_type, |
| 182 const void* cert_data, | 182 const void* cert_data, |
| 183 size_t cert_size, | 183 size_t cert_size, |
| 184 int render_process_id, | 184 int render_process_id, |
| 185 int render_frame_id) override; | 185 int render_frame_id) override; |
| 186 virtual content::MediaObserver* GetMediaObserver() override; | 186 virtual content::MediaObserver* GetMediaObserver() override; |
| 187 virtual void RequestDesktopNotificationPermission( | |
| 188 const GURL& source_origin, | |
| 189 content::RenderFrameHost* render_frame_host, | |
| 190 const base::Callback<void(blink::WebNotificationPermission)>& callback) | |
| 191 override; | |
| 192 virtual blink::WebNotificationPermission | 187 virtual blink::WebNotificationPermission |
| 193 CheckDesktopNotificationPermission( | 188 CheckDesktopNotificationPermission( |
| 194 const GURL& source_origin, | 189 const GURL& source_origin, |
| 195 content::ResourceContext* context, | 190 content::ResourceContext* context, |
| 196 int render_process_id) override; | 191 int render_process_id) override; |
| 197 virtual void ShowDesktopNotification( | 192 virtual void ShowDesktopNotification( |
| 198 const content::ShowDesktopNotificationHostMsgParams& params, | 193 const content::ShowDesktopNotificationHostMsgParams& params, |
| 199 content::RenderFrameHost* render_frame_host, | 194 content::RenderFrameHost* render_frame_host, |
| 200 scoped_ptr<content::DesktopNotificationDelegate> delegate, | 195 scoped_ptr<content::DesktopNotificationDelegate> delegate, |
| 201 base::Closure* cancel_callback) override; | 196 base::Closure* cancel_callback) override; |
| 202 virtual void RequestGeolocationPermission( | 197 virtual void RequestPermission( |
| 203 content::WebContents* web_contents, | 198 content::PermissionType permission, |
| 204 int bridge_id, | 199 content::WebContents* web_contents, |
| 205 const GURL& requesting_frame, | 200 int bridge_id, |
| 206 bool user_gesture, | 201 const GURL& requesting_frame, |
| 207 const base::Callback<void(bool)>& result_callback) override; | 202 bool user_gesture, |
| 208 virtual void CancelGeolocationPermissionRequest( | 203 const base::Callback<void(bool)>& result_callback) override; |
|
Peter Beverloo
2014/10/20 17:32:16
5-space indent??
Also, please remove the blank li
Miguel Garcia
2014/10/21 17:17:12
Done.
| |
| 204 | |
| 205 virtual void CancelPermissionRequest( | |
| 206 content::PermissionType permission, | |
| 209 content::WebContents* web_contents, | 207 content::WebContents* web_contents, |
| 210 int bridge_id, | 208 int bridge_id, |
| 211 const GURL& requesting_frame) override; | 209 const GURL& requesting_frame) override; |
| 212 virtual void RequestMidiSysExPermission( | 210 |
| 211 virtual void RegisterPermissionUsage( | |
| 212 content::PermissionType permission, | |
| 213 content::WebContents* web_contents, | 213 content::WebContents* web_contents, |
| 214 int bridge_id, | 214 const GURL& frame_url, |
| 215 const GURL& requesting_frame, | 215 const GURL& main_frame_url) override; |
| 216 bool user_gesture, | 216 |
| 217 base::Callback<void(bool)> result_callback, | |
| 218 base::Closure* cancel_callback) override; | |
| 219 virtual void DidUseGeolocationPermission(content::WebContents* web_contents, | |
| 220 const GURL& frame_url, | |
| 221 const GURL& main_frame_url) override; | |
| 222 virtual void RequestProtectedMediaIdentifierPermission( | |
| 223 content::WebContents* web_contents, | |
| 224 const GURL& origin, | |
| 225 base::Callback<void(bool)> result_callback, | |
| 226 base::Closure* cancel_callback) override; | |
| 227 virtual bool CanCreateWindow(const GURL& opener_url, | 217 virtual bool CanCreateWindow(const GURL& opener_url, |
| 228 const GURL& opener_top_level_frame_url, | 218 const GURL& opener_top_level_frame_url, |
| 229 const GURL& source_origin, | 219 const GURL& source_origin, |
| 230 WindowContainerType container_type, | 220 WindowContainerType container_type, |
| 231 const GURL& target_url, | 221 const GURL& target_url, |
| 232 const content::Referrer& referrer, | 222 const content::Referrer& referrer, |
| 233 WindowOpenDisposition disposition, | 223 WindowOpenDisposition disposition, |
| 234 const blink::WebWindowFeatures& features, | 224 const blink::WebWindowFeatures& features, |
| 235 bool user_gesture, | 225 bool user_gesture, |
| 236 bool opener_suppressed, | 226 bool opener_suppressed, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 354 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 344 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 355 | 345 |
| 356 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 346 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 357 | 347 |
| 358 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 348 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 359 }; | 349 }; |
| 360 | 350 |
| 361 } // namespace chrome | 351 } // namespace chrome |
| 362 | 352 |
| 363 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 353 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |