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

Unified Diff: third_party/WebKit/Source/platform/exported/WebURLLoaderTestDelegate.cpp

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/Source/platform/exported/WebURLLoaderTestDelegate.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebURLLoaderTestDelegate.cpp b/third_party/WebKit/Source/platform/exported/WebURLLoaderTestDelegate.cpp
index 59b373d4ea59b8f20f55511d627d63e21017d76e..072bbbf895c1f184db1abe4287551aceb6726a3a 100644
--- a/third_party/WebKit/Source/platform/exported/WebURLLoaderTestDelegate.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebURLLoaderTestDelegate.cpp
@@ -28,23 +28,26 @@ void WebURLLoaderTestDelegate::didReceiveData(
const char* data,
int dataLength,
int encodedDataLength) {
- originalClient->didReceiveData(loader, data, dataLength, encodedDataLength,
- dataLength);
+ originalClient->didReceiveData(loader, data, dataLength, encodedDataLength);
}
void WebURLLoaderTestDelegate::didFail(WebURLLoaderClient* originalClient,
WebURLLoader* loader,
const WebURLError& error,
- int64_t totalEncodedDataLength) {
- originalClient->didFail(loader, error, totalEncodedDataLength);
+ int64_t totalEncodedDataLength,
+ int64_t totalEncodedBodyLength) {
+ originalClient->didFail(loader, error, totalEncodedDataLength,
+ totalEncodedBodyLength);
}
void WebURLLoaderTestDelegate::didFinishLoading(
WebURLLoaderClient* originalClient,
WebURLLoader* loader,
double finishTime,
- int64_t totalEncodedDataLength) {
- originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength);
+ int64_t totalEncodedDataLength,
+ int64_t totalEncodedBodyLength) {
+ originalClient->didFinishLoading(loader, finishTime, totalEncodedDataLength,
+ totalEncodedBodyLength);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/loader/PingLoader.cpp ('k') | third_party/WebKit/Source/platform/testing/weburl_loader_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698