OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ServiceWorkerScriptCachedMetadataHandler_h | |
6 #define ServiceWorkerScriptCachedMetadataHandler_h | |
7 | |
8 #include "core/fetch/CachedMetadataHandler.h" | |
9 #include "platform/weborigin/KURL.h" | |
10 #include "wtf/PassOwnPtr.h" | |
11 #include "wtf/Vector.h" | |
12 | |
13 namespace blink { | |
14 | |
15 class WorkerGlobalScope; | |
16 class CachedMetadata; | |
17 | |
18 class ServiceWorkerScriptCachedMetadataHandler : public CachedMetadataHandler { | |
19 public: | |
20 static PassOwnPtr<ServiceWorkerScriptCachedMetadataHandler> create(WorkerGlo balScope* workerGlobalScope, const KURL& scriptURL, const Vector<char>* metaData ) | |
21 { | |
22 return adoptPtr(new ServiceWorkerScriptCachedMetadataHandler(workerGloba lScope, scriptURL, metaData)); | |
23 } | |
24 ~ServiceWorkerScriptCachedMetadataHandler() override; | |
25 void setCachedMetadata(unsigned /* dataTypeID */, const char*, size_t, Cache Type) override; | |
kinuko
2015/02/17 07:56:46
ditto (for commented parameter names)
horo
2015/02/17 08:20:27
Done.
| |
26 void clearCachedMetadata(CacheType) override; | |
27 CachedMetadata* cachedMetadata(unsigned /* dataTypeID */) const override; | |
28 String encoding() const override; | |
29 | |
30 private: | |
31 ServiceWorkerScriptCachedMetadataHandler(WorkerGlobalScope*, const KURL& /* scriptURL */, const Vector<char>* /* metaData */); | |
32 | |
33 WorkerGlobalScope* m_workerGlobalScope; | |
34 KURL m_scriptURL; | |
35 RefPtr<CachedMetadata> m_cachedMetadata; | |
36 }; | |
37 | |
38 } // namespace blink | |
39 | |
40 #endif // ServiceWorkerScriptCachedMetadataHandler_h | |
OLD | NEW |