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

Unified Diff: content/child/request_extra_data.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
Index: content/child/request_extra_data.h
diff --git a/content/child/request_extra_data.h b/content/child/request_extra_data.h
index 214ba6ffdb24f9b11cf7ce4b05d49f7c7474f94f..20916f25792b0cbb1f3b7d1c7631d91c2e2d229c 100644
--- a/content/child/request_extra_data.h
+++ b/content/child/request_extra_data.h
@@ -13,6 +13,7 @@
#include "content/common/content_export.h"
#include "content/common/navigation_params.h"
#include "content/common/url_loader_factory.mojom.h"
+#include "content/public/child/url_loader_throttle.h"
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
@@ -175,6 +176,14 @@ class CONTENT_EXPORT RequestExtraData
url_loader_factory_override_ = factory;
}
+ std::vector<std::unique_ptr<URLLoaderThrottle>>& url_loader_throttles() {
kinuko 2017/05/29 13:36:50 let's name this TakeUrlLoaderThrottles() and retur
yzshen1 2017/05/31 00:30:02 Done.
+ return url_loader_throttles_;
+ }
+ void set_url_loader_throttles(
+ std::vector<std::unique_ptr<URLLoaderThrottle>> throttles) {
+ url_loader_throttles_ = std::move(throttles);
+ }
+
void CopyToResourceRequest(ResourceRequest* request) const;
private:
@@ -200,6 +209,7 @@ class CONTENT_EXPORT RequestExtraData
bool block_mixed_plugin_content_;
bool navigation_initiated_by_renderer_;
mojom::URLLoaderFactory* url_loader_factory_override_;
+ std::vector<std::unique_ptr<URLLoaderThrottle>> url_loader_throttles_;
DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
};

Powered by Google App Engine
This is Rietveld 408576698