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

Unified Diff: chrome/renderer/security_filter_peer.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.h ('k') | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/security_filter_peer.cc
diff --git a/chrome/renderer/security_filter_peer.cc b/chrome/renderer/security_filter_peer.cc
index c9b78516b3167bf05e4586e77e09335dcc4067ad..fe880825547875f0f0c46d3217dd9bc7ea740333 100644
--- a/chrome/renderer/security_filter_peer.cc
+++ b/chrome/renderer/security_filter_peer.cc
@@ -142,7 +142,8 @@ void ReplaceContentPeer::OnCompletedRequest(
bool stale_copy_in_cache,
const base::TimeTicks& completion_time,
int64_t total_transfer_size,
- int64_t encoded_body_size) {
+ int64_t encoded_body_size,
+ int64_t decoded_body_size) {
content::ResourceResponseInfo info;
ProcessResponseInfo(info, &info, mime_type_);
info.content_length = static_cast<int>(data_.size());
@@ -153,5 +154,5 @@ void ReplaceContentPeer::OnCompletedRequest(
}
original_peer_->OnCompletedRequest(net::OK, false, stale_copy_in_cache,
completion_time, total_transfer_size,
- encoded_body_size);
+ encoded_body_size, decoded_body_size);
}
« no previous file with comments | « chrome/renderer/security_filter_peer.h ('k') | content/browser/loader/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698