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

Unified Diff: content/browser/loader/async_resource_handler.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
« no previous file with comments | « chrome/renderer/security_filter_peer.cc ('k') | content/browser/loader/mojo_async_resource_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/async_resource_handler.cc
diff --git a/content/browser/loader/async_resource_handler.cc b/content/browser/loader/async_resource_handler.cc
index 07d4aaad09124630d1bf38dc2f8171e3134f4312..a9b2e0e78c23f1f19e5cb96eb5bb87600d74b8d0 100644
--- a/content/browser/loader/async_resource_handler.cc
+++ b/content/browser/loader/async_resource_handler.cc
@@ -381,6 +381,7 @@ void AsyncResourceHandler::OnResponseCompleted(
request_complete_data.encoded_data_length =
request()->GetTotalReceivedBytes();
request_complete_data.encoded_body_length = request()->GetRawBodyBytes();
+ request_complete_data.decoded_body_length = total_read_body_bytes_;
filter->Send(
new ResourceMsg_RequestComplete(GetRequestID(), request_complete_data));
« no previous file with comments | « chrome/renderer/security_filter_peer.cc ('k') | content/browser/loader/mojo_async_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698