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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 namespace content { | 106 namespace content { |
107 | 107 |
108 enum class PermissionType; | 108 enum class PermissionType; |
109 class BrowserChildProcessHost; | 109 class BrowserChildProcessHost; |
110 class BrowserContext; | 110 class BrowserContext; |
111 class BrowserMainParts; | 111 class BrowserMainParts; |
112 class BrowserPpapiHost; | 112 class BrowserPpapiHost; |
113 class BrowserURLHandler; | 113 class BrowserURLHandler; |
114 class ClientCertificateDelegate; | 114 class ClientCertificateDelegate; |
| 115 class ControllerPresentationServiceDelegate; |
115 class DevToolsManagerDelegate; | 116 class DevToolsManagerDelegate; |
116 class GpuProcessHost; | 117 class GpuProcessHost; |
117 class MediaObserver; | 118 class MediaObserver; |
118 class MemoryCoordinatorDelegate; | 119 class MemoryCoordinatorDelegate; |
119 class NavigationHandle; | 120 class NavigationHandle; |
120 class NavigationUIData; | 121 class NavigationUIData; |
121 class PlatformNotificationService; | 122 class PlatformNotificationService; |
122 class PresentationServiceDelegate; | |
123 class QuotaPermissionContext; | 123 class QuotaPermissionContext; |
| 124 class ReceiverPresentationServiceDelegate; |
124 class RenderFrameHost; | 125 class RenderFrameHost; |
125 class RenderProcessHost; | 126 class RenderProcessHost; |
126 class RenderViewHost; | 127 class RenderViewHost; |
127 class ResourceContext; | 128 class ResourceContext; |
128 class SiteInstance; | 129 class SiteInstance; |
129 class SpeechRecognitionManagerDelegate; | 130 class SpeechRecognitionManagerDelegate; |
130 class TracingDelegate; | 131 class TracingDelegate; |
131 class VpnServiceProxy; | 132 class VpnServiceProxy; |
132 class WebContents; | 133 class WebContents; |
133 class WebContentsViewDelegate; | 134 class WebContentsViewDelegate; |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 // Allows the embedder to provide extra service manifests to be registered | 718 // Allows the embedder to provide extra service manifests to be registered |
718 // with the service manager context. | 719 // with the service manager context. |
719 virtual std::vector<ServiceManifestInfo> GetExtraServiceManifests(); | 720 virtual std::vector<ServiceManifestInfo> GetExtraServiceManifests(); |
720 | 721 |
721 // Allows to override the visibility state of a RenderFrameHost. | 722 // Allows to override the visibility state of a RenderFrameHost. |
722 // |visibility_state| should not be null. It will only be set if needed. | 723 // |visibility_state| should not be null. It will only be set if needed. |
723 virtual void OverridePageVisibilityState( | 724 virtual void OverridePageVisibilityState( |
724 RenderFrameHost* render_frame_host, | 725 RenderFrameHost* render_frame_host, |
725 blink::WebPageVisibilityState* visibility_state) {} | 726 blink::WebPageVisibilityState* visibility_state) {} |
726 | 727 |
727 // Allows an embedder to provide its own PresentationServiceDelegate | 728 // Allows an embedder to provide its own ControllerPresentationServiceDelegate |
728 // implementation. Returns nullptr if unavailable. | 729 // implementation. Returns nullptr if unavailable. |
729 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( | 730 virtual ControllerPresentationServiceDelegate* |
730 WebContents* web_contents); | 731 GetControllerPresentationServiceDelegate(WebContents* web_contents); |
| 732 |
| 733 // Allows an embedder to provide its own ReceiverPresentationServiceDelegate |
| 734 // implementation. Returns nullptr if unavailable. Only WebContents created |
| 735 // for offscreen presentations should be passed to this API. The WebContents |
| 736 // must belong to an incognito profile. |
| 737 virtual ReceiverPresentationServiceDelegate* |
| 738 GetReceiverPresentationServiceDelegate(WebContents* web_contents); |
731 | 739 |
732 // Allows programmatic opening of a new tab/window without going through | 740 // Allows programmatic opening of a new tab/window without going through |
733 // another WebContents. For example, from a Worker. |callback| will be | 741 // another WebContents. For example, from a Worker. |callback| will be |
734 // invoked with the appropriate WebContents* when available. | 742 // invoked with the appropriate WebContents* when available. |
735 virtual void OpenURL(BrowserContext* browser_context, | 743 virtual void OpenURL(BrowserContext* browser_context, |
736 const OpenURLParams& params, | 744 const OpenURLParams& params, |
737 const base::Callback<void(WebContents*)>& callback); | 745 const base::Callback<void(WebContents*)>& callback); |
738 | 746 |
739 // Allows the embedder to record |metric| for a specific |url|. | 747 // Allows the embedder to record |metric| for a specific |url|. |
740 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} | 748 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 822 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
815 | 823 |
816 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 824 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
817 // this platform will experimentally be redirected to TaskScheduler. | 825 // this platform will experimentally be redirected to TaskScheduler. |
818 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 826 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
819 }; | 827 }; |
820 | 828 |
821 } // namespace content | 829 } // namespace content |
822 | 830 |
823 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 831 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |