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

Unified Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h

Issue 2804843005: Implement the infrastructure of creating WorkerFetchContext in worker global scope. (Closed)
Patch Set: s/WebScheduler.h/web_scheduler.h/ Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/public/web/WebSharedWorkerClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
diff --git a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
index 63062cf4cea0399fc338d503ac418b8c4797c14b..90bc12be729205d5f103daca30d7ef883563577f 100644
--- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
+++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
@@ -35,6 +35,7 @@
#include "public/platform/WebMessagePortChannel.h"
#include "public/platform/WebURL.h"
+#include "public/platform/WebWorkerFetchContext.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerClientsClaimCallbacks.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h"
@@ -244,6 +245,14 @@ class WebServiceWorkerContextClient {
return nullptr;
}
+ // Creates a WebWorkerFetchContext for a service worker. Ownership of the
+ // returned object is transferred to the caller. This is called on the main
+ // thread. This is used only when off-main-thread-fetch is enabled.
+ virtual std::unique_ptr<blink::WebWorkerFetchContext>
+ CreateServiceWorkerFetchContext() {
+ return nullptr;
+ }
+
// Ownership of the returned object is transferred to the caller.
// This is called on the main thread.
virtual WebServiceWorkerProvider* CreateServiceWorkerProvider() {
« no previous file with comments | « third_party/WebKit/public/web/WebSharedWorkerClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698