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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 namespace blink { | 50 namespace blink { |
51 struct WebWindowFeatures; | 51 struct WebWindowFeatures; |
52 } | 52 } |
53 | 53 |
54 namespace gfx { | 54 namespace gfx { |
55 class ImageSkia; | 55 class ImageSkia; |
56 } | 56 } |
57 | 57 |
58 namespace net { | 58 namespace net { |
59 class CookieOptions; | 59 class CookieOptions; |
60 class CookieStore; | |
61 class NetLog; | 60 class NetLog; |
62 class SSLCertRequestInfo; | 61 class SSLCertRequestInfo; |
63 class SSLInfo; | 62 class SSLInfo; |
64 class URLRequest; | 63 class URLRequest; |
65 class URLRequestContext; | 64 class URLRequestContext; |
66 class URLRequestContextGetter; | 65 class URLRequestContextGetter; |
67 class X509Certificate; | 66 class X509Certificate; |
68 } | 67 } |
69 | 68 |
70 namespace sandbox { | 69 namespace sandbox { |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 // pp::FileIO::RequestOSFileHandle. | 579 // pp::FileIO::RequestOSFileHandle. |
581 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | 580 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
582 BrowserContext* browser_context, | 581 BrowserContext* browser_context, |
583 const GURL& url); | 582 const GURL& url); |
584 | 583 |
585 // Returns true if dev channel APIs are available for plugins. | 584 // Returns true if dev channel APIs are available for plugins. |
586 virtual bool IsPluginAllowedToUseDevChannelAPIs( | 585 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
587 BrowserContext* browser_context, | 586 BrowserContext* browser_context, |
588 const GURL& url); | 587 const GURL& url); |
589 | 588 |
590 // Returns a special cookie store to use for a given render process, or | |
591 // nullptr if the default cookie store should be used. | |
592 // This is called on the IO thread. | |
593 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( | |
594 int render_process_id); | |
595 | |
596 // Checks if |security_origin| has permission to access the microphone or | 589 // Checks if |security_origin| has permission to access the microphone or |
597 // camera. Note that this does not query the user. |type| must be | 590 // camera. Note that this does not query the user. |type| must be |
598 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. | 591 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. |
599 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, | 592 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
600 const GURL& security_origin, | 593 const GURL& security_origin, |
601 MediaStreamType type); | 594 MediaStreamType type); |
602 | 595 |
603 // Allows to override browser Mojo services exposed through the | 596 // Allows to override browser Mojo services exposed through the |
604 // RenderProcessHost. | 597 // RenderProcessHost. |
605 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} | 598 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 647 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
655 // implementation. Return nullptr to disable external surface video. | 648 // implementation. Return nullptr to disable external surface video. |
656 virtual ExternalVideoSurfaceContainer* | 649 virtual ExternalVideoSurfaceContainer* |
657 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 650 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
658 #endif | 651 #endif |
659 }; | 652 }; |
660 | 653 |
661 } // namespace content | 654 } // namespace content |
662 | 655 |
663 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 656 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |