| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 | 380 |
| 381 #if BUILDFLAG(ENABLE_WEBRTC) | 381 #if BUILDFLAG(ENABLE_WEBRTC) |
| 382 // Allow the embedder to control if WebRTC identities are allowed to be cached | 382 // Allow the embedder to control if WebRTC identities are allowed to be cached |
| 383 // and potentially reused for future requests (within the same origin). | 383 // and potentially reused for future requests (within the same origin). |
| 384 // This is called on the IO thread. | 384 // This is called on the IO thread. |
| 385 virtual bool AllowWebRTCIdentityCache(const GURL& url, | 385 virtual bool AllowWebRTCIdentityCache(const GURL& url, |
| 386 const GURL& first_party_url, | 386 const GURL& first_party_url, |
| 387 ResourceContext* context); | 387 ResourceContext* context); |
| 388 #endif // BUILDFLAG(ENABLE_WEBRTC) | 388 #endif // BUILDFLAG(ENABLE_WEBRTC) |
| 389 | 389 |
| 390 // Allow the embedder to control whether we can use <keygen>. | |
| 391 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context); | |
| 392 | |
| 393 // Allow the embedder to control whether we can use Web Bluetooth. | 390 // Allow the embedder to control whether we can use Web Bluetooth. |
| 394 // TODO(crbug.com/589228): Replace this with a use of the permission system. | 391 // TODO(crbug.com/589228): Replace this with a use of the permission system. |
| 395 enum class AllowWebBluetoothResult { | 392 enum class AllowWebBluetoothResult { |
| 396 ALLOW, | 393 ALLOW, |
| 397 BLOCK_POLICY, | 394 BLOCK_POLICY, |
| 398 BLOCK_GLOBALLY_DISABLED, | 395 BLOCK_GLOBALLY_DISABLED, |
| 399 }; | 396 }; |
| 400 virtual AllowWebBluetoothResult AllowWebBluetooth( | 397 virtual AllowWebBluetoothResult AllowWebBluetooth( |
| 401 content::BrowserContext* browser_context, | 398 content::BrowserContext* browser_context, |
| 402 const url::Origin& requesting_origin, | 399 const url::Origin& requesting_origin, |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | 805 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
| 809 index_to_traits_callback) {} | 806 index_to_traits_callback) {} |
| 810 | 807 |
| 811 // Performs any necessary PostTask API redirection to the task scheduler. | 808 // Performs any necessary PostTask API redirection to the task scheduler. |
| 812 virtual void PerformExperimentalTaskSchedulerRedirections() {} | 809 virtual void PerformExperimentalTaskSchedulerRedirections() {} |
| 813 }; | 810 }; |
| 814 | 811 |
| 815 } // namespace content | 812 } // namespace content |
| 816 | 813 |
| 817 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 814 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |