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

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

Issue 2900613002: Support DevTools for off-main-thread-fetch (Closed)
Patch Set: rebase Created 3 years, 5 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 e092ffad3b7761c697ba2ebb3f3d0a055c0a6fca..18972615beb28d07978442fb9606398520db286e 100644
--- a/third_party/WebKit/Source/core/loader/WorkerFetchContext.h
+++ b/third_party/WebKit/Source/core/loader/WorkerFetchContext.h
@@ -64,21 +64,36 @@ class WorkerFetchContext final : public BaseFetchContext {
void AddConsoleMessage(ConsoleMessage*) const override;
// FetchContext implementation:
- // TODO(horo): Implement more methods.
SecurityOrigin* GetSecurityOrigin() const override;
std::unique_ptr<WebURLLoader> CreateURLLoader(
const ResourceRequest&) override;
void PrepareRequest(ResourceRequest&, RedirectType) override;
bool IsControlledByServiceWorker() 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/FrameLoader.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