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

Unified Diff: chrome/renderer/security_filter_peer.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 | « chrome/renderer/security_filter_peer.h ('k') | content/browser/renderer_host/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 d1d6a5a4111a469d1133ce3054a084f0476a81d5..fd857a1fb3a07ccd015cbdf2aa96624b13b62e50 100644
--- a/chrome/renderer/security_filter_peer.cc
+++ b/chrome/renderer/security_filter_peer.cc
@@ -79,7 +79,9 @@ void SecurityFilterPeer::OnReceivedResponse(
NOTREACHED();
}
-void SecurityFilterPeer::OnReceivedData(const char* data, int len) {
+void SecurityFilterPeer::OnReceivedData(const char* data,
+ int data_length,
+ int raw_data_length) {
NOTREACHED();
}
@@ -137,8 +139,10 @@ void BufferedPeer::OnReceivedResponse(
ProcessResponseInfo(info, &response_info_, mime_type_);
}
-void BufferedPeer::OnReceivedData(const char* data, int len) {
- data_.append(data, len);
+void BufferedPeer::OnReceivedData(const char* data,
+ int data_length,
+ int raw_data_length) {
+ data_.append(data, data_length);
}
void BufferedPeer::OnCompletedRequest(const net::URLRequestStatus& status,
@@ -160,7 +164,8 @@ void BufferedPeer::OnCompletedRequest(const net::URLRequestStatus& status,
original_peer_->OnReceivedResponse(response_info_);
if (!data_.empty())
original_peer_->OnReceivedData(data_.data(),
- static_cast<int>(data_.size()));
+ static_cast<int>(data_.size()),
+ -1);
original_peer_->OnCompletedRequest(status, security_info, completion_time);
}
@@ -185,7 +190,9 @@ void ReplaceContentPeer::OnReceivedResponse(
// Ignore this, we'll serve some alternate content in OnCompletedRequest.
}
-void ReplaceContentPeer::OnReceivedData(const char* data, int len) {
+void ReplaceContentPeer::OnReceivedData(const char* data,
+ int data_length,
+ int raw_data_length) {
// Ignore this, we'll serve some alternate content in OnCompletedRequest.
}
@@ -200,7 +207,8 @@ void ReplaceContentPeer::OnCompletedRequest(
original_peer_->OnReceivedResponse(info);
if (!data_.empty())
original_peer_->OnReceivedData(data_.data(),
- static_cast<int>(data_.size()));
+ static_cast<int>(data_.size()),
+ -1);
original_peer_->OnCompletedRequest(net::URLRequestStatus(),
security_info,
completion_time);
« no previous file with comments | « chrome/renderer/security_filter_peer.h ('k') | content/browser/renderer_host/async_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698