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 CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 411 virtual bool AllowWebRTCIdentityCache(const GURL& url, | 411 virtual bool AllowWebRTCIdentityCache(const GURL& url, |
| 412 const GURL& first_party_url, | 412 const GURL& first_party_url, |
| 413 ResourceContext* context); | 413 ResourceContext* context); |
| 414 #endif // defined(ENABLE_WEBRTC) | 414 #endif // defined(ENABLE_WEBRTC) |
| 415 | 415 |
| 416 // Allow the embedder to control whether we can use <keygen>. | 416 // Allow the embedder to control whether we can use <keygen>. |
| 417 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context); | 417 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context); |
| 418 | 418 |
| 419 // Allow the embedder to control whether we can use Web Bluetooth. | 419 // Allow the embedder to control whether we can use Web Bluetooth. |
| 420 // TODO(crbug.com/589228): Replace this with a use of the permission system. | 420 // TODO(crbug.com/589228): Replace this with a use of the permission system. |
| 421 virtual bool AllowWebBluetooth(content::BrowserContext* browser_context, | 421 enum class AllowWebBluetoothResult { |
| 422 const url::Origin& requesting_origin, | 422 ALLOW, |
| 423 const url::Origin& embedding_origin); | 423 BLOCK_POLICY, |
| 424 BLOCK_KILL_SWITCH, | |
|
jam
2016/03/29 18:06:18
can we keep the "kill switch" concept out of conte
Jeffrey Yasskin
2016/03/29 23:13:04
Sure, unless Kendra wants to argue that it ought t
kcarattini
2016/03/30 00:45:59
No argument here.
| |
| 425 }; | |
| 426 virtual AllowWebBluetoothResult AllowWebBluetooth( | |
| 427 content::BrowserContext* browser_context, | |
| 428 const url::Origin& requesting_origin, | |
| 429 const url::Origin& embedding_origin); | |
| 424 | 430 |
| 425 // Allow the embedder to override the request context based on the URL for | 431 // Allow the embedder to override the request context based on the URL for |
| 426 // certain operations, like cookie access. Returns nullptr to indicate the | 432 // certain operations, like cookie access. Returns nullptr to indicate the |
| 427 // regular request context should be used. | 433 // regular request context should be used. |
| 428 // This is called on the IO thread. | 434 // This is called on the IO thread. |
| 429 virtual net::URLRequestContext* OverrideRequestContextForURL( | 435 virtual net::URLRequestContext* OverrideRequestContextForURL( |
| 430 const GURL& url, ResourceContext* context); | 436 const GURL& url, ResourceContext* context); |
| 431 | 437 |
| 432 // Allow the embedder to specify a string version of the storage partition | 438 // Allow the embedder to specify a string version of the storage partition |
| 433 // config with a site. | 439 // config with a site. |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 777 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 783 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 778 // implementation. Return nullptr to disable external surface video. | 784 // implementation. Return nullptr to disable external surface video. |
| 779 virtual ExternalVideoSurfaceContainer* | 785 virtual ExternalVideoSurfaceContainer* |
| 780 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 786 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 781 #endif | 787 #endif |
| 782 }; | 788 }; |
| 783 | 789 |
| 784 } // namespace content | 790 } // namespace content |
| 785 | 791 |
| 786 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 792 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |