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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // and potentially reused for future requests (within the same origin). | 403 // and potentially reused for future requests (within the same origin). |
404 // This is called on the IO thread. | 404 // This is called on the IO thread. |
405 virtual bool AllowWebRTCIdentityCache(const GURL& url, | 405 virtual bool AllowWebRTCIdentityCache(const GURL& url, |
406 const GURL& first_party_url, | 406 const GURL& first_party_url, |
407 ResourceContext* context); | 407 ResourceContext* context); |
408 #endif // defined(ENABLE_WEBRTC) | 408 #endif // defined(ENABLE_WEBRTC) |
409 | 409 |
410 // Allow the embedder to control whether we can use <keygen>. | 410 // Allow the embedder to control whether we can use <keygen>. |
411 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context); | 411 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context); |
412 | 412 |
| 413 // Allow the embedder to control whether we can use Web Bluetooth. |
| 414 // TODO(https://crbug.com/563724): Replace this with a proper use of the |
| 415 // permissions system. |
| 416 virtual bool AllowWebBluetooth(); |
| 417 |
413 // Allow the embedder to override the request context based on the URL for | 418 // Allow the embedder to override the request context based on the URL for |
414 // certain operations, like cookie access. Returns nullptr to indicate the | 419 // certain operations, like cookie access. Returns nullptr to indicate the |
415 // regular request context should be used. | 420 // regular request context should be used. |
416 // This is called on the IO thread. | 421 // This is called on the IO thread. |
417 virtual net::URLRequestContext* OverrideRequestContextForURL( | 422 virtual net::URLRequestContext* OverrideRequestContextForURL( |
418 const GURL& url, ResourceContext* context); | 423 const GURL& url, ResourceContext* context); |
419 | 424 |
420 // Allow the embedder to specify a string version of the storage partition | 425 // Allow the embedder to specify a string version of the storage partition |
421 // config with a site. | 426 // config with a site. |
422 virtual std::string GetStoragePartitionIdForSite( | 427 virtual std::string GetStoragePartitionIdForSite( |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 770 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
766 // implementation. Return nullptr to disable external surface video. | 771 // implementation. Return nullptr to disable external surface video. |
767 virtual ExternalVideoSurfaceContainer* | 772 virtual ExternalVideoSurfaceContainer* |
768 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 773 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
769 #endif | 774 #endif |
770 }; | 775 }; |
771 | 776 |
772 } // namespace content | 777 } // namespace content |
773 | 778 |
774 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 779 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |