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

Unified Diff: content/browser/loader/stream_resource_handler.cc

Issue 129173002: Adds the new URLRequest::OnBeforeNetworkStart hook to the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@defer_1_net
Patch Set: Created 6 years, 11 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/browser/loader/stream_resource_handler.cc
diff --git a/content/browser/loader/stream_resource_handler.cc b/content/browser/loader/stream_resource_handler.cc
index 67309e8189d72785a1318b4b9c03b621aeffc9c7..7c241bda5f256ffa9e429dd8d780a8524179ddf9 100644
--- a/content/browser/loader/stream_resource_handler.cc
+++ b/content/browser/loader/stream_resource_handler.cc
@@ -57,6 +57,12 @@ bool StreamResourceHandler::OnWillStart(int request_id,
return true;
}
+bool StreamResourceHandler::OnBeforeNetworkStart(int request_id,
+ const GURL& url,
+ bool* defer) {
+ return true;
+}
+
bool StreamResourceHandler::OnWillRead(int request_id,
scoped_refptr<net::IOBuffer>* buf,
int* buf_size,

Powered by Google App Engine
This is Rietveld 408576698