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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 namespace content { | 99 namespace content { |
100 | 100 |
101 enum class PermissionType; | 101 enum class PermissionType; |
102 class BrowserChildProcessHost; | 102 class BrowserChildProcessHost; |
103 class BrowserContext; | 103 class BrowserContext; |
104 class BrowserMainParts; | 104 class BrowserMainParts; |
105 class BrowserPpapiHost; | 105 class BrowserPpapiHost; |
106 class BrowserURLHandler; | 106 class BrowserURLHandler; |
107 class ClientCertificateDelegate; | 107 class ClientCertificateDelegate; |
| 108 class ControllerPresentationServiceDelegate; |
108 class DevToolsManagerDelegate; | 109 class DevToolsManagerDelegate; |
109 class GpuProcessHost; | 110 class GpuProcessHost; |
110 class MediaObserver; | 111 class MediaObserver; |
111 class MemoryCoordinatorDelegate; | 112 class MemoryCoordinatorDelegate; |
112 class NavigationHandle; | 113 class NavigationHandle; |
113 class NavigationUIData; | 114 class NavigationUIData; |
114 class PlatformNotificationService; | 115 class PlatformNotificationService; |
115 class PresentationServiceDelegate; | |
116 class QuotaPermissionContext; | 116 class QuotaPermissionContext; |
| 117 class ReceiverPresentationServiceDelegate; |
117 class RenderFrameHost; | 118 class RenderFrameHost; |
118 class RenderProcessHost; | 119 class RenderProcessHost; |
119 class RenderViewHost; | 120 class RenderViewHost; |
120 class ResourceContext; | 121 class ResourceContext; |
121 class SiteInstance; | 122 class SiteInstance; |
122 class SpeechRecognitionManagerDelegate; | 123 class SpeechRecognitionManagerDelegate; |
123 class TracingDelegate; | 124 class TracingDelegate; |
124 class VpnServiceProxy; | 125 class VpnServiceProxy; |
125 class WebContents; | 126 class WebContents; |
126 class WebContentsViewDelegate; | 127 class WebContentsViewDelegate; |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 // respective sections. | 707 // respective sections. |
707 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( | 708 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( |
708 const std::string& name); | 709 const std::string& name); |
709 | 710 |
710 // Allows to override the visibility state of a RenderFrameHost. | 711 // Allows to override the visibility state of a RenderFrameHost. |
711 // |visibility_state| should not be null. It will only be set if needed. | 712 // |visibility_state| should not be null. It will only be set if needed. |
712 virtual void OverridePageVisibilityState( | 713 virtual void OverridePageVisibilityState( |
713 RenderFrameHost* render_frame_host, | 714 RenderFrameHost* render_frame_host, |
714 blink::WebPageVisibilityState* visibility_state) {} | 715 blink::WebPageVisibilityState* visibility_state) {} |
715 | 716 |
716 // Allows an embedder to provide its own PresentationServiceDelegate | 717 // Allows an embedder to provide its own ControllerPresentationServiceDelegate |
717 // implementation. Returns nullptr if unavailable. | 718 // implementation. Returns nullptr if unavailable. |
718 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( | 719 virtual ControllerPresentationServiceDelegate* |
719 WebContents* web_contents); | 720 GetControllerPresentationServiceDelegate(WebContents* web_contents); |
| 721 |
| 722 // Allows an embedder to provide its own ReceiverPresentationServiceDelegate |
| 723 // implementation. Returns nullptr if unavailable. |
| 724 virtual ReceiverPresentationServiceDelegate* |
| 725 GetReceiverPresentationServiceDelegate(WebContents* web_contents); |
720 | 726 |
721 // Allows programmatic opening of a new tab/window without going through | 727 // Allows programmatic opening of a new tab/window without going through |
722 // another WebContents. For example, from a Worker. |callback| will be | 728 // another WebContents. For example, from a Worker. |callback| will be |
723 // invoked with the appropriate WebContents* when available. | 729 // invoked with the appropriate WebContents* when available. |
724 virtual void OpenURL(BrowserContext* browser_context, | 730 virtual void OpenURL(BrowserContext* browser_context, |
725 const OpenURLParams& params, | 731 const OpenURLParams& params, |
726 const base::Callback<void(WebContents*)>& callback); | 732 const base::Callback<void(WebContents*)>& callback); |
727 | 733 |
728 // Allows the embedder to record |metric| for a specific |url|. | 734 // Allows the embedder to record |metric| for a specific |url|. |
729 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} | 735 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 // by |render_frame_host|. This may be called multiple times if there is more | 794 // by |render_frame_host|. This may be called multiple times if there is more |
789 // than one source candidate in the same render frame. | 795 // than one source candidate in the same render frame. |
790 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, | 796 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, |
791 media::mojom::RemotingSourcePtr source, | 797 media::mojom::RemotingSourcePtr source, |
792 media::mojom::RemoterRequest request) {} | 798 media::mojom::RemoterRequest request) {} |
793 }; | 799 }; |
794 | 800 |
795 } // namespace content | 801 } // namespace content |
796 | 802 |
797 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 803 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |