Index: third_party/WebKit/public/web/WebSharedWorkerClient.h |
diff --git a/third_party/WebKit/public/web/WebSharedWorkerClient.h b/third_party/WebKit/public/web/WebSharedWorkerClient.h |
index 46f8cf1d1aa872e73235f5f04264b46c42685a57..9ad1315dd1b8ffc60f3b7b2425ce1d505493f93b 100644 |
--- a/third_party/WebKit/public/web/WebSharedWorkerClient.h |
+++ b/third_party/WebKit/public/web/WebSharedWorkerClient.h |
@@ -43,6 +43,7 @@ class WebSecurityOrigin; |
class WebServiceWorkerNetworkProvider; |
class WebString; |
class WebWorkerContentSettingsClientProxy; |
+class WebWorkerFetchContext; |
// Provides an interface back to the in-page script object for a worker. |
// All functions are expected to be called back on the thread that created |
@@ -93,6 +94,11 @@ class WebSharedWorkerClient { |
CreateDevToolsMessageLoop() { |
return nullptr; |
} |
+ |
+ // Returns a new WebWorkerFetchContext for the shared worker. |
+ // Ownership of the returned object is transferred to the caller. This is used |
+ // only when off-main-thread-fetch is enabled. |
+ virtual WebWorkerFetchContext* CreateWorkerFetchContext() { return 0; } |
}; |
} // namespace blink |