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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 813 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
817 | 814 |
818 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 815 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
819 // this platform will experimentally be redirected to TaskScheduler. | 816 // this platform will experimentally be redirected to TaskScheduler. |
820 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 817 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
821 }; | 818 }; |
822 | 819 |
823 } // namespace content | 820 } // namespace content |
824 | 821 |
825 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 822 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |