 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/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..80703db6d8ac29bad7fbe61b4b91a872b539171c 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 { | 
| @@ -224,10 +225,12 @@ class CONTENT_EXPORT ContentRendererClient { | 
| // 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|. | 
| 
kinuko
2017/05/29 13:36:50
Add a comment about throttles?
 
yzshen1
2017/05/31 00:30:05
Done.
 | 
| - virtual bool WillSendRequest(blink::WebLocalFrame* frame, | 
| - ui::PageTransition transition_type, | 
| - const blink::WebURL& url, | 
| - GURL* new_url); | 
| + virtual bool WillSendRequest( | 
| + blink::WebLocalFrame* frame, | 
| + ui::PageTransition transition_type, | 
| + const blink::WebURL& url, | 
| + GURL* new_url, | 
| + std::vector<std::unique_ptr<URLLoaderThrottle>>* throttles); | 
| // Returns true if the request is associated with a document that is in | 
| // ""prefetch only" mode, and will not be rendered. |