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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 // Allows to register browser Mojo services exposed through the | 615 // Allows to register browser Mojo services exposed through the |
616 // RenderProcessHost. | 616 // RenderProcessHost. |
617 virtual void RegisterRenderProcessMojoServices(ServiceRegistry* registry) {} | 617 virtual void RegisterRenderProcessMojoServices(ServiceRegistry* registry) {} |
618 | 618 |
619 // Allows to register browser Mojo services exposed through the | 619 // Allows to register browser Mojo services exposed through the |
620 // FrameMojoShell. | 620 // FrameMojoShell. |
621 virtual void RegisterFrameMojoShellServices( | 621 virtual void RegisterFrameMojoShellServices( |
622 ServiceRegistry* registry, | 622 ServiceRegistry* registry, |
623 RenderFrameHost* render_frame_host) {} | 623 RenderFrameHost* render_frame_host) {} |
624 | 624 |
| 625 // Allows to register browser Mojo services exposed through the |
| 626 // RenderFrameHost. |
| 627 virtual void RegisterRenderFrameMojoServices( |
| 628 ServiceRegistry* registry, |
| 629 RenderFrameHost* render_frame_host) {} |
| 630 |
625 using StaticMojoApplicationMap = | 631 using StaticMojoApplicationMap = |
626 std::map<GURL, base::Callback<scoped_ptr<mojo::ApplicationDelegate>()>>; | 632 std::map<GURL, base::Callback<scoped_ptr<mojo::ApplicationDelegate>()>>; |
627 | 633 |
628 // Registers Mojo applications to be loaded in the browser process by the | 634 // Registers Mojo applications to be loaded in the browser process by the |
629 // browser's global Mojo shell. | 635 // browser's global Mojo shell. |
630 virtual void RegisterInProcessMojoApplications( | 636 virtual void RegisterInProcessMojoApplications( |
631 StaticMojoApplicationMap* apps) {} | 637 StaticMojoApplicationMap* apps) {} |
632 | 638 |
633 using OutOfProcessMojoApplicationMap = std::map<GURL, base::string16>; | 639 using OutOfProcessMojoApplicationMap = std::map<GURL, base::string16>; |
634 | 640 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 716 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
711 // implementation. Return nullptr to disable external surface video. | 717 // implementation. Return nullptr to disable external surface video. |
712 virtual ExternalVideoSurfaceContainer* | 718 virtual ExternalVideoSurfaceContainer* |
713 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 719 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
714 #endif | 720 #endif |
715 }; | 721 }; |
716 | 722 |
717 } // namespace content | 723 } // namespace content |
718 | 724 |
719 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 725 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |