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

Unified Diff: content/browser/renderer_host/async_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/async_resource_handler.cc
===================================================================
--- content/browser/renderer_host/async_resource_handler.cc (revision 137742)
+++ content/browser/renderer_host/async_resource_handler.cc (working copy)
@@ -120,7 +120,8 @@
bool AsyncResourceHandler::OnResponseStarted(
int request_id,
- content::ResourceResponse* response) {
+ content::ResourceResponse* response,
+ bool* defer) {
// For changes to the main frame, inform the renderer of the new URL's
// per-host settings before the request actually commits. This way the
// renderer will be able to set these precisely at the time the
@@ -195,7 +196,8 @@
return true;
}
-bool AsyncResourceHandler::OnReadCompleted(int request_id, int* bytes_read) {
+bool AsyncResourceHandler::OnReadCompleted(int request_id, int* bytes_read,
+ bool* defer) {
if (!*bytes_read)
return true;
DCHECK(read_buffer_.get());
« no previous file with comments | « content/browser/renderer_host/async_resource_handler.h ('k') | content/browser/renderer_host/buffered_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698