| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 enum class PermissionType; | 103 enum class PermissionType; |
| 104 class AccessTokenStore; | 104 class AccessTokenStore; |
| 105 class BrowserChildProcessHost; | 105 class BrowserChildProcessHost; |
| 106 class BrowserContext; | 106 class BrowserContext; |
| 107 class BrowserMainParts; | 107 class BrowserMainParts; |
| 108 class BrowserPluginGuestDelegate; | 108 class BrowserPluginGuestDelegate; |
| 109 class BrowserPpapiHost; | 109 class BrowserPpapiHost; |
| 110 class BrowserURLHandler; | 110 class BrowserURLHandler; |
| 111 class ClientCertificateDelegate; | 111 class ClientCertificateDelegate; |
| 112 class ControllerPresentationServiceDelegate; |
| 112 class DevToolsManagerDelegate; | 113 class DevToolsManagerDelegate; |
| 113 class ExternalVideoSurfaceContainer; | 114 class ExternalVideoSurfaceContainer; |
| 114 class GpuProcessHost; | 115 class GpuProcessHost; |
| 115 class LocationProvider; | 116 class LocationProvider; |
| 116 class MediaObserver; | 117 class MediaObserver; |
| 117 class MemoryCoordinatorDelegate; | 118 class MemoryCoordinatorDelegate; |
| 118 class NavigationHandle; | 119 class NavigationHandle; |
| 119 class NavigationUIData; | 120 class NavigationUIData; |
| 120 class PlatformNotificationService; | 121 class PlatformNotificationService; |
| 121 class PresentationServiceDelegate; | |
| 122 class QuotaPermissionContext; | 122 class QuotaPermissionContext; |
| 123 class ReceiverPresentationServiceDelegate; |
| 123 class RenderFrameHost; | 124 class RenderFrameHost; |
| 124 class RenderProcessHost; | 125 class RenderProcessHost; |
| 125 class RenderViewHost; | 126 class RenderViewHost; |
| 126 class ResourceContext; | 127 class ResourceContext; |
| 127 class SiteInstance; | 128 class SiteInstance; |
| 128 class SpeechRecognitionManagerDelegate; | 129 class SpeechRecognitionManagerDelegate; |
| 129 class TracingDelegate; | 130 class TracingDelegate; |
| 130 class VpnServiceProxy; | 131 class VpnServiceProxy; |
| 131 class WebContents; | 132 class WebContents; |
| 132 class WebContentsViewDelegate; | 133 class WebContentsViewDelegate; |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 // respective sections. | 702 // respective sections. |
| 702 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( | 703 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( |
| 703 const std::string& name); | 704 const std::string& name); |
| 704 | 705 |
| 705 // Allows to override the visibility state of a RenderFrameHost. | 706 // Allows to override the visibility state of a RenderFrameHost. |
| 706 // |visibility_state| should not be null. It will only be set if needed. | 707 // |visibility_state| should not be null. It will only be set if needed. |
| 707 virtual void OverridePageVisibilityState( | 708 virtual void OverridePageVisibilityState( |
| 708 RenderFrameHost* render_frame_host, | 709 RenderFrameHost* render_frame_host, |
| 709 blink::WebPageVisibilityState* visibility_state) {} | 710 blink::WebPageVisibilityState* visibility_state) {} |
| 710 | 711 |
| 711 // Allows an embedder to provide its own PresentationServiceDelegate | 712 // Allows an embedder to provide its own ControllerPresentationServiceDelegate |
| 712 // implementation. Returns nullptr if unavailable. | 713 // implementation. Returns nullptr if unavailable. |
| 713 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( | 714 virtual ControllerPresentationServiceDelegate* |
| 714 WebContents* web_contents); | 715 GetControllerPresentationServiceDelegate(WebContents* web_contents); |
| 716 |
| 717 // Allows an embedder to provide its own ReceiverPresentationServiceDelegate |
| 718 // implementation. Returns nullptr if unavailable. |
| 719 virtual ReceiverPresentationServiceDelegate* |
| 720 GetReceiverPresentationServiceDelegate(WebContents* web_contents); |
| 715 | 721 |
| 716 // Allows programmatic opening of a new tab/window without going through | 722 // Allows programmatic opening of a new tab/window without going through |
| 717 // another WebContents. For example, from a Worker. |callback| will be | 723 // another WebContents. For example, from a Worker. |callback| will be |
| 718 // invoked with the appropriate WebContents* when available. | 724 // invoked with the appropriate WebContents* when available. |
| 719 virtual void OpenURL(BrowserContext* browser_context, | 725 virtual void OpenURL(BrowserContext* browser_context, |
| 720 const OpenURLParams& params, | 726 const OpenURLParams& params, |
| 721 const base::Callback<void(WebContents*)>& callback); | 727 const base::Callback<void(WebContents*)>& callback); |
| 722 | 728 |
| 723 // Allows the embedder to record |metric| for a specific |url|. | 729 // Allows the embedder to record |metric| for a specific |url|. |
| 724 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} | 730 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 #endif | 781 #endif |
| 776 | 782 |
| 777 // Returns an instance of MemoryCoordinatorDelegate. | 783 // Returns an instance of MemoryCoordinatorDelegate. |
| 778 virtual std::unique_ptr<MemoryCoordinatorDelegate> | 784 virtual std::unique_ptr<MemoryCoordinatorDelegate> |
| 779 GetMemoryCoordinatorDelegate(); | 785 GetMemoryCoordinatorDelegate(); |
| 780 }; | 786 }; |
| 781 | 787 |
| 782 } // namespace content | 788 } // namespace content |
| 783 | 789 |
| 784 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 790 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |