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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } | 77 } |
78 | 78 |
79 namespace sandbox { | 79 namespace sandbox { |
80 class TargetPolicy; | 80 class TargetPolicy; |
81 } | 81 } |
82 | 82 |
83 namespace ui { | 83 namespace ui { |
84 class SelectFilePolicy; | 84 class SelectFilePolicy; |
85 } | 85 } |
86 | 86 |
| 87 namespace url { |
| 88 class Origin; |
| 89 } |
| 90 |
87 namespace storage { | 91 namespace storage { |
88 class ExternalMountPoints; | 92 class ExternalMountPoints; |
89 class FileSystemBackend; | 93 class FileSystemBackend; |
90 class QuotaEvictionPolicy; | 94 class QuotaEvictionPolicy; |
91 } | 95 } |
92 | 96 |
93 namespace content { | 97 namespace content { |
94 | 98 |
95 enum class PermissionType; | 99 enum class PermissionType; |
96 class AccessTokenStore; | 100 class AccessTokenStore; |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // and potentially reused for future requests (within the same origin). | 407 // and potentially reused for future requests (within the same origin). |
404 // This is called on the IO thread. | 408 // This is called on the IO thread. |
405 virtual bool AllowWebRTCIdentityCache(const GURL& url, | 409 virtual bool AllowWebRTCIdentityCache(const GURL& url, |
406 const GURL& first_party_url, | 410 const GURL& first_party_url, |
407 ResourceContext* context); | 411 ResourceContext* context); |
408 #endif // defined(ENABLE_WEBRTC) | 412 #endif // defined(ENABLE_WEBRTC) |
409 | 413 |
410 // Allow the embedder to control whether we can use <keygen>. | 414 // Allow the embedder to control whether we can use <keygen>. |
411 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context); | 415 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context); |
412 | 416 |
| 417 // Allow the embedder to control whether we can use Web Bluetooth. |
| 418 // TODO(crbug.com/589228): Replace this with a use of the permission system. |
| 419 virtual bool AllowWebBluetooth(content::BrowserContext* browser_context, |
| 420 const url::Origin& requesting_origin, |
| 421 const url::Origin& embedding_origin); |
| 422 |
413 // Allow the embedder to override the request context based on the URL for | 423 // Allow the embedder to override the request context based on the URL for |
414 // certain operations, like cookie access. Returns nullptr to indicate the | 424 // certain operations, like cookie access. Returns nullptr to indicate the |
415 // regular request context should be used. | 425 // regular request context should be used. |
416 // This is called on the IO thread. | 426 // This is called on the IO thread. |
417 virtual net::URLRequestContext* OverrideRequestContextForURL( | 427 virtual net::URLRequestContext* OverrideRequestContextForURL( |
418 const GURL& url, ResourceContext* context); | 428 const GURL& url, ResourceContext* context); |
419 | 429 |
420 // Allow the embedder to specify a string version of the storage partition | 430 // Allow the embedder to specify a string version of the storage partition |
421 // config with a site. | 431 // config with a site. |
422 virtual std::string GetStoragePartitionIdForSite( | 432 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 | 775 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
766 // implementation. Return nullptr to disable external surface video. | 776 // implementation. Return nullptr to disable external surface video. |
767 virtual ExternalVideoSurfaceContainer* | 777 virtual ExternalVideoSurfaceContainer* |
768 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 778 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
769 #endif | 779 #endif |
770 }; | 780 }; |
771 | 781 |
772 } // namespace content | 782 } // namespace content |
773 | 783 |
774 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 784 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |