Give ServiceWorkerDiskCache its own implementation
This CL duplicates AppCacheDiskCache{,Entry} into ServiceWorkerDiskCache{,Entry} to remove the AppCache dependency from service workers. See [1] for the reasoning of this duplication. To avoid risks of behavior changes, this CL only makes minimum tweaks which includes: * Address Tricium warnings (use default member initializers, prefer emplace_back). * Follow the current coding style guide. * Remove `use_simple_cache_` flag. It's always true for service workers. * Add a sequence checker. Follow-up CLs will do some refactoring like addressing crbug.com/586174. [1] https://docs.google.com/document/d/1UhdZnaeEP8GywZR0Gik6wF6jKmNY3je6aDhPfJ05YhU/ Bug: 1117369 Change-Id: Ia62fe55a23c2c84b569516e97e0059994c7755bf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2452029 Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Reviewed-by:Victor Costan <pwnall@chromium.org> Reviewed-by:
Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#818326}
Showing
Please register or sign in to comment