Dispatch install event during ServiceWorker registration
commit9342e463757f74016103f07d229478dc3f409ffe
authorfalken@chromium.org <falken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 4 Apr 2014 08:45:49 +0000 (4 08:45 +0000)
committerfalken@chromium.org <falken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 4 Apr 2014 08:45:49 +0000 (4 08:45 +0000)
tree0fc5870cb71927e8e16f729d88e60e8db9772573
parent22d082c060c15ffacb8c78c66982ad72ca666789
Dispatch install event during ServiceWorker registration

More generally, reshape registration code to fit the spec. Some
changes include:
- Check the status code passed by StoreRegistration. This currently
can’t fail, so it’s untested.
- Check the status code passed by StartWorker. This case is already
tested by Register_FailToStartWorker.
- After starting the worker, run the registration callbacks and continue
on to the installation flow. New tests are added for this behavior.

BUG=349337

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261711 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/service_worker/embedded_worker_test_helper.cc
content/browser/service_worker/service_worker_context_unittest.cc
content/browser/service_worker/service_worker_register_job.cc
content/browser/service_worker/service_worker_register_job.h
content/browser/service_worker/service_worker_version.cc