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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 // respective sections. | 714 // respective sections. |
714 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( | 715 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( |
715 const std::string& name); | 716 const std::string& name); |
716 | 717 |
717 // Allows to override the visibility state of a RenderFrameHost. | 718 // Allows to override the visibility state of a RenderFrameHost. |
718 // |visibility_state| should not be null. It will only be set if needed. | 719 // |visibility_state| should not be null. It will only be set if needed. |
719 virtual void OverridePageVisibilityState( | 720 virtual void OverridePageVisibilityState( |
720 RenderFrameHost* render_frame_host, | 721 RenderFrameHost* render_frame_host, |
721 blink::WebPageVisibilityState* visibility_state) {} | 722 blink::WebPageVisibilityState* visibility_state) {} |
722 | 723 |
723 // Allows an embedder to provide its own PresentationServiceDelegate | 724 // Allows an embedder to provide its own ControllerPresentationServiceDelegate |
724 // implementation. Returns nullptr if unavailable. | 725 // implementation. Returns nullptr if unavailable. |
725 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( | 726 virtual ControllerPresentationServiceDelegate* |
726 WebContents* web_contents); | 727 GetControllerPresentationServiceDelegate(WebContents* web_contents); |
| 728 |
| 729 // Allows an embedder to provide its own ReceiverPresentationServiceDelegate |
| 730 // implementation. Returns nullptr if unavailable. |
| 731 virtual ReceiverPresentationServiceDelegate* |
| 732 GetReceiverPresentationServiceDelegate(WebContents* web_contents); |
727 | 733 |
728 // Allows programmatic opening of a new tab/window without going through | 734 // Allows programmatic opening of a new tab/window without going through |
729 // another WebContents. For example, from a Worker. |callback| will be | 735 // another WebContents. For example, from a Worker. |callback| will be |
730 // invoked with the appropriate WebContents* when available. | 736 // invoked with the appropriate WebContents* when available. |
731 virtual void OpenURL(BrowserContext* browser_context, | 737 virtual void OpenURL(BrowserContext* browser_context, |
732 const OpenURLParams& params, | 738 const OpenURLParams& params, |
733 const base::Callback<void(WebContents*)>& callback); | 739 const base::Callback<void(WebContents*)>& callback); |
734 | 740 |
735 // Allows the embedder to record |metric| for a specific |url|. | 741 // Allows the embedder to record |metric| for a specific |url|. |
736 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} | 742 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | 814 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
809 index_to_traits_callback) {} | 815 index_to_traits_callback) {} |
810 | 816 |
811 // Performs any necessary PostTask API redirection to the task scheduler. | 817 // Performs any necessary PostTask API redirection to the task scheduler. |
812 virtual void PerformExperimentalTaskSchedulerRedirections() {} | 818 virtual void PerformExperimentalTaskSchedulerRedirections() {} |
813 }; | 819 }; |
814 | 820 |
815 } // namespace content | 821 } // namespace content |
816 | 822 |
817 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 823 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |