ServiceWorker: Add check for id overlap between pushed and deleted resources
commit3d57370c47daab02aae46aeb676eddfc8f475bf4
authornhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 27 May 2014 02:53:36 +0000 (27 02:53 +0000)
committernhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 27 May 2014 02:53:36 +0000 (27 02:53 +0000)
tree34373d6ad5716412904cecb9e80a384ebb9900ae
parent7c600504b8c17397157ee7266c16ee3a6ffe0196
ServiceWorker: Add check for id overlap between pushed and deleted resources

Currently resource sharing across versions and registrations is not supported,
so resource ids should not be overlapped between a new registration and an old
registration on WriteRegistration().

This change adds a check to make sure it.

BUG=n/a
TEST=content_unittests --gtest_filter=ServiceWorkerDatabaseTest.*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272912 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/service_worker/service_worker_database.cc