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

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: Created 9 years, 9 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
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..b22966f557a7fd56dacbbcb42a77e139e7f53568 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 length_received);
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 length_received_;
+
// A temporary buffer to hold data between reads for multipart data that
// gets split in the middle of a header.
std::string data_;

Powered by Google App Engine
This is Rietveld 408576698