ServiceWorker: Add per-registration key/value storage mechanism in SWDatabase
commitfd0dec420d51ba15e2905d58c93e80834ecded64
authornhiroki <nhiroki@chromium.org>
Tue, 2 Dec 2014 04:10:32 +0000 (1 20:10 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 2 Dec 2014 04:10:50 +0000 (2 04:10 +0000)
treec45b7aadafff86561024368a132454914a619a3b
parent1cf451a6580a01a12a3c8bc95d3752e69eb31692
ServiceWorker: Add per-registration key/value storage mechanism in SWDatabase

This CL provides a storage mechanism to read/write arbitrary data associated
with a registration. When a registration is deleted, all associated data are
also deleted.

BUG=435519
TEST=content_unittests --gtest_filter=ServiceWorkerStorage*:ServiceWorkerDatabase*

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

Cr-Commit-Position: refs/heads/master@{#306339}
content/browser/service_worker/service_worker_database.cc
content/browser/service_worker/service_worker_database.h
content/browser/service_worker/service_worker_database_unittest.cc
content/browser/service_worker/service_worker_registration.cc
content/browser/service_worker/service_worker_registration.h
content/browser/service_worker/service_worker_storage.cc
content/browser/service_worker/service_worker_storage.h
content/browser/service_worker/service_worker_storage_unittest.cc