Index: content/browser/renderer_host/resource_dispatcher_host.cc |
diff --git a/content/browser/renderer_host/resource_dispatcher_host.cc b/content/browser/renderer_host/resource_dispatcher_host.cc |
index 451f99e0ecae7defef1fa19d4d1f219d3df29a11..d89cba14633de865292314e32f4021c3a7300787 100644 |
--- a/content/browser/renderer_host/resource_dispatcher_host.cc |
+++ b/content/browser/renderer_host/resource_dispatcher_host.cc |
@@ -1475,7 +1475,10 @@ void ResourceDispatcherHost::ResumeRequest(const GlobalRequestID& request_id) { |
if (!info->is_paused()) |
return; |
- VLOG(1) << "Resuming: " << i->second->url().spec(); |
+ VLOG(1) << "Resuming: \"" << i->second->url().spec() << "\"" |
+ << " paused_read_bytes = " << info->paused_read_bytes() |
+ << " called response started = " << info->called_on_response_started() |
+ << " started reading = " << info->has_started_reading(); |
info->set_is_paused(false); |
@@ -1523,7 +1526,8 @@ bool ResourceDispatcherHost::Read(net::URLRequest* request, int* bytes_read) { |
void ResourceDispatcherHost::OnReadCompleted(net::URLRequest* request, |
int bytes_read) { |
DCHECK(request); |
- VLOG(1) << "OnReadCompleted: " << request->url().spec(); |
+ VLOG(1) << "OnReadCompleted: \"" << request->url().spec() << "\"" |
+ << " bytes_read = " << bytes_read; |
ResourceDispatcherHostRequestInfo* info = InfoForRequest(request); |
// bytes_read == -1 always implies an error, so we want to skip the |
@@ -1541,7 +1545,8 @@ void ResourceDispatcherHost::OnReadCompleted(net::URLRequest* request, |
if (PauseRequestIfNeeded(info)) { |
info->set_paused_read_bytes(bytes_read); |
- VLOG(1) << "OnReadCompleted pausing: " << request->url().spec(); |
+ VLOG(1) << "OnReadCompleted pausing: \"" << request->url().spec() << "\"" |
+ << " bytes_read = " << bytes_read; |
return; |
} |
@@ -1557,6 +1562,9 @@ void ResourceDispatcherHost::OnReadCompleted(net::URLRequest* request, |
// Force the next CompleteRead / Read pair to run as a separate task. |
// This avoids a fast, large network request from monopolizing the IO |
// thread and starving other IO operations from running. |
+ VLOG(1) << "OnReadCompleted postponing: \"" |
+ << request->url().spec() << "\"" |
+ << " bytes_read = " << bytes_read; |
info->set_paused_read_bytes(bytes_read); |
info->set_is_paused(true); |
GlobalRequestID id(info->child_id(), info->request_id()); |
@@ -1571,8 +1579,9 @@ void ResourceDispatcherHost::OnReadCompleted(net::URLRequest* request, |
if (PauseRequestIfNeeded(info)) { |
info->set_paused_read_bytes(bytes_read); |
- VLOG(1) << "OnReadCompleted (CompleteRead) pausing: " |
- << request->url().spec(); |
+ VLOG(1) << "OnReadCompleted (CompleteRead) pausing: \"" |
+ << request->url().spec() << "\"" |
+ << " bytes_read = " << bytes_read; |
return; |
} |