DescriptionImplement EmbeddedWorkerContextClient.setCachedMetadata/clearCachedMetadata
This cl depends on
Chromium:
- Introduce AppCacheResponseMetadataWriter to support metadata caching.
https://codereview.chromium.org/932643002/
Blink:
- CachedMetadata support for ServiceWorker script.
https://codereview.chromium.org/929953002/
After https://codereview.chromium.org/929953002/, EmbeddedWorkerContextClient.setCachedMetadata/clearCachedMetadata will be called when V8ScriptRunner calls CachedMetadataHandler.setCachedMetadata/clearCachedMetadata in a ServiceWorker.
This cl implements these methods.
When these methods are called, ServiceWorkerScriptContext sends IPC to the broeser process.
ServiceWorkerVersion recieves these messages and calls ServiceWorkerScriptCacheMap.WriteMetadata/ClearMetadata.
ServiceWorkerScriptCacheMap creates ServiceWorkerResponseMetadataWriter to write/clear the metadata in ServiceWorkerStorage.
ServiceWorkerResponseMetadataWriter is a subclass of AppCacheResponseMetadataWriter which is introduced https://codereview.chromium.org/932643002/.
TEST=content_unittests.exe --gtest_filter=ServiceWorkerResourceStorageTest.*
BUG=449895
Committed: https://crrev.com/c514247c033d77fff1481a94fc923c907baa3fe5
Cr-Commit-Position: refs/heads/master@{#317441}
Patch Set 1 #
Total comments: 8
Patch Set 2 : incorporated michaeln's comment #Patch Set 3 : change comments in service_worker_messages.h #Patch Set 4 : check process_id in EmbeddedWorkerRegistry::OnMessageReceived() #Patch Set 5 : fix tests #Patch Set 6 : fix clang failure #Messages
Total messages: 23 (5 generated)
|