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

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

Issue 2835123005: Send the decoded size when response completed and stop summing in ResourceLoader::DidReceiveData() (Closed)
Patch Set: Created 3 years, 8 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: 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 7721ba7799455930d73bdd82aecd422f056b95b7..adef4fe14f5c0700349b8378515f58314ed0c9f8 100644
--- a/third_party/WebKit/Source/platform/exported/WebURLLoaderTestDelegate.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebURLLoaderTestDelegate.cpp
@@ -31,18 +31,22 @@ void WebURLLoaderTestDelegate::DidReceiveData(
void WebURLLoaderTestDelegate::DidFail(WebURLLoaderClient* original_client,
const WebURLError& error,
int64_t total_encoded_data_length,
- int64_t total_encoded_body_length) {
+ int64_t total_encoded_body_length,
+ int64_t total_decoded_body_length) {
original_client->DidFail(error, total_encoded_data_length,
- total_encoded_body_length);
+ total_encoded_body_length,
+ total_decoded_body_length);
}
void WebURLLoaderTestDelegate::DidFinishLoading(
WebURLLoaderClient* original_client,
double finish_time,
int64_t total_encoded_data_length,
- int64_t total_encoded_body_length) {
+ int64_t total_encoded_body_length,
+ int64_t total_decoded_body_length) {
original_client->DidFinishLoading(finish_time, total_encoded_data_length,
- total_encoded_body_length);
+ total_encoded_body_length,
+ total_decoded_body_length);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698