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

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

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.cc
diff --git a/content/public/browser/resource_dispatcher_host_delegate.cc b/content/public/browser/resource_dispatcher_host_delegate.cc
index 10291527f93bcbeaebf8265a3176938d4344ebd7..d76759ba156441bc26a5f79953526df8a15a3d2a 100644
--- a/content/public/browser/resource_dispatcher_host_delegate.cc
+++ b/content/public/browser/resource_dispatcher_host_delegate.cc
@@ -70,6 +70,12 @@ bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
return false;
}
+bool ResourceDispatcherHostDelegate::ShouldSinkResponse(
+ net::URLRequest* request,
+ ResourceType resource_type) {
+ return false;
+}
+
void ResourceDispatcherHostDelegate::OnStreamCreated(
net::URLRequest* request,
std::unique_ptr<content::StreamInfo> stream) {}

Powered by Google App Engine
This is Rietveld 408576698