ServiceWorker: Stop ServiceWorkerProviderContext from tracking statechange events
commit27e406c31ae7e555f11589e2b2ac106388321356
authornhiroki <nhiroki@chromium.org>
Tue, 15 Sep 2015 07:33:45 +0000 (15 00:33 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 15 Sep 2015 07:34:19 +0000 (15 07:34 +0000)
treec054c6a71c3a01c19fbb0f1b4f04f0bd9b58b024
parent53f2377e876739f384c5f73debbc14ec83b7cf09
ServiceWorker: Stop ServiceWorkerProviderContext from tracking statechange events

This is a cleanup CL. ServiceWorkerProviderContext does not have to track
statechange events:

* For ServiceWorkerGlobalScope, statechange events are queued up in
ServiceWorkerProviderHost until the worker thread is started and then
the events are directly delivered to WebServiceWorkerImpl.

* For (controlled) Document, the context does not care statechange
events on the associated registration.

BUG=n/a

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

Cr-Commit-Position: refs/heads/master@{#348848}
content/child/service_worker/service_worker_dispatcher.cc
content/child/service_worker/service_worker_dispatcher.h
content/child/service_worker/service_worker_provider_context.cc
content/child/service_worker/service_worker_provider_context.h