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

Unified Diff: content/public/browser/resource_dispatcher_host_delegate.h

Issue 2262183002: [NoStatePrefetch] Do not send responses to renderer in prefetch mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetchProto
Patch Set: comments Created 4 years, 4 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/public/browser/resource_dispatcher_host_delegate.h
diff --git a/content/public/browser/resource_dispatcher_host_delegate.h b/content/public/browser/resource_dispatcher_host_delegate.h
index 219b00330e13a53d3c20105f2933d5495caafcb2..e3ba25bc4eda19c4039d1a60c912b44b6e2742ed 100644
--- a/content/public/browser/resource_dispatcher_host_delegate.h
+++ b/content/public/browser/resource_dispatcher_host_delegate.h
@@ -104,6 +104,11 @@ class CONTENT_EXPORT ResourceDispatcherHostDelegate {
GURL* origin,
std::string* payload);
+ // Returns if the response should never sent to the renderer. Note that the
+ // request is still allowed to complete.
+ virtual bool ShouldSinkResponse(net::URLRequest* request,
+ ResourceType resource_type);
+
// Informs the delegate that a Stream was created. The Stream can be read from
// the blob URL of the Stream, but can only be read once.
virtual void OnStreamCreated(net::URLRequest* request,

Powered by Google App Engine
This is Rietveld 408576698