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

Unified Diff: content/renderer/fetchers/resource_fetcher_impl.cc

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
« no previous file with comments | « content/public/child/request_peer.h ('k') | third_party/WebKit/Source/core/loader/PingLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/fetchers/resource_fetcher_impl.cc
diff --git a/content/renderer/fetchers/resource_fetcher_impl.cc b/content/renderer/fetchers/resource_fetcher_impl.cc
index 25c26768eae0cec0613482ef826ccad7afc04911..037e0ecffef64a676251b011d2bbea4b23d156c7 100644
--- a/content/renderer/fetchers/resource_fetcher_impl.cc
+++ b/content/renderer/fetchers/resource_fetcher_impl.cc
@@ -89,14 +89,16 @@ class ResourceFetcherImpl::ClientImpl : public blink::WebURLLoaderClient {
}
void DidFinishLoading(double finishTime,
int64_t total_encoded_data_length,
- int64_t total_encoded_body_length) override {
+ int64_t total_encoded_body_length,
+ int64_t total_decoded_body_length) override {
DCHECK(!completed_);
OnLoadCompleteInternal(LOAD_SUCCEEDED);
}
void DidFail(const blink::WebURLError& error,
int64_t total_encoded_data_length,
- int64_t total_encoded_body_length) override {
+ int64_t total_encoded_body_length,
+ int64_t total_decoded_body_length) override {
OnLoadCompleteInternal(LOAD_FAILED);
}
« no previous file with comments | « content/public/child/request_peer.h ('k') | third_party/WebKit/Source/core/loader/PingLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698