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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 // returning a random GUID. | 650 // returning a random GUID. |
651 virtual std::string GetShellUserIdForBrowserContext( | 651 virtual std::string GetShellUserIdForBrowserContext( |
652 BrowserContext* browser_context); | 652 BrowserContext* browser_context); |
653 | 653 |
654 // Allows to register browser Mojo interfaces exposed through the | 654 // Allows to register browser Mojo interfaces exposed through the |
655 // RenderProcessHost. | 655 // RenderProcessHost. |
656 virtual void ExposeInterfacesToRenderer( | 656 virtual void ExposeInterfacesToRenderer( |
657 shell::InterfaceRegistry* registry, | 657 shell::InterfaceRegistry* registry, |
658 RenderProcessHost* render_process_host) {} | 658 RenderProcessHost* render_process_host) {} |
659 | 659 |
660 // Allows to register browser Mojo interfaces exposed through the | 660 // Called when RenderFrameHostImpl connects to the Media service. Expose |
661 // FrameMojoShell. | 661 // interfaces to the service using |registry|. |
662 virtual void RegisterFrameMojoShellInterfaces( | 662 virtual void ExposeInterfacesToMediaService( |
663 shell::InterfaceRegistry* registry, | 663 shell::InterfaceRegistry* registry, |
664 RenderFrameHost* render_frame_host) {} | 664 RenderFrameHost* render_frame_host) {} |
665 | 665 |
666 // Allows to register browser Mojo interfaces exposed through the | 666 // Allows to register browser Mojo interfaces exposed through the |
667 // RenderFrameHost. | 667 // RenderFrameHost. |
668 virtual void RegisterRenderFrameMojoInterfaces( | 668 virtual void RegisterRenderFrameMojoInterfaces( |
669 shell::InterfaceRegistry* registry, | 669 shell::InterfaceRegistry* registry, |
670 RenderFrameHost* render_frame_host) {} | 670 RenderFrameHost* render_frame_host) {} |
671 | 671 |
672 using StaticMojoApplicationMap = std::map<std::string, MojoApplicationInfo>; | 672 using StaticMojoApplicationMap = std::map<std::string, MojoApplicationInfo>; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 783 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
784 // implementation. Return nullptr to disable external surface video. | 784 // implementation. Return nullptr to disable external surface video. |
785 virtual ExternalVideoSurfaceContainer* | 785 virtual ExternalVideoSurfaceContainer* |
786 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 786 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
787 #endif | 787 #endif |
788 }; | 788 }; |
789 | 789 |
790 } // namespace content | 790 } // namespace content |
791 | 791 |
792 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 792 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |