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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 398 |
399 #if defined(ENABLE_WEBRTC) | 399 #if defined(ENABLE_WEBRTC) |
400 // Allow the embedder to control if WebRTC identities are allowed to be cached | 400 // Allow the embedder to control if WebRTC identities are allowed to be cached |
401 // and potentially reused for future requests (within the same origin). | 401 // and potentially reused for future requests (within the same origin). |
402 // This is called on the IO thread. | 402 // This is called on the IO thread. |
403 virtual bool AllowWebRTCIdentityCache(const GURL& url, | 403 virtual bool AllowWebRTCIdentityCache(const GURL& url, |
404 const GURL& first_party_url, | 404 const GURL& first_party_url, |
405 ResourceContext* context); | 405 ResourceContext* context); |
406 #endif // defined(ENABLE_WEBRTC) | 406 #endif // defined(ENABLE_WEBRTC) |
407 | 407 |
| 408 // Allow the embedder to control whether we can use <keygen>. |
| 409 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context); |
| 410 |
408 // Allow the embedder to override the request context based on the URL for | 411 // Allow the embedder to override the request context based on the URL for |
409 // certain operations, like cookie access. Returns nullptr to indicate the | 412 // certain operations, like cookie access. Returns nullptr to indicate the |
410 // regular request context should be used. | 413 // regular request context should be used. |
411 // This is called on the IO thread. | 414 // This is called on the IO thread. |
412 virtual net::URLRequestContext* OverrideRequestContextForURL( | 415 virtual net::URLRequestContext* OverrideRequestContextForURL( |
413 const GURL& url, ResourceContext* context); | 416 const GURL& url, ResourceContext* context); |
414 | 417 |
415 // Allow the embedder to specify a string version of the storage partition | 418 // Allow the embedder to specify a string version of the storage partition |
416 // config with a site. | 419 // config with a site. |
417 virtual std::string GetStoragePartitionIdForSite( | 420 virtual std::string GetStoragePartitionIdForSite( |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 755 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
753 // implementation. Return nullptr to disable external surface video. | 756 // implementation. Return nullptr to disable external surface video. |
754 virtual ExternalVideoSurfaceContainer* | 757 virtual ExternalVideoSurfaceContainer* |
755 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 758 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
756 #endif | 759 #endif |
757 }; | 760 }; |
758 | 761 |
759 } // namespace content | 762 } // namespace content |
760 | 763 |
761 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 764 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |