Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: content/public/browser/content_browser_client.h

Issue 2924723002: Network service: SafeBrowsing check for frame-resources from browser. (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/throttling_url_loader_unittest.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/common/throttling_url_loader_unittest.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698