https://codereview.chromium.org/2077413009/ will introduce a new API surface on SequencedWorkerPool that allows callers to specify the TaskPriority associated with tasks posted to that pool.
After which SequencedWorkerPool will be tweaked to redirect its tasks/sequences to TaskScheduler if (1) a TaskScheduler instance exists in this process (i.e. in browser process) and (2) an experiment (name TBD) says to do the redirection.
Note: special care will be taken for pools that only have 1 thread (e.g. webcrypto) and were merely used as a way to get access to ShutdownBehavior logic from a single-thread (I think..?). The TaskScheduler will be told to run tasks of such SequencedWorkerPools under ExecutionMode::SINGLE_THREADED instead of ExecutionMode::SEQUENCED/PARALLEL the regular redirection use case.
Comment 1 by eroman@chromium.org
, Jun 23 2016