| 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. |
| 735 virtual ReceiverPresentationServiceDelegate* |
| 736 GetReceiverPresentationServiceDelegate(WebContents* web_contents); |
| 731 | 737 |
| 732 // Allows programmatic opening of a new tab/window without going through | 738 // Allows programmatic opening of a new tab/window without going through |
| 733 // another WebContents. For example, from a Worker. |callback| will be | 739 // another WebContents. For example, from a Worker. |callback| will be |
| 734 // invoked with the appropriate WebContents* when available. | 740 // invoked with the appropriate WebContents* when available. |
| 735 virtual void OpenURL(BrowserContext* browser_context, | 741 virtual void OpenURL(BrowserContext* browser_context, |
| 736 const OpenURLParams& params, | 742 const OpenURLParams& params, |
| 737 const base::Callback<void(WebContents*)>& callback); | 743 const base::Callback<void(WebContents*)>& callback); |
| 738 | 744 |
| 739 // Allows the embedder to record |metric| for a specific |url|. | 745 // Allows the embedder to record |metric| for a specific |url|. |
| 740 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} | 746 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 826 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
| 821 | 827 |
| 822 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 828 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
| 823 // this platform will experimentally be redirected to TaskScheduler. | 829 // this platform will experimentally be redirected to TaskScheduler. |
| 824 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 830 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
| 825 }; | 831 }; |
| 826 | 832 |
| 827 } // namespace content | 833 } // namespace content |
| 828 | 834 |
| 829 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 835 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |