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

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

Issue 2519893002: Stop dispatching encoded-data-length on each data chunk arrival (Closed)
Patch Set: PS5 again Created 4 years 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/FetchContext.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchContext.h b/third_party/WebKit/Source/core/fetch/FetchContext.h
index ebd4f5a6bc918b393f4853f906f23c3d604df5cf..dbf265726ac56af07a66ed4c59f999a7f23f5ef5 100644
--- a/third_party/WebKit/Source/core/fetch/FetchContext.h
+++ b/third_party/WebKit/Source/core/fetch/FetchContext.h
@@ -101,8 +101,9 @@ class CORE_EXPORT FetchContext
Resource*);
virtual void dispatchDidReceiveData(unsigned long identifier,
const char* data,
- int dataLength,
- int encodedDataLength);
+ int dataLength);
+ virtual void dispatchDidReceiveEncodedData(unsigned long identifier,
+ int encodedDataLength);
virtual void dispatchDidDownloadData(unsigned long identifier,
int dataLength,
int encodedDataLength);
@@ -111,6 +112,7 @@ class CORE_EXPORT FetchContext
int64_t encodedDataLength);
virtual void dispatchDidFail(unsigned long identifier,
const ResourceError&,
+ int64_t encodedDataLength,
bool isInternalRequest);
virtual bool shouldLoadNewResource(Resource::Type) const { return false; }

Powered by Google App Engine
This is Rietveld 408576698