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

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

Issue 2816403002: test all
Patch Set: fix sharedworker 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') | tools/metrics/histograms/histograms.xml » ('j') | 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 4b8c565edbc49ab90c28183cf91ca6a8bc4c2700..16cceca84b8e2458b83f8f46a89bd8efcee5c6c3 100644
--- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
+++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
@@ -51,6 +51,7 @@ class WebServiceWorkerNetworkProvider;
class WebServiceWorkerProvider;
class WebServiceWorkerResponse;
class WebString;
+class WebWorkerFetchContext;
// This interface is implemented by the client. It is supposed to be created
// on the main thread and then passed on to the worker thread by a newly
@@ -232,6 +233,13 @@ 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 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') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698