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

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
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 1bc1287d449edb6764bc333e5ebee6ed291e8fad..e416f0c685e06fe1c997ae601bbb55dd2ff652b8 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;
@@ -803,6 +804,12 @@ class CONTENT_EXPORT ContentBrowserClient {
// If this returns true, all BrowserThreads (but UI/IO) that support it on
// this platform will experimentally be redirected to TaskScheduler.
virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
+
+ // 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

Powered by Google App Engine
This is Rietveld 408576698