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

Unified Diff: webkit/glue/multipart_response_delegate.h

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 | « webkit/glue/media/buffered_resource_loader.cc ('k') | webkit/glue/multipart_response_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/multipart_response_delegate.h
diff --git a/webkit/glue/multipart_response_delegate.h b/webkit/glue/multipart_response_delegate.h
index d4583bb6b0bbcff445fa89ea4a00b5a6db78a040..7c829589fa3c3f6f75b3f6b332fd7b60aabd0471 100644
--- a/webkit/glue/multipart_response_delegate.h
+++ b/webkit/glue/multipart_response_delegate.h
@@ -72,7 +72,7 @@ class MultipartResponseDelegate {
const std::string& boundary);
// Passed through from ResourceHandleInternal
- void OnReceivedData(const char* data, int data_len);
+ void OnReceivedData(const char* data, int data_len, int raw_data_length);
void OnCompletedRequest();
// The request has been canceled, so stop making calls to the client.
@@ -120,6 +120,9 @@ class MultipartResponseDelegate {
// full token.
size_t FindBoundary();
+ // Transferred data size accumulated between client callbacks.
+ int raw_data_length_;
+
// A temporary buffer to hold data between reads for multipart data that
// gets split in the middle of a header.
std::string data_;
« no previous file with comments | « webkit/glue/media/buffered_resource_loader.cc ('k') | webkit/glue/multipart_response_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698