ServiceWorker: Pass WebEmbeddedWorkerStartData as a function argument
This is a cleanup CL, and doesn't change existing behavior. Before this CL, WebEmbeddedWorkerStartData was kept as a member of WebEmbeddedWorkerImpl, and passed when a new service worker thread starts. After this CL, the data is directly passed through WebEmbeddedWorkerImpl as a function argument. Keeping the data as a member was needed when asynchronous script fetch was done on the initiator thread. Now, script fetch is done on the worker thread, and operations on the initiator thread are synchronous. It's no longer necessary to keep it as a member. In addition, this CL... - passes the data as std::unique_ptr not const-reference because it's modified during being passed through WebEmbeddedWorkerImpl. - also makes |devtools_worker_token_| and |wait_for_debuffer_mode_| non-member. Bug: n/a Change-Id: I30b606c5543c4a8776561a10da9972bb29eff83a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1813798Reviewed-by:Kenichi Ishibashi <bashi@chromium.org> Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#699569}
Showing
Please register or sign in to comment