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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 class NavigatorConnectContext; | 113 class NavigatorConnectContext; |
114 class NavigatorConnectServiceFactory; | 114 class NavigatorConnectServiceFactory; |
115 class PlatformNotificationService; | 115 class PlatformNotificationService; |
116 class PresentationServiceDelegate; | 116 class PresentationServiceDelegate; |
117 class QuotaPermissionContext; | 117 class QuotaPermissionContext; |
118 class RenderFrameHost; | 118 class RenderFrameHost; |
119 class RenderProcessHost; | 119 class RenderProcessHost; |
120 class RenderViewHost; | 120 class RenderViewHost; |
121 class ResourceContext; | 121 class ResourceContext; |
122 class ServiceRegistry; | 122 class ServiceRegistry; |
| 123 class ServiceRegistryAndroid; |
123 class SiteInstance; | 124 class SiteInstance; |
124 class SpeechRecognitionManagerDelegate; | 125 class SpeechRecognitionManagerDelegate; |
125 class TracingDelegate; | 126 class TracingDelegate; |
126 class WebContents; | 127 class WebContents; |
127 class WebContentsViewDelegate; | 128 class WebContentsViewDelegate; |
128 struct MainFunctionParams; | 129 struct MainFunctionParams; |
129 struct OpenURLParams; | 130 struct OpenURLParams; |
130 struct Referrer; | 131 struct Referrer; |
131 struct WebPreferences; | 132 struct WebPreferences; |
132 | 133 |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 | 651 |
651 // Returns true if dev channel APIs are available for plugins. | 652 // Returns true if dev channel APIs are available for plugins. |
652 virtual bool IsPluginAllowedToUseDevChannelAPIs( | 653 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
653 BrowserContext* browser_context, | 654 BrowserContext* browser_context, |
654 const GURL& url); | 655 const GURL& url); |
655 | 656 |
656 // Allows to register browser Mojo services exposed through the | 657 // Allows to register browser Mojo services exposed through the |
657 // RenderProcessHost. | 658 // RenderProcessHost. |
658 virtual void RegisterRenderProcessMojoServices(ServiceRegistry* registry) {} | 659 virtual void RegisterRenderProcessMojoServices(ServiceRegistry* registry) {} |
659 | 660 |
| 661 #if defined(OS_ANDROID) |
| 662 // Allows to register Android browser Mojo services exposed through the |
| 663 // RenderProcessHost. |
| 664 virtual void RegisterRenderProcessAndroidMojoServices( |
| 665 ServiceRegistryAndroid* registry) {} |
| 666 #endif |
| 667 |
660 // Allows to register browser Mojo services exposed through the | 668 // Allows to register browser Mojo services exposed through the |
661 // FrameMojoShell. | 669 // FrameMojoShell. |
662 virtual void RegisterFrameMojoShellServices( | 670 virtual void RegisterFrameMojoShellServices( |
663 ServiceRegistry* registry, | 671 ServiceRegistry* registry, |
664 RenderFrameHost* render_frame_host) {} | 672 RenderFrameHost* render_frame_host) {} |
665 | 673 |
666 // Allows to register browser Mojo services exposed through the | 674 // Allows to register browser Mojo services exposed through the |
667 // RenderFrameHost. | 675 // RenderFrameHost. |
668 virtual void RegisterRenderFrameMojoServices( | 676 virtual void RegisterRenderFrameMojoServices( |
669 ServiceRegistry* registry, | 677 ServiceRegistry* registry, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 785 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
778 // implementation. Return nullptr to disable external surface video. | 786 // implementation. Return nullptr to disable external surface video. |
779 virtual ExternalVideoSurfaceContainer* | 787 virtual ExternalVideoSurfaceContainer* |
780 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 788 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
781 #endif | 789 #endif |
782 }; | 790 }; |
783 | 791 |
784 } // namespace content | 792 } // namespace content |
785 | 793 |
786 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 794 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |