| 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 c32d8b907695b8f02805d9dcebd470ebdca10201..33b3fe1d3a9bbec7856ea1e47b04ca55f8d7578e 100644
|
| --- a/content/browser/renderer_host/resource_dispatcher_host.cc
|
| +++ b/content/browser/renderer_host/resource_dispatcher_host.cc
|
| @@ -1389,7 +1389,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);
|
|
|
| @@ -1437,7 +1440,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);
|
|
|
| // OnReadCompleted can be called without Read (e.g., for chrome:// URLs).
|
| @@ -1446,7 +1450,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;
|
| }
|
|
|
| @@ -1462,6 +1467,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());
|
| @@ -1476,8 +1484,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;
|
| }
|
|
|
|
|