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

Unified Diff: third_party/WebKit/public/platform/WebURLLoaderClient.h

Issue 2540023003: Dispatch encoded_data_length separately in content/child (Closed)
Patch Set: fix Created 4 years 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: third_party/WebKit/public/platform/WebURLLoaderClient.h
diff --git a/third_party/WebKit/public/platform/WebURLLoaderClient.h b/third_party/WebKit/public/platform/WebURLLoaderClient.h
index bd0fecd7f167ac999449e3f60c180018232ede94..92f5829e9462efd32b8547f6caab0ece99a51512 100644
--- a/third_party/WebKit/public/platform/WebURLLoaderClient.h
+++ b/third_party/WebKit/public/platform/WebURLLoaderClient.h
@@ -79,11 +79,11 @@ class BLINK_PLATFORM_EXPORT WebURLLoaderClient {
// of bytes actually received from network to serve this chunk, including
// HTTP headers and framing if relevant. It is 0 if the response was served
// from cache, and -1 if this information is unavailable.
- // TODO(ricea): -1 is problematic for consumers maintaining a running
- // total. Investigate using 0 for all unavailable cases.
- virtual void didReceiveData(const char* data,
- int dataLength,
- int encodedDataLength) {}
+ virtual void didReceiveData(const char* data, int dataLength) {}
+
+ // Called when the number of bytes actually received from network including
+ // HTTP headers is updated. |transferSizeDiff| is positive.
+ virtual void didReceiveTransferSizeUpdate(int transferSizeDiff) {}
// Called when a chunk of renderer-generated metadata is received from the
// cache.

Powered by Google App Engine
This is Rietveld 408576698