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

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
« no previous file with comments | « content/child/BUILD.gn ('k') | content/child/resource_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..79fafdcd143084d2d10c0c97552a377ab02628ee 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>> TakeURLLoaderThrottles() {
+ return std::move(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);
};
« no previous file with comments | « content/child/BUILD.gn ('k') | content/child/resource_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698