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

Unified Diff: third_party/WebKit/Source/web/tests/sim/SimNetwork.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/web/tests/sim/SimNetwork.cpp
diff --git a/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp b/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
index bcc3bb69f76f7ca95220ea1a91f38e96bb163991..eaff7c1d0acebedd594104b8dc0df64b50b4dbba 100644
--- a/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
+++ b/third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp
@@ -61,10 +61,11 @@ void SimNetwork::DidReceiveData(WebURLLoaderClient* client,
void SimNetwork::DidFail(WebURLLoaderClient* 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) {
if (!current_request_) {
- client->DidFail(error, total_encoded_data_length,
- total_encoded_body_length);
+ client->DidFail(error, total_encoded_data_length, total_encoded_body_length,
+ total_decoded_body_length);
return;
}
current_request_->DidFail(error);
@@ -73,10 +74,12 @@ void SimNetwork::DidFail(WebURLLoaderClient* client,
void SimNetwork::DidFinishLoading(WebURLLoaderClient* 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) {
if (!current_request_) {
client->DidFinishLoading(finish_time, total_encoded_data_length,
- total_encoded_body_length);
+ total_encoded_body_length,
+ total_decoded_body_length);
return;
}
current_request_ = nullptr;
« no previous file with comments | « third_party/WebKit/Source/web/tests/sim/SimNetwork.h ('k') | third_party/WebKit/Source/web/tests/sim/SimRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698