DescriptionServiceWorker: Make SWProviderHost listen to SWRegistration
This is a refactoring patch. Before this patch, ServiceWorkerRegisterJob is
responsible for updating ServiceWorkerRegistration object and document's
version attributes (ie. '.installing' etc) via ServiceWorkerProviderHost.
This change makes the provider host implement Registration::Listener.
Listers are notified when the registration is updated, so the register
job no longer has to manage the version attributes.
BUG=396400
TEST=content_unittests --gtest_filter=ServiceWorker*
TEST=run_webkit_tests.py --debug http/tests/serviceworker
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288323
Patch Set 1 : #
Total comments: 6
Patch Set 2 : rebase #Patch Set 3 : address falken's comments #
Total comments: 12
Patch Set 4 : address michael's comments #
Total comments: 20
Patch Set 5 : fix more #Patch Set 6 : refactor #
Total comments: 2
Patch Set 7 : clean up #
Total comments: 4
Patch Set 8 : address michael's comments #Messages
Total messages: 18 (0 generated)
|