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