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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 2900563002: Network service: Safe browsing check for sub-resources from renderer. (Closed)
Patch Set: . Created 3 years, 7 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/public/common/typemaps.gni ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index 0e554ba8467af157948ca32d042f7dbac426df8f..7a3ecf54b37c65d6144fa4d8c9356a8ea3046b14 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -66,6 +66,7 @@ class BrowserPluginDelegate;
class MediaStreamRendererFactory;
class RenderFrame;
class RenderView;
+class URLLoaderThrottle;
// Embedder API for participating in renderer logic.
class CONTENT_EXPORT ContentRendererClient {
@@ -223,11 +224,15 @@ class CONTENT_EXPORT ContentRendererClient {
bool* send_referrer);
// Notifies the embedder that the given frame is requesting the resource at
- // |url|. If the function returns true, the url is changed to |new_url|.
- virtual bool WillSendRequest(blink::WebLocalFrame* frame,
- ui::PageTransition transition_type,
- const blink::WebURL& url,
- GURL* new_url);
+ // |url|. |throttles| is appended with URLLoaderThrottle instances that should
+ // be applied to the resource loading. It is only used when network service is
+ // enabled. If the function returns true, the url is changed to |new_url|.
+ virtual bool WillSendRequest(
+ blink::WebLocalFrame* frame,
+ ui::PageTransition transition_type,
+ const blink::WebURL& url,
+ std::vector<std::unique_ptr<URLLoaderThrottle>>* throttles,
+ GURL* new_url);
// Returns true if the request is associated with a document that is in
// ""prefetch only" mode, and will not be rendered.
« no previous file with comments | « content/public/common/typemaps.gni ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698