 Chromium Code Reviews
 Chromium Code Reviews Issue 2900563002:
  Network service: Safe browsing check for sub-resources from renderer.  (Closed)
    
  
    Issue 2900563002:
  Network service: Safe browsing check for sub-resources from renderer.  (Closed) 
  | 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); | 
| }; |