Move WorkerThreadableLoader internal classes to Oilpan heap
This CL splits WorkerThreadableLoader::MainThreadBridgeBase (and subclasses)
into the following on-heap classes.
- TaskForwarder and subclasses
Lives in the main thread and forwards tasks to the worker thread.
- Bridge
Lives in the worker thread
- Peer
Lives in the worker thread and forwards notifications from
the loader living in the main thread to ThreadableLoaderClientWrapper
living in the worker thread with a TaskForwarder.
Pointers to an object living in the other thread are held as
CrossThread[Weak]Persistents (e.g., Bridge::m_peer).
BUG=587663
Review-Url: https://codereview.chromium.org/2151173003
Cr-Commit-Position: refs/heads/master@{#409727}
2 files changed