Index: third_party/WebKit/Source/core/loader/WorkerFetchContext.h |
diff --git a/third_party/WebKit/Source/core/loader/WorkerFetchContext.h b/third_party/WebKit/Source/core/loader/WorkerFetchContext.h |
index 1689287a2d9430f06648e3174a32916c874d2caa..fb74b36cd1c8c59f9aa1baf991cdb5afd8b5fd76 100644 |
--- a/third_party/WebKit/Source/core/loader/WorkerFetchContext.h |
+++ b/third_party/WebKit/Source/core/loader/WorkerFetchContext.h |
@@ -55,20 +55,35 @@ class WorkerFetchContext final : public BaseFetchContext { |
SecurityViolationReportingPolicy) const override; |
// FetchContext implementation: |
- // TODO(horo): Implement more methods. |
std::unique_ptr<WebURLLoader> CreateURLLoader() override; |
void PrepareRequest(ResourceRequest&, RedirectType) override; |
bool IsControlledByServiceWorker() const override; |
RefPtr<WebTaskRunner> LoadingTaskRunner() const override; |
- |
void AddAdditionalRequestHeaders(ResourceRequest&, |
FetchResourceType) override; |
+ void DispatchWillSendRequest(unsigned long, |
+ ResourceRequest&, |
+ const ResourceResponse&, |
+ const FetchInitiatorInfo&) override; |
void DispatchDidReceiveResponse(unsigned long identifier, |
const ResourceResponse&, |
WebURLRequest::FrameType, |
WebURLRequest::RequestContext, |
Resource*, |
ResourceResponseType) override; |
+ void DispatchDidReceiveData(unsigned long identifier, |
+ const char* data, |
+ int dataLength) override; |
+ void DispatchDidReceiveEncodedData(unsigned long identifier, |
+ int encodedDataLength) override; |
+ void DispatchDidFinishLoading(unsigned long identifier, |
+ double finishTime, |
+ int64_t encodedDataLength, |
+ int64_t decodedBodyLength) override; |
+ void DispatchDidFail(unsigned long identifier, |
+ const ResourceError&, |
+ int64_t encodedDataLength, |
+ bool isInternalRequest) override; |
void AddResourceTiming(const ResourceTimingInfo&) override; |
void PopulateResourceRequest(const KURL&, |
Resource::Type, |