Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h

Issue 1915833002: Introduce Platform::cacheMetadataInCacheStorage() to store V8 code cache in CacheStorage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ServiceWorkerScriptCachedMetadataHandler_h 5 #ifndef ServiceWorkerScriptCachedMetadataHandler_h
6 #define ServiceWorkerScriptCachedMetadataHandler_h 6 #define ServiceWorkerScriptCachedMetadataHandler_h
7 7
8 #include "core/fetch/CachedMetadataHandler.h" 8 #include "core/fetch/CachedMetadataHandler.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "platform/weborigin/KURL.h" 10 #include "platform/weborigin/KURL.h"
(...skipping 10 matching lines...) Expand all
21 static ServiceWorkerScriptCachedMetadataHandler* create(WorkerGlobalScope* w orkerGlobalScope, const KURL& scriptURL, const Vector<char>* metaData) 21 static ServiceWorkerScriptCachedMetadataHandler* create(WorkerGlobalScope* w orkerGlobalScope, const KURL& scriptURL, const Vector<char>* metaData)
22 { 22 {
23 return new ServiceWorkerScriptCachedMetadataHandler(workerGlobalScope, s criptURL, metaData); 23 return new ServiceWorkerScriptCachedMetadataHandler(workerGlobalScope, s criptURL, metaData);
24 } 24 }
25 ~ServiceWorkerScriptCachedMetadataHandler() override; 25 ~ServiceWorkerScriptCachedMetadataHandler() override;
26 DECLARE_VIRTUAL_TRACE(); 26 DECLARE_VIRTUAL_TRACE();
27 void setCachedMetadata(unsigned dataTypeID, const char*, size_t, CacheType) override; 27 void setCachedMetadata(unsigned dataTypeID, const char*, size_t, CacheType) override;
28 void clearCachedMetadata(CacheType) override; 28 void clearCachedMetadata(CacheType) override;
29 CachedMetadata* cachedMetadata(unsigned dataTypeID) const override; 29 CachedMetadata* cachedMetadata(unsigned dataTypeID) const override;
30 String encoding() const override; 30 String encoding() const override;
31 bool shouldAggressivelyCache() const override;
31 32
32 private: 33 private:
33 ServiceWorkerScriptCachedMetadataHandler(WorkerGlobalScope*, const KURL& scr iptURL, const Vector<char>* metaData); 34 ServiceWorkerScriptCachedMetadataHandler(WorkerGlobalScope*, const KURL& scr iptURL, const Vector<char>* metaData);
34 35
35 Member<WorkerGlobalScope> m_workerGlobalScope; 36 Member<WorkerGlobalScope> m_workerGlobalScope;
36 KURL m_scriptURL; 37 KURL m_scriptURL;
37 RefPtr<CachedMetadata> m_cachedMetadata; 38 RefPtr<CachedMetadata> m_cachedMetadata;
38 }; 39 };
39 40
40 } // namespace blink 41 } // namespace blink
41 42
42 #endif // ServiceWorkerScriptCachedMetadataHandler_h 43 #endif // ServiceWorkerScriptCachedMetadataHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698