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

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

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: rebase Created 3 years, 7 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/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..b55ccb97007f7ff5bbb27da7ad66a3096118fdf7 100644
--- a/third_party/WebKit/Source/core/loader/WorkerFetchContext.h
+++ b/third_party/WebKit/Source/core/loader/WorkerFetchContext.h
@@ -55,20 +55,36 @@ 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;
-
+ int64_t ServiceWorkerID() 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,
« no previous file with comments | « third_party/WebKit/Source/core/loader/PingLoader.cpp ('k') | third_party/WebKit/Source/core/loader/WorkerFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698