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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 // pp::FileIO::RequestOSFileHandle. | 561 // pp::FileIO::RequestOSFileHandle. |
562 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | 562 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
563 BrowserContext* browser_context, | 563 BrowserContext* browser_context, |
564 const GURL& url); | 564 const GURL& url); |
565 | 565 |
566 // Returns true if dev channel APIs are available for plugins. | 566 // Returns true if dev channel APIs are available for plugins. |
567 virtual bool IsPluginAllowedToUseDevChannelAPIs( | 567 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
568 BrowserContext* browser_context, | 568 BrowserContext* browser_context, |
569 const GURL& url); | 569 const GURL& url); |
570 | 570 |
571 // Checks if |security_origin| has permission to access the microphone or | |
572 // camera. Note that this does not query the user. |type| must be | |
573 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. | |
574 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, | |
575 const GURL& security_origin, | |
576 MediaStreamType type); | |
577 | |
578 // Allows to override browser Mojo services exposed through the | 571 // Allows to override browser Mojo services exposed through the |
579 // RenderProcessHost. | 572 // RenderProcessHost. |
580 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} | 573 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} |
581 | 574 |
582 // Registers additional navigator.connect service factories available in a | 575 // Registers additional navigator.connect service factories available in a |
583 // particular NavigatorConnectContext. | 576 // particular NavigatorConnectContext. |
584 virtual void GetAdditionalNavigatorConnectServices( | 577 virtual void GetAdditionalNavigatorConnectServices( |
585 const scoped_refptr<NavigatorConnectContext>& context) {} | 578 const scoped_refptr<NavigatorConnectContext>& context) {} |
586 | 579 |
587 // Allows to override the visibility state of a RenderFrameHost. | 580 // Allows to override the visibility state of a RenderFrameHost. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 622 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
630 // implementation. Return nullptr to disable external surface video. | 623 // implementation. Return nullptr to disable external surface video. |
631 virtual ExternalVideoSurfaceContainer* | 624 virtual ExternalVideoSurfaceContainer* |
632 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 625 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
633 #endif | 626 #endif |
634 }; | 627 }; |
635 | 628 |
636 } // namespace content | 629 } // namespace content |
637 | 630 |
638 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 631 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |