Chromium Code Reviews| 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..3b49991d9de2340fec1fd16958497bab8b690922 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 nullptr; } |
|
kinuko
2017/04/20 04:08:14
ditto (unique_ptr)
nhiroki
2017/04/20 04:16:07
How about returning std::unique_ptr<WebWorkerFetch
horo
2017/04/20 08:35:43
Done.
|
| }; |
| } // namespace blink |