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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.h

Issue 2519843002: Update ResourceResponse::encodedDataLength when response is completed (Closed)
Patch Set: fix Created 4 years, 1 month 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/fetch/Resource.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index 1683b8e4433cbda3efff5f739db40a0959c9ac00..dde6caa55ae4c732008e151d425992fd170bdeaf 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -300,6 +300,9 @@ class CORE_EXPORT Resource : public GarbageCollectedFinalized<Resource>,
double loadFinishTime() const { return m_loadFinishTime; }
+ void setEncodedDataLength(int value) {
hiroshige 2016/11/22 08:26:06 Shouldn't this |int64_t value|?
yhirano 2016/11/22 08:43:42 Thanks, you're right.
+ m_response.setEncodedDataLength(value);
+ }
void addToEncodedBodyLength(int value) {
m_response.addToEncodedBodyLength(value);
}
« no previous file with comments | « content/renderer/fetchers/resource_fetcher_impl.cc ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698