This is necessary for supporting off-main-thread worker start (issue 692909)
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b8e2b30a8594f8b98fc2903067fff235e32cece7 commit b8e2b30a8594f8b98fc2903067fff235e32cece7 Author: Hiroki Nakagawa <nhiroki@chromium.org> Date: Fri Jul 14 11:55:27 2017 Worker: Clarify thread affinity for improving code maintainability To improve code maintainability, this CL clarifies thread affinity of initialization and shutdown functions in worker classes. This does not change any existing behavior. Bug: 741227 Change-Id: I25fe7278130c90292b79cdd5607f10a0ef92f198 Reviewed-on: https://chromium-review.googlesource.com/567609 Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#486740} [modify] https://crrev.com/b8e2b30a8594f8b98fc2903067fff235e32cece7/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorldTest.cpp [modify] https://crrev.com/b8e2b30a8594f8b98fc2903067fff235e32cece7/third_party/WebKit/Source/core/css/threaded/MultiThreadedTestUtil.h [modify] https://crrev.com/b8e2b30a8594f8b98fc2903067fff235e32cece7/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp [modify] https://crrev.com/b8e2b30a8594f8b98fc2903067fff235e32cece7/third_party/WebKit/Source/core/workers/WorkerBackingThread.h [modify] https://crrev.com/b8e2b30a8594f8b98fc2903067fff235e32cece7/third_party/WebKit/Source/core/workers/WorkerThread.cpp [modify] https://crrev.com/b8e2b30a8594f8b98fc2903067fff235e32cece7/third_party/WebKit/Source/core/workers/WorkerThread.h [modify] https://crrev.com/b8e2b30a8594f8b98fc2903067fff235e32cece7/third_party/WebKit/Source/core/workers/WorkletThreadHolder.h [modify] https://crrev.com/b8e2b30a8594f8b98fc2903067fff235e32cece7/third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.cpp [modify] https://crrev.com/b8e2b30a8594f8b98fc2903067fff235e32cece7/third_party/WebKit/Source/modules/webdatabase/DatabaseThread.cpp [modify] https://crrev.com/b8e2b30a8594f8b98fc2903067fff235e32cece7/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp [modify] https://crrev.com/b8e2b30a8594f8b98fc2903067fff235e32cece7/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
Comment 1 by nhiroki@chromium.org
, Jul 12 2017