Chromium Code Reviews| 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. |
|
kinuko
2016/12/07 04:06:26
Should transferSizeDiff be unsigned if it's always
yhirano
2016/12/07 12:06:58
ditto
|
| + virtual void didReceiveTransferSizeUpdate(int transferSizeDiff) {} |
| // Called when a chunk of renderer-generated metadata is received from the |
| // cache. |