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

Unified Diff: content/renderer/render_frame_impl.cc

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
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index bf90b0ae15404e326ea89b1e84085293b60788ed..23b753cdc6d3cf5e49b1eee6292eb893d48295c8 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -71,6 +71,7 @@
#include "content/common/swapped_out_messages.h"
#include "content/common/view_messages.h"
#include "content/common/worker_url_loader_factory_provider.mojom.h"
+#include "content/public/child/url_loader_throttle.h"
#include "content/public/common/appcache_info.h"
#include "content/public/common/associated_interface_provider.h"
#include "content/public/common/bindings_policy.h"
@@ -4365,8 +4366,9 @@ void RenderFrameImpl::WillSendRequest(blink::WebURLRequest& request) {
}
GURL new_url;
+ std::vector<std::unique_ptr<URLLoaderThrottle>> throttles;
if (GetContentClient()->renderer()->WillSendRequest(
- frame_, transition_type, request.Url(), &new_url)) {
+ frame_, transition_type, request.Url(), &new_url, &throttles)) {
request.SetURL(WebURL(new_url));
}
@@ -4462,6 +4464,7 @@ void RenderFrameImpl::WillSendRequest(blink::WebURLRequest& request) {
}
extra_data->set_url_loader_factory_override(url_loader_factory_.get());
+ extra_data->set_url_loader_throttles(std::move(throttles));
kinuko 2017/05/29 13:36:50 Can you add a todo comment to note that we need to
yzshen1 2017/05/31 00:30:06 Done.
request.SetExtraData(extra_data);

Powered by Google App Engine
This is Rietveld 408576698