Introduce SingleThreadTaskExecutor the replacement for base::MessageLoop
A large but mostly trivial patch in preparation for removing
base::MessageLoop. We introduce SingleThreadTaskExecutor a simple FIFO
scheduler, which is intended for non-test code that needs a simple
single threaded task environment. Tests should use ScopedTaskEnvironment
or TestBrowserThreadBundle instead.
This patch also moves MessageLoop::Type to MessagePump::Type and
moves the factory method to MessagePump::Create.
Reviewed-by: Alex Clarke <email@example.com>
Reviewed-by: Gabriel Charette <firstname.lastname@example.org>
Commit-Queue: Alex Clarke <email@example.com>
2 files changed