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

Unified Diff: content/browser/renderer_host/sync_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/sync_resource_handler.cc
===================================================================
--- content/browser/renderer_host/sync_resource_handler.cc (revision 136397)
+++ content/browser/renderer_host/sync_resource_handler.cc (working copy)
@@ -61,7 +61,8 @@
bool SyncResourceHandler::OnResponseStarted(
int request_id,
- ResourceResponse* response) {
+ ResourceResponse* response,
+ bool* defer) {
net::URLRequest* request = rdh_->GetURLRequest(
GlobalRequestID(filter_->child_id(), request_id));
if (rdh_->delegate())
@@ -97,7 +98,8 @@
return true;
}
-bool SyncResourceHandler::OnReadCompleted(int request_id, int* bytes_read) {
+bool SyncResourceHandler::OnReadCompleted(int request_id, int* bytes_read,
+ bool* defer) {
if (!*bytes_read)
return true;
result_.data.append(read_buffer_->data(), *bytes_read);

Powered by Google App Engine
This is Rietveld 408576698