Index: content/public/browser/content_browser_client.h |
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h |
index aa5e8ce9bcb171312b52b6fc4a092a33e61147cc..f0c9c315a22a89d6caa66af3f6e3c66188a15701 100644 |
--- a/content/public/browser/content_browser_client.h |
+++ b/content/public/browser/content_browser_client.h |
@@ -129,6 +129,7 @@ class SiteInstance; |
class SpeechRecognitionManagerDelegate; |
class StoragePartition; |
class TracingDelegate; |
+class URLLoaderThrottle; |
class VpnServiceProxy; |
class WebContents; |
class WebContentsViewDelegate; |
@@ -796,6 +797,12 @@ class CONTENT_EXPORT ContentBrowserClient { |
// params are used if this returns nullptr. |
virtual std::unique_ptr<base::TaskScheduler::InitParams> |
GetTaskSchedulerInitParams(); |
+ |
+ // Allows the embedder to register one or more URLLoaderThrottles for a |
+ // URL request. This is used only when --enable-network-service is in effect. |
+ // This is called on the IO thread. |
+ virtual std::vector<std::unique_ptr<URLLoaderThrottle>> |
+ CreateURLLoaderThrottles(const base::Callback<WebContents*()>& wc_getter); |
}; |
} // namespace content |