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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.h

Issue 2519893002: Stop dispatching encoded-data-length on each data chunk arrival (Closed)
Patch Set: fix 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/loader/FrameFetchContext.h
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.h b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
index e65e70280feecf1d6a049a6f5b2c667753149d23..7193740d3a00bb7b97377a45c7bb3b9ce9740456 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.h
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
@@ -93,8 +93,9 @@ class CORE_EXPORT FrameFetchContext final : public FetchContext {
Resource*) override;
void dispatchDidReceiveData(unsigned long identifier,
const char* data,
- int dataLength,
- int encodedDataLength) override;
+ int dataLength) override;
+ void dispatchDidReceiveEncodedData(unsigned long identifier,
+ int encodedDataLength) override;
void dispatchDidDownloadData(unsigned long identifier,
int dataLength,
int encodedDataLength) override;
@@ -103,6 +104,7 @@ class CORE_EXPORT FrameFetchContext final : public FetchContext {
int64_t encodedDataLength) override;
void dispatchDidFail(unsigned long identifier,
const ResourceError&,
+ int64_t encodedDataLength,
bool isInternalRequest) override;
bool shouldLoadNewResource(Resource::Type) const override;

Powered by Google App Engine
This is Rietveld 408576698