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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 ServiceRegistry* registry, | 651 ServiceRegistry* registry, |
652 RenderFrameHost* render_frame_host) {} | 652 RenderFrameHost* render_frame_host) {} |
653 | 653 |
654 // Allows to register browser Mojo services exposed through the | 654 // Allows to register browser Mojo services exposed through the |
655 // RenderFrameHost. | 655 // RenderFrameHost. |
656 virtual void RegisterRenderFrameMojoServices( | 656 virtual void RegisterRenderFrameMojoServices( |
657 ServiceRegistry* registry, | 657 ServiceRegistry* registry, |
658 RenderFrameHost* render_frame_host) {} | 658 RenderFrameHost* render_frame_host) {} |
659 | 659 |
660 using StaticMojoApplicationMap = | 660 using StaticMojoApplicationMap = |
661 std::map<GURL, base::Callback<scoped_ptr<mojo::ShellClient>()>>; | 661 std::map<std::string, base::Callback<scoped_ptr<mojo::ShellClient>()>>; |
662 | 662 |
663 // Registers Mojo applications to be loaded in the browser process by the | 663 // Registers Mojo applications to be loaded in the browser process by the |
664 // browser's global Mojo shell. | 664 // browser's global Mojo shell. |
665 virtual void RegisterInProcessMojoApplications( | 665 virtual void RegisterInProcessMojoApplications( |
666 StaticMojoApplicationMap* apps) {} | 666 StaticMojoApplicationMap* apps) {} |
667 | 667 |
668 using OutOfProcessMojoApplicationMap = std::map<GURL, base::string16>; | 668 using OutOfProcessMojoApplicationMap = std::map<std::string, base::string16>; |
669 | 669 |
670 // Registers Mojo applications to be loaded out of the browser process, in a | 670 // Registers Mojo applications to be loaded out of the browser process, in a |
671 // sandboxed utility process. The value of each map entry should be the | 671 // sandboxed utility process. The value of each map entry should be the |
672 // process name to use for the application's host process when launched. | 672 // process name to use for the application's host process when launched. |
673 virtual void RegisterOutOfProcessMojoApplications( | 673 virtual void RegisterOutOfProcessMojoApplications( |
674 OutOfProcessMojoApplicationMap* apps) {} | 674 OutOfProcessMojoApplicationMap* apps) {} |
675 | 675 |
676 // Registers Mojo applications to be loaded out of the browser process (in | 676 // Registers Mojo applications to be loaded out of the browser process (in |
677 // a utility process) without the sandbox. | 677 // a utility process) without the sandbox. |
678 // | 678 // |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 765 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
766 // implementation. Return nullptr to disable external surface video. | 766 // implementation. Return nullptr to disable external surface video. |
767 virtual ExternalVideoSurfaceContainer* | 767 virtual ExternalVideoSurfaceContainer* |
768 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 768 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
769 #endif | 769 #endif |
770 }; | 770 }; |
771 | 771 |
772 } // namespace content | 772 } // namespace content |
773 | 773 |
774 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 774 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |