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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 // camera. Note that this does not query the user. |type| must be | 570 // camera. Note that this does not query the user. |type| must be |
571 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. | 571 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. |
572 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, | 572 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
573 const GURL& security_origin, | 573 const GURL& security_origin, |
574 MediaStreamType type); | 574 MediaStreamType type); |
575 | 575 |
576 // Allows to override browser Mojo services exposed through the | 576 // Allows to override browser Mojo services exposed through the |
577 // RenderProcessHost. | 577 // RenderProcessHost. |
578 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} | 578 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} |
579 | 579 |
| 580 // Allows to override browser Mojo services exposed through the |
| 581 // RenderFrameHost. |
| 582 virtual void OverrideRenderFrameMojoServices( |
| 583 ServiceRegistry* registry, |
| 584 RenderFrameHost* render_frame_host) {} |
| 585 |
580 // Registers additional navigator.connect service factories available in a | 586 // Registers additional navigator.connect service factories available in a |
581 // particular NavigatorConnectContext. | 587 // particular NavigatorConnectContext. |
582 virtual void GetAdditionalNavigatorConnectServices( | 588 virtual void GetAdditionalNavigatorConnectServices( |
583 const scoped_refptr<NavigatorConnectContext>& context) {} | 589 const scoped_refptr<NavigatorConnectContext>& context) {} |
584 | 590 |
585 // Allows to override the visibility state of a RenderFrameHost. | 591 // Allows to override the visibility state of a RenderFrameHost. |
586 // |visibility_state| should not be null. It will only be set if needed. | 592 // |visibility_state| should not be null. It will only be set if needed. |
587 virtual void OverridePageVisibilityState( | 593 virtual void OverridePageVisibilityState( |
588 RenderFrameHost* render_frame_host, | 594 RenderFrameHost* render_frame_host, |
589 blink::WebPageVisibilityState* visibility_state) {} | 595 blink::WebPageVisibilityState* visibility_state) {} |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 633 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
628 // implementation. Return nullptr to disable external surface video. | 634 // implementation. Return nullptr to disable external surface video. |
629 virtual ExternalVideoSurfaceContainer* | 635 virtual ExternalVideoSurfaceContainer* |
630 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 636 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
631 #endif | 637 #endif |
632 }; | 638 }; |
633 | 639 |
634 } // namespace content | 640 } // namespace content |
635 | 641 |
636 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 642 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |