Turn WorkerLoaderProxy into a threadsafe, ref-counted object.

To avoid relying on the loader client bridge's WorkerLoaderProxy reference
remaining valid until all uses of that bridge object have been finalized,
turn the WorkerLoaderProxy object into a threadsafe, ref-counted object.

Along with that, make the WorkerLoaderProxy implementation more flexible,
allowing the "backend" that actually proxies calls between the worker
and the main thread context to be detached when it is destructed.
This to allow it to be finalized before the WorkerLoaderProxy
instance can be. WorkerLoaderProxyProvider defines that "backend"
interface.

R=kinuko,haraken
BUG=451344

Review URL: https://codereview.chromium.org/887463003

git-svn-id: svn://svn.chromium.org/blink/trunk@189549 bbb929c8-8fbe-4397-9dbb-9b2b20218538
24 files changed
tree: 6f843adbd7b2418f1e452ee316a2aa24e7b66dc2
  1. third_party/