Worker: Create WebWorkerFetchContext before starting shared workers
As a part of the Onion Soup project, this CL changes the timing to create WebWorkerFetchContext for shared workers. Before this CL, WebWorkerFetchContext was created as follows: - [in content] EmbeddedSharedWorkerStub::EmbeddedSharedWorkerStub() - [in blink] WebSharedWorkerImpl::CreateAndStart() - [in content] EmbeddedSharedWorkerStub::CreateWorkerFetchContext() - Creates WebWorkerFetchContext instance here. This needed an inter-module function from blink to content, and WebSharedWorkerClient::CreateWorkerFetchContext() was that. After this CL, WebWorkerFetchContext is created as follows: - [in content] EmbeddedSharedWorkerStub::EmbeddedSharedWorkerStub() - [in content] EmbeddedSharedWorkerStub::CreateWorkerFetchContext() - Creates WebWorkerFetchContext instance here. - [in blink] WebSharedWorkerImpl::CreateAndStart() - Passes the context into WebSharedWorkerImpl here. This enables to remove the function. Bug: 911415 Change-Id: Ieec240321f7a5884c5680c8ce6d3f24b4081813e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2309314 Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by:Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#790709}
Showing
Please register or sign in to comment