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

Unified Diff: content/child/resource_dispatcher.cc

Issue 2835123005: Send the decoded size when response completed and stop summing in ResourceLoader::DidReceiveData() (Closed)
Patch Set: Created 3 years, 8 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/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index 5ca85c2d3a58d2a71c43fe1bdef118b7725c9643..3094e63368c267591869b05c1579e4d1cd2b97d6 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -375,7 +375,8 @@ void ResourceDispatcher::OnRequestComplete(
request_complete_data.exists_in_cache,
renderer_completion_time,
request_complete_data.encoded_data_length,
- request_complete_data.encoded_body_length);
+ request_complete_data.encoded_body_length,
+ request_complete_data.decoded_body_length);
}
bool ResourceDispatcher::RemovePendingRequest(int request_id) {
@@ -781,6 +782,7 @@ void ResourceDispatcher::ContinueForNavigation(
completion_status.completion_time = base::TimeTicks::Now();
completion_status.encoded_data_length = -1;
completion_status.encoded_body_length = -1;
+ completion_status.decoded_body_length = -1;
client_ptr->OnComplete(completion_status);
}
« no previous file with comments | « content/browser/loader/mojo_async_resource_handler.cc ('k') | content/child/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698