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

Unified Diff: content/child/resource_dispatcher.cc

Issue 23696002: Propagate the encoded data length through OnDownloadData delegate method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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 | « content/child/resource_dispatcher.h ('k') | content/child/resource_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index 31e6f6a9d9731ebda63f61e955f1ee0ac971f160..9d2001c1c8d822aab901b14069256d36d48e9277 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -451,7 +451,8 @@ void ResourceDispatcher::OnReceivedData(const IPC::Message& message,
void ResourceDispatcher::OnDownloadedData(const IPC::Message& message,
int request_id,
- int data_len) {
+ int data_len,
+ int encoded_data_length) {
// Acknowledge the reception of this message.
message_sender()->Send(
new ResourceHostMsg_DataDownloaded_ACK(message.routing_id(), request_id));
@@ -460,7 +461,7 @@ void ResourceDispatcher::OnDownloadedData(const IPC::Message& message,
if (!request_info)
return;
- request_info->peer->OnDownloadedData(data_len);
+ request_info->peer->OnDownloadedData(data_len, encoded_data_length);
}
void ResourceDispatcher::OnReceivedRedirect(
« no previous file with comments | « content/child/resource_dispatcher.h ('k') | content/child/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698