DescriptionCachedMetadata support for ServiceWorker script.
This cl changes the followings
- Introduce CachedMetadataHandler interface.
- Change V8ScriptRunner to use this interface instead of Resource class while handling the metadata.
- Introduce ServiceWorkerScriptCachedMetadataHandler.
- In WorkerThread::initialize(), we create CachedMetadataHandler by calling workerGlobalScope()->createWorkerScriptCachedMetadataHandler() with m_cachedMetaData in WorkerThreadStartupData.
- If the workerGlobalScope is a ServiceWorkerGlobalScope createWorkerScriptCachedMetadataHandler() returns ServiceWorkerScriptCachedMetadataHandler, otherwise returns null.
- We pass it to WorkerScriptController. And it will be used in V8ScriptRunner.
- When ServiceWorkerScriptCachedMetadataHandler.setCachedMetadata/clearCachedMetadata is called, we call ServiceWorkerGlobalScopeClientImpl.setCachedMetadata/clearCachedMetadata.
- When ServiceWorkerGlobalScopeClientImpl.setCachedMetadata/clearCachedMetadata is called we call WebServiceWorkerContextClient.setCachedMetadata/clearCachedMetadata.
I will implement ServiceWorkerScriptContext.setCachedMetadata/clearCachedMetadata in chromium side.
These method will send IPC message to the browser process.
BUG=449895
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190399
Patch Set 1 #
Total comments: 4
Patch Set 2 : incorporated vivekg's comment / update core.gypi #Patch Set 3 : update WorkerScriptController.h #
Total comments: 7
Patch Set 4 : incorporated vivekg's comment #
Total comments: 22
Patch Set 5 : incorporated vogelheim's comment #Patch Set 6 : incorporated kinuko's comment #
Total comments: 6
Patch Set 7 : fix test failure #Patch Set 8 : incorporated vogelheim's comment #Patch Set 9 : WorkerGlobalScope::createWorkerScriptCachedMetadataHandler #
Total comments: 8
Patch Set 10 : incorporated kinuko's comment #
Total comments: 8
Patch Set 11 : incorporated marja's comment #
Total comments: 4
Patch Set 12 : incorporated marja's comment #
Total comments: 4
Patch Set 13 : incorporated nichaeln's comment #
Total comments: 6
Patch Set 14 : incorporated tkent's comment #Messages
Total messages: 46 (14 generated)
|