ServiceWorker: Notify observers when the storage gets recovered from corruption state
commit8638c04365af5cec5a96b97dd646cbf3d6a6b20c
authornhiroki <nhiroki@chromium.org>
Tue, 9 Dec 2014 04:20:47 +0000 (8 20:20 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 9 Dec 2014 04:21:22 +0000 (9 04:21 +0000)
tree48a2dc37c5a6186e896c969697915df1d932a4cc
parenta06f78ce0b99f2bd2251b3ee0260766c2a1192e8
ServiceWorker: Notify observers when the storage gets recovered from corruption state

This introduces OnStorageWiped event in ServiceWorkerContextObserver. The event
is notified when the storage gets recovered from the corruption state.

Note: OnRegistrationDelete events are not delivered in this case because we
cannot retrieve registration data to be deleted from the corrupted database.

BUG=438075
TEST=content_unittests --gtest_filter=ServiceWorkerContextTest.*

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

Cr-Commit-Position: refs/heads/master@{#307414}
content/browser/service_worker/service_worker_context_observer.h
content/browser/service_worker/service_worker_context_unittest.cc
content/browser/service_worker/service_worker_context_wrapper.cc