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

Unified Diff: content/browser/renderer_host/layered_resource_handler.cc

Issue 10332130: Use defer out-params instead of ResourceDispatcherHostImpl::PauseRequest(...true) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/renderer_host/layered_resource_handler.cc
===================================================================
--- content/browser/renderer_host/layered_resource_handler.cc (revision 136397)
+++ content/browser/renderer_host/layered_resource_handler.cc (working copy)
@@ -27,9 +27,10 @@
}
bool LayeredResourceHandler::OnResponseStarted(int request_id,
- ResourceResponse* response) {
+ ResourceResponse* response,
+ bool* defer) {
DCHECK(next_handler_);
- return next_handler_->OnResponseStarted(request_id, response);
+ return next_handler_->OnResponseStarted(request_id, response, defer);
}
bool LayeredResourceHandler::OnWillStart(int request_id, const GURL& url,
@@ -44,9 +45,10 @@
return next_handler_->OnWillRead(request_id, buf, buf_size, min_size);
}
-bool LayeredResourceHandler::OnReadCompleted(int request_id, int* bytes_read) {
+bool LayeredResourceHandler::OnReadCompleted(int request_id, int* bytes_read,
+ bool* defer) {
DCHECK(next_handler_);
- return next_handler_->OnReadCompleted(request_id, bytes_read);
+ return next_handler_->OnReadCompleted(request_id, bytes_read, defer);
}
bool LayeredResourceHandler::OnResponseCompleted(

Powered by Google App Engine
This is Rietveld 408576698