DescriptionCacheStorage: Support multiple batch operations
This is groundwork for supporting cache.addAll() [1]. The current backend
implementation assumes that a cache IPC message contains just one batch
operation, so the backend cannot handle multiple batch operations issued
by cache.addAll().
To support them, this CL introduces CacheStorageCache::BatchOperation which
is an entry point for put/delete operations and roughly corresponds to the
BatchCacheOperations algorithm in the spec [2].
According to the spec, batch operations should atomically be done, but this CL
does not support it yet.
[1] https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-addAll
[2] https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#batch-cache-operations-algorithm
BUG=426928, 427652
TEST=content_unittests --gtest_filter=CacheStorage*
TEST=run-webkit-tests http/tests/cachestorage/
Committed: https://crrev.com/d04e05cd1fafc6c666ff07a30f94bca781fe5d60
Cr-Commit-Position: refs/heads/master@{#329121}
Patch Set 1 : #
Total comments: 8
Patch Set 2 : address review comments and add tests #
Total comments: 13
Patch Set 3 : rebase #Patch Set 4 : add comments #
Messages
Total messages: 25 (14 generated)
|