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

Side by Side Diff: Source/modules/serviceworkers/CacheStorage.h

Issue 478693005: Oilpan: Ship Oilpan for serviceworkers/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CacheStorage_h 5 #ifndef CacheStorage_h
6 #define CacheStorage_h 6 #define CacheStorage_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptState.h" 9 #include "bindings/core/v8/ScriptState.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
11 #include "wtf/Forward.h" 11 #include "wtf/Forward.h"
12 #include "wtf/Noncopyable.h" 12 #include "wtf/Noncopyable.h"
13 #include "wtf/RefCounted.h"
14 13
15 namespace blink { 14 namespace blink {
16 15
17 class WebServiceWorkerCacheStorage; 16 class WebServiceWorkerCacheStorage;
18 17
19 class CacheStorage FINAL : public RefCountedWillBeGarbageCollected<CacheStorage> , public ScriptWrappable { 18 class CacheStorage FINAL : public GarbageCollected<CacheStorage>, public ScriptW rappable {
20 WTF_MAKE_NONCOPYABLE(CacheStorage); 19 WTF_MAKE_NONCOPYABLE(CacheStorage);
21 public: 20 public:
22 static PassRefPtrWillBeRawPtr<CacheStorage> create(WebServiceWorkerCacheStor age*); 21 static CacheStorage* create(WebServiceWorkerCacheStorage*);
23 22
24 ScriptPromise get(ScriptState*, const String& cacheName); 23 ScriptPromise get(ScriptState*, const String& cacheName);
25 ScriptPromise has(ScriptState*, const String& cacheName); 24 ScriptPromise has(ScriptState*, const String& cacheName);
26 ScriptPromise createFunction(ScriptState*, const String& cacheName); 25 ScriptPromise createFunction(ScriptState*, const String& cacheName);
27 ScriptPromise deleteFunction(ScriptState*, const String& cacheName); 26 ScriptPromise deleteFunction(ScriptState*, const String& cacheName);
28 ScriptPromise keys(ScriptState*); 27 ScriptPromise keys(ScriptState*);
29 28
30 void trace(Visitor*) { } 29 void trace(Visitor*) { }
31 30
32 private: 31 private:
33 explicit CacheStorage(WebServiceWorkerCacheStorage*); 32 explicit CacheStorage(WebServiceWorkerCacheStorage*);
34 33
35 WebServiceWorkerCacheStorage* m_webCacheStorage; 34 WebServiceWorkerCacheStorage* m_webCacheStorage;
36 }; 35 };
37 36
38 } // namespace blink 37 } // namespace blink
39 38
40 #endif // CacheStorage_h 39 #endif // CacheStorage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698