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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 namespace gfx { | 56 namespace gfx { |
57 class ImageSkia; | 57 class ImageSkia; |
58 } | 58 } |
59 | 59 |
60 namespace media { | 60 namespace media { |
61 class CdmFactory; | 61 class CdmFactory; |
62 } | 62 } |
63 | 63 |
64 namespace mojo { | 64 namespace mojo { |
65 class ApplicationDelegate; | 65 class ShellClient; |
66 } | 66 } |
67 | 67 |
68 namespace net { | 68 namespace net { |
69 class CookieOptions; | 69 class CookieOptions; |
70 class NetLog; | 70 class NetLog; |
71 class SSLCertRequestInfo; | 71 class SSLCertRequestInfo; |
72 class SSLInfo; | 72 class SSLInfo; |
73 class URLRequest; | 73 class URLRequest; |
74 class URLRequestContext; | 74 class URLRequestContext; |
75 class URLRequestContextGetter; | 75 class URLRequestContextGetter; |
(...skipping 575 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::ApplicationDelegate>()>>; | 661 std::map<GURL, 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<GURL, 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 |
(...skipping 93 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 |