DescriptionIntroduce AppCacheResponseMetadataWriter to support metadata caching.
We are implementing V8 code caching for ServiceWorker script.
V8 code caching for the normal script resources which are loaded with <script> tag was implemented. (crbug.com/399580)
The code cache is stored in HttpCache as a metadata of the original script.
But ServiceWorker's script is stored not in HttpCache but in ServiceWorkerStorage.
To support V8 code caching for ServiceWorker script, we have to implement metadata caching mechanism in ServiceWorkerStorage.
ServiceWorkerStorage are using AppCache's storage backend.
So this cl introduces metadata caching mechanism in AppCache's storage backend.
To store the metadata we are using "stream 2" of the DiskCache entry.
This is the same way HttpCache uses in HttpCache::Transaction::WriteMetadata().
TEST=content_unittestes --gtest_filter=AppCacheResponseTest.*
BUG=449895
Committed: https://crrev.com/a95000738bc5cfee057bf235c071923c923a1e0f
Cr-Commit-Position: refs/heads/master@{#316772}
Patch Set 1 : #
Total comments: 6
Patch Set 2 : incorporated michaeln's comment #
Messages
Total messages: 15 (5 generated)
|