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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 class QuotaPermissionContext; | 122 class QuotaPermissionContext; |
123 class ReceiverPresentationServiceDelegate; | 123 class ReceiverPresentationServiceDelegate; |
124 class RenderFrameHost; | 124 class RenderFrameHost; |
125 class RenderProcessHost; | 125 class RenderProcessHost; |
126 class RenderViewHost; | 126 class RenderViewHost; |
127 class ResourceContext; | 127 class ResourceContext; |
128 class SiteInstance; | 128 class SiteInstance; |
129 class SpeechRecognitionManagerDelegate; | 129 class SpeechRecognitionManagerDelegate; |
130 class StoragePartition; | 130 class StoragePartition; |
131 class TracingDelegate; | 131 class TracingDelegate; |
| 132 class URLLoaderThrottle; |
132 class VpnServiceProxy; | 133 class VpnServiceProxy; |
133 class WebContents; | 134 class WebContents; |
134 class WebContentsViewDelegate; | 135 class WebContentsViewDelegate; |
135 struct MainFunctionParams; | 136 struct MainFunctionParams; |
136 struct OpenURLParams; | 137 struct OpenURLParams; |
137 struct Referrer; | 138 struct Referrer; |
138 struct WebPreferences; | 139 struct WebPreferences; |
139 | 140 |
140 // Embedder API (or SPI) for participating in browser logic, to be implemented | 141 // Embedder API (or SPI) for participating in browser logic, to be implemented |
141 // by the client of the content browser. See ChromeContentBrowserClient for the | 142 // by the client of the content browser. See ChromeContentBrowserClient for the |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 // Performs any necessary PostTask API redirection to the task scheduler. | 797 // Performs any necessary PostTask API redirection to the task scheduler. |
797 virtual void PerformExperimentalTaskSchedulerRedirections() {} | 798 virtual void PerformExperimentalTaskSchedulerRedirections() {} |
798 | 799 |
799 // Returns true if the DOMStorageTaskRunner should be redirected to the task | 800 // Returns true if the DOMStorageTaskRunner should be redirected to the task |
800 // scheduler. | 801 // scheduler. |
801 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 802 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
802 | 803 |
803 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 804 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
804 // this platform will experimentally be redirected to TaskScheduler. | 805 // this platform will experimentally be redirected to TaskScheduler. |
805 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 806 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
| 807 |
| 808 // Allows the embedder to register one or more URLLoaderThrottles for a |
| 809 // URL request. This is used only when --enable-network-service is in effect. |
| 810 // This is called on the IO thread. |
| 811 virtual std::vector<std::unique_ptr<URLLoaderThrottle>> |
| 812 CreateURLLoaderThrottles(const base::Callback<WebContents*()>& wc_getter); |
806 }; | 813 }; |
807 | 814 |
808 } // namespace content | 815 } // namespace content |
809 | 816 |
810 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 817 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |