ServiceWorker: Enqueue state change events until the worker thread gets ready
commitb0e43f64ce0dd2932d8dfac0f0c37b0ac64de3be
authornhiroki <nhiroki@chromium.org>
Wed, 28 Jan 2015 14:59:41 +0000 (28 06:59 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 28 Jan 2015 15:00:24 +0000 (28 15:00 +0000)
tree13081483a423f506c257588da637145b2c394e4f
parent35df6d4a566461e6fd1637c00295ef3ccc7c2b35
ServiceWorker: Enqueue state change events until the worker thread gets ready

This CL supports the step 3 described in the design doc:
https://docs.google.com/document/d/1qDGbMlwKOXxCRBlw9IirK8Qmna3JqvnO3Aogkfu9UJQ/edit?usp=sharing

Queued events are flushed out when the worker thread gets ready and
the provider host is notified of the thread id.

BUG=437677
TEST=https://codereview.chromium.org/861743002/

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

Cr-Commit-Position: refs/heads/master@{#313512}
content/browser/service_worker/service_worker_dispatcher_host.cc
content/browser/service_worker/service_worker_dispatcher_host.h
content/browser/service_worker/service_worker_dispatcher_host_unittest.cc
content/browser/service_worker/service_worker_handle_unittest.cc
content/browser/service_worker/service_worker_provider_host.cc
content/browser/service_worker/service_worker_provider_host.h
content/common/service_worker/embedded_worker_messages.h
content/renderer/service_worker/embedded_worker_context_client.cc