-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove direct dependency of the main thread from ServiceWorkerContext…
…Client When off-the-main-thread service worker startup is enabled, we will create ServiceWorkerContextClient on the IO thread. Stop accessing GetWebMainThreadScheduler() directly from EmbeddedWorkerInstanceClientImpl. Instead, plumb a task runner from the RenderThreadImpl. This way we could change the task runner easily to the one that is bound to the IO thread in the future. Update comments, methods, and member fields that mention the main thread. As an alternative, I chose "the starter thread." Bug: 692909 Change-Id: I061d0bb6da3c8c6985a3e591d55ae57e9f5c3924 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1743227 Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#685114}
- Loading branch information
Showing
5 changed files
with
81 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.