Now that TaskRunnerHelper just offers simple 'redirect' functions, let's move the implementations to the corresponding classes like Document->GetTaskRunner(type).
For WorkerThread, there is a plan to rename or refactor, so let's wait for that.
Hm, I realized that it looks like hard to move the impl of Get(TaskType type, ScriptState* script_state) to ScriptState since ScriptState is in platform/binding and ExecusionContext is in core/dom.
Maybe can we deprecate Get(TaskType type, ScriptState* script_state)? There are only 15 occurrences, so it wouldn't be that hard to replace it with script_state->GetExecutionContext()->GetTaskRunner() etc.
As I replied to platform-architecture-dev, I think I cannot take a time to work on WorkerThread rename soon, so feel free to proceed without waiting for rename.
If you're interested in WorkerThread rename, feel free to take issue 710364 . I'd really appreciate it :)
Comment 1 by hajimehoshi@chromium.org
, Oct 24 2017