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