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

Unified Diff: third_party/WebKit/Source/core/loader/PingLoader.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/core/loader/PingLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/PingLoader.cpp b/third_party/WebKit/Source/core/loader/PingLoader.cpp
index ad119c3f9875245557414050c5534d86754cab7f..ad845a2f70681c24890629658b314debe516f48c 100644
--- a/third_party/WebKit/Source/core/loader/PingLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/PingLoader.cpp
@@ -210,8 +210,14 @@ class PingLoaderImpl : public GarbageCollectedFinalized<PingLoaderImpl>,
bool WillFollowRedirect(WebURLRequest&, const WebURLResponse&) override;
void DidReceiveResponse(const WebURLResponse&) final;
void DidReceiveData(const char*, int) final;
- void DidFinishLoading(double, int64_t, int64_t encoded_data_length) final;
- void DidFail(const WebURLError&, int64_t, int64_t encoded_data_length) final;
+ void DidFinishLoading(double,
+ int64_t encoded_data_length,
+ int64_t encoded_body_length,
+ int64_t decoded_body_length) final;
+ void DidFail(const WebURLError&,
+ int64_t encoded_data_length,
+ int64_t encoded_body_length,
+ int64_t decoded_body_length) final;
void Timeout(TimerBase*);
@@ -361,16 +367,18 @@ void PingLoaderImpl::DidReceiveData(const char*, int data_length) {
}
void PingLoaderImpl::DidFinishLoading(double,
- int64_t,
- int64_t encoded_data_length) {
+ int64_t encoded_data_length,
+ int64_t encoded_body_length,
+ int64_t decoded_body_length) {
if (GetFrame())
DidFailLoading(GetFrame());
Dispose();
}
void PingLoaderImpl::DidFail(const WebURLError& resource_error,
- int64_t,
- int64_t encoded_data_length) {
+ int64_t encoded_data_length,
+ int64_t encoded_body_length,
+ int64_t decoded_body_length) {
if (GetFrame())
DidFailLoading(GetFrame());
Dispose();
« no previous file with comments | « content/renderer/fetchers/resource_fetcher_impl.cc ('k') | third_party/WebKit/Source/core/loader/resource/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698