| 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 virtual bool AllowWebRTCIdentityCache(const GURL& url, | 400 virtual bool AllowWebRTCIdentityCache(const GURL& url, |
| 401 const GURL& first_party_url, | 401 const GURL& first_party_url, |
| 402 ResourceContext* context); | 402 ResourceContext* context); |
| 403 #endif // defined(ENABLE_WEBRTC) | 403 #endif // defined(ENABLE_WEBRTC) |
| 404 | 404 |
| 405 // Allow the embedder to control whether we can use <keygen>. | 405 // Allow the embedder to control whether we can use <keygen>. |
| 406 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context); | 406 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context); |
| 407 | 407 |
| 408 // Allow the embedder to control whether we can use Web Bluetooth. | 408 // Allow the embedder to control whether we can use Web Bluetooth. |
| 409 // TODO(crbug.com/589228): Replace this with a use of the permission system. | 409 // TODO(crbug.com/589228): Replace this with a use of the permission system. |
| 410 virtual bool AllowWebBluetooth(content::BrowserContext* browser_context, | 410 enum class AllowWebBluetoothResult { |
| 411 const url::Origin& requesting_origin, | 411 ALLOW, |
| 412 const url::Origin& embedding_origin); | 412 BLOCK_POLICY, |
| 413 BLOCK_GLOBALLY_DISABLED, |
| 414 }; |
| 415 virtual AllowWebBluetoothResult AllowWebBluetooth( |
| 416 content::BrowserContext* browser_context, |
| 417 const url::Origin& requesting_origin, |
| 418 const url::Origin& embedding_origin); |
| 413 | 419 |
| 414 // Allow the embedder to override the request context based on the URL for | 420 // Allow the embedder to override the request context based on the URL for |
| 415 // certain operations, like cookie access. Returns nullptr to indicate the | 421 // certain operations, like cookie access. Returns nullptr to indicate the |
| 416 // regular request context should be used. | 422 // regular request context should be used. |
| 417 // This is called on the IO thread. | 423 // This is called on the IO thread. |
| 418 virtual net::URLRequestContext* OverrideRequestContextForURL( | 424 virtual net::URLRequestContext* OverrideRequestContextForURL( |
| 419 const GURL& url, ResourceContext* context); | 425 const GURL& url, ResourceContext* context); |
| 420 | 426 |
| 421 // Allow the embedder to specify a string version of the storage partition | 427 // Allow the embedder to specify a string version of the storage partition |
| 422 // config with a site. | 428 // config with a site. |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 772 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 767 // implementation. Return nullptr to disable external surface video. | 773 // implementation. Return nullptr to disable external surface video. |
| 768 virtual ExternalVideoSurfaceContainer* | 774 virtual ExternalVideoSurfaceContainer* |
| 769 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 775 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 770 #endif | 776 #endif |
| 771 }; | 777 }; |
| 772 | 778 |
| 773 } // namespace content | 779 } // namespace content |
| 774 | 780 |
| 775 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 781 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |