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

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

Issue 2510333002: Send encoded_body_length to renderer when response completed (2/3) (Closed)
Patch Set: rebase Created 4 years, 1 month 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 e470bf461532cd1aeb3fa9a674e3686f418f1f2f..5478d14f0b90f6de5cccc1cba1ccee4449526eaa 100644
--- a/third_party/WebKit/public/platform/WebURLLoaderClient.h
+++ b/third_party/WebKit/public/platform/WebURLLoaderClient.h
@@ -87,14 +87,10 @@ class BLINK_PLATFORM_EXPORT WebURLLoaderClient {
// 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.
- // |encodedBodyLength| is the number of bytes used to store this chunk,
- // possibly encrypted, excluding headers or framing. It is set even if the
- // response was served from cache.
virtual void didReceiveData(WebURLLoader*,
const char* data,
int dataLength,
- int encodedDataLength,
- int encodedBodyLength) {}
+ int encodedDataLength) {}
// Called when a chunk of renderer-generated metadata is received from the
// cache.
@@ -106,13 +102,15 @@ class BLINK_PLATFORM_EXPORT WebURLLoaderClient {
// |totalEncodedDataLength| may be equal to kUnknownEncodedDataLength.
virtual void didFinishLoading(WebURLLoader* loader,
double finishTime,
- int64_t totalEncodedDataLength) {}
+ int64_t totalEncodedDataLength,
+ int64_t totalEncodedBodyLength) {}
// Called when the load completes with an error.
// |totalEncodedDataLength| may be equal to kUnknownEncodedDataLength.
virtual void didFail(WebURLLoader*,
const WebURLError&,
- int64_t totalEncodedDataLength) {}
+ int64_t totalEncodedDataLength,
+ int64_t totalEncodedBodyLength) {}
// Value passed to didFinishLoading when total encoded data length isn't
// known.
« no previous file with comments | « third_party/WebKit/public/platform/WebURLLoader.h ('k') | third_party/WebKit/public/platform/WebURLLoaderTestDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698