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

Unified Diff: content/common/resource_dispatcher.cc

Issue 6771043: Enabled actual transfer size in chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment added Created 9 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 | « content/common/resource_dispatcher.h ('k') | content/common/resource_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/resource_dispatcher.cc
diff --git a/content/common/resource_dispatcher.cc b/content/common/resource_dispatcher.cc
index 754255197fd5f2f60b76c487c1e85fae7ce5a622..9ed50bd188dcbe196f207b20cd75ef5c5c6bba3f 100644
--- a/content/common/resource_dispatcher.cc
+++ b/content/common/resource_dispatcher.cc
@@ -212,6 +212,7 @@ void IPCResourceLoaderBridge::SyncLoad(SyncLoadResponse* response) {
response->charset = result.charset;
response->request_time = result.request_time;
response->response_time = result.response_time;
+ response->raw_data_length = result.raw_data_length;
response->connection_id = result.connection_id;
response->connection_reused = result.connection_reused;
response->load_timing = result.load_timing;
@@ -336,7 +337,8 @@ void ResourceDispatcher::OnReceivedCachedMetadata(
void ResourceDispatcher::OnReceivedData(const IPC::Message& message,
int request_id,
base::SharedMemoryHandle shm_handle,
- int data_len) {
+ int data_len,
+ int raw_data_length) {
// Acknowledge the reception of this data.
message_sender()->Send(
new ResourceHostMsg_DataReceived_ACK(message.routing_id(), request_id));
@@ -351,7 +353,7 @@ void ResourceDispatcher::OnReceivedData(const IPC::Message& message,
if (data_len > 0 && shared_mem.Map(data_len)) {
const char* data = static_cast<char*>(shared_mem.memory());
- request_info->peer->OnReceivedData(data, data_len);
+ request_info->peer->OnReceivedData(data, data_len, raw_data_length);
}
}
« no previous file with comments | « content/common/resource_dispatcher.h ('k') | content/common/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698