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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 namespace content { | 97 namespace content { |
98 | 98 |
99 enum class PermissionType; | 99 enum class PermissionType; |
100 class AccessTokenStore; | 100 class AccessTokenStore; |
101 class BrowserChildProcessHost; | 101 class BrowserChildProcessHost; |
102 class BrowserContext; | 102 class BrowserContext; |
103 class BrowserMainParts; | 103 class BrowserMainParts; |
104 class BrowserPluginGuestDelegate; | 104 class BrowserPluginGuestDelegate; |
105 class BrowserPpapiHost; | 105 class BrowserPpapiHost; |
| 106 class BrowserServiceRegistry; |
106 class BrowserURLHandler; | 107 class BrowserURLHandler; |
107 class ClientCertificateDelegate; | 108 class ClientCertificateDelegate; |
108 class DevToolsManagerDelegate; | 109 class DevToolsManagerDelegate; |
109 class ExternalVideoSurfaceContainer; | 110 class ExternalVideoSurfaceContainer; |
110 class LocationProvider; | 111 class LocationProvider; |
111 class MediaObserver; | 112 class MediaObserver; |
112 class NavigationHandle; | 113 class NavigationHandle; |
113 class PlatformNotificationService; | 114 class PlatformNotificationService; |
114 class PresentationServiceDelegate; | 115 class PresentationServiceDelegate; |
115 class QuotaPermissionContext; | 116 class QuotaPermissionContext; |
116 class RenderFrameHost; | 117 class RenderFrameHost; |
117 class RenderProcessHost; | 118 class RenderProcessHost; |
118 class RenderViewHost; | 119 class RenderViewHost; |
119 class ResourceContext; | 120 class ResourceContext; |
120 class ServiceRegistry; | |
121 class SiteInstance; | 121 class SiteInstance; |
122 class SpeechRecognitionManagerDelegate; | 122 class SpeechRecognitionManagerDelegate; |
123 class TracingDelegate; | 123 class TracingDelegate; |
124 class WebContents; | 124 class WebContents; |
125 class WebContentsViewDelegate; | 125 class WebContentsViewDelegate; |
126 struct MainFunctionParams; | 126 struct MainFunctionParams; |
127 struct OpenURLParams; | 127 struct OpenURLParams; |
128 struct Referrer; | 128 struct Referrer; |
129 struct WebPreferences; | 129 struct WebPreferences; |
130 | 130 |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 BrowserContext* browser_context, | 641 BrowserContext* browser_context, |
642 const GURL& url); | 642 const GURL& url); |
643 | 643 |
644 // Returns true if dev channel APIs are available for plugins. | 644 // Returns true if dev channel APIs are available for plugins. |
645 virtual bool IsPluginAllowedToUseDevChannelAPIs( | 645 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
646 BrowserContext* browser_context, | 646 BrowserContext* browser_context, |
647 const GURL& url); | 647 const GURL& url); |
648 | 648 |
649 // Allows to register browser Mojo services exposed through the | 649 // Allows to register browser Mojo services exposed through the |
650 // RenderProcessHost. | 650 // RenderProcessHost. |
651 virtual void RegisterRenderProcessMojoServices(ServiceRegistry* registry) {} | 651 virtual void RegisterRenderProcessMojoServices(BrowserServiceRegistry* registr
y) {} |
652 | 652 |
653 // Allows to register browser Mojo services exposed through the | 653 // Allows to register browser Mojo services exposed through the |
654 // FrameMojoShell. | 654 // FrameMojoShell. |
655 virtual void RegisterFrameMojoShellServices( | 655 virtual void RegisterFrameMojoShellServices( |
656 ServiceRegistry* registry, | 656 BrowserServiceRegistry* registry, |
657 RenderFrameHost* render_frame_host) {} | 657 RenderFrameHost* render_frame_host) {} |
658 | 658 |
659 // Allows to register browser Mojo services exposed through the | 659 // Allows to register browser Mojo services exposed through the |
660 // RenderFrameHost. | 660 // RenderFrameHost. |
661 virtual void RegisterRenderFrameMojoServices( | 661 virtual void RegisterRenderFrameMojoServices( |
662 ServiceRegistry* registry, | 662 BrowserServiceRegistry* registry, |
663 RenderFrameHost* render_frame_host) {} | 663 RenderFrameHost* render_frame_host) {} |
664 | 664 |
665 using StaticMojoApplicationMap = | 665 using StaticMojoApplicationMap = |
666 std::map<std::string, base::Callback<scoped_ptr<mojo::ShellClient>()>>; | 666 std::map<std::string, base::Callback<scoped_ptr<mojo::ShellClient>()>>; |
667 | 667 |
668 // Registers Mojo applications to be loaded in the browser process by the | 668 // Registers Mojo applications to be loaded in the browser process by the |
669 // browser's global Mojo shell. | 669 // browser's global Mojo shell. |
670 virtual void RegisterInProcessMojoApplications( | 670 virtual void RegisterInProcessMojoApplications( |
671 StaticMojoApplicationMap* apps) {} | 671 StaticMojoApplicationMap* apps) {} |
672 | 672 |
(...skipping 92 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 |