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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h

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/loader/fetch/ResourceResponse.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h b/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h
index eae8f9b258f77c2f0cbd8d35f12cbd24e6013043..33bcae001a7d545f19e2332927361a759edfac36 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h
@@ -345,10 +345,10 @@ class PLATFORM_EXPORT ResourceResponse final {
void SetEncodedDataLength(long long value);
long long EncodedBodyLength() const { return encoded_body_length_; }
- void AddToEncodedBodyLength(long long value);
+ void SetEncodedBodyLength(long long value);
long long DecodedBodyLength() const { return decoded_body_length_; }
- void AddToDecodedBodyLength(long long value);
+ void SetDecodedBodyLength(long long value);
const String& DownloadedFilePath() const { return downloaded_file_path_; }
void SetDownloadedFilePath(const String&);

Powered by Google App Engine
This is Rietveld 408576698