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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 Cache_h 5 #ifndef Cache_h
6 #define Cache_h 6 #define Cache_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "core/dom/DOMException.h" 10 #include "core/dom/DOMException.h"
11 #include "public/platform/WebServiceWorkerCacheError.h" 11 #include "public/platform/WebServiceWorkerCacheError.h"
12 #include "wtf/Forward.h" 12 #include "wtf/Forward.h"
13 #include "wtf/Noncopyable.h" 13 #include "wtf/Noncopyable.h"
14 #include "wtf/RefCounted.h" 14 #include "wtf/RefCounted.h"
15 #include "wtf/Vector.h" 15 #include "wtf/Vector.h"
16 #include "wtf/text/WTFString.h" 16 #include "wtf/text/WTFString.h"
17 #include <v8.h> 17 #include <v8.h>
18 18
19 namespace blink { 19 namespace blink {
20 20
21 class Dictionary; 21 class Dictionary;
22 class Response; 22 class Response;
23 class Request; 23 class Request;
24 class ScriptState; 24 class ScriptState;
25 class WebServiceWorkerCache; 25 class WebServiceWorkerCache;
26 26
27 class Cache FINAL : public RefCountedWillBeGarbageCollected<Cache>, public Scrip tWrappable { 27 class Cache FINAL : public RefCountedWillBeGarbageCollected<Cache>, public Scrip tWrappable {
28 DEFINE_WRAPPERTYPEINFO();
28 WTF_MAKE_NONCOPYABLE(Cache); 29 WTF_MAKE_NONCOPYABLE(Cache);
29 public: 30 public:
30 static PassRefPtrWillBeRawPtr<Cache> fromWebServiceWorkerCache(WebServiceWor kerCache*); 31 static PassRefPtrWillBeRawPtr<Cache> fromWebServiceWorkerCache(WebServiceWor kerCache*);
31 32
32 // From Cache.idl: 33 // From Cache.idl:
33 ScriptPromise match(ScriptState*, Request*, const Dictionary& queryParams); 34 ScriptPromise match(ScriptState*, Request*, const Dictionary& queryParams);
34 ScriptPromise match(ScriptState*, const String&, const Dictionary& queryPara ms); 35 ScriptPromise match(ScriptState*, const String&, const Dictionary& queryPara ms);
35 ScriptPromise matchAll(ScriptState*, Request*, const Dictionary& queryParams ); 36 ScriptPromise matchAll(ScriptState*, Request*, const Dictionary& queryParams );
36 ScriptPromise matchAll(ScriptState*, const String&, const Dictionary& queryP arams); 37 ScriptPromise matchAll(ScriptState*, const String&, const Dictionary& queryP arams);
37 ScriptPromise add(ScriptState*, Request*); 38 ScriptPromise add(ScriptState*, Request*);
(...skipping 13 matching lines...) Expand all
51 52
52 private: 53 private:
53 explicit Cache(WebServiceWorkerCache* webCache); 54 explicit Cache(WebServiceWorkerCache* webCache);
54 55
55 WebServiceWorkerCache const* ALLOW_UNUSED m_webCache; 56 WebServiceWorkerCache const* ALLOW_UNUSED m_webCache;
56 }; 57 };
57 58
58 } // namespace blink 59 } // namespace blink
59 60
60 #endif // Cache_h 61 #endif // Cache_h
OLDNEW
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientation.h ('k') | Source/modules/serviceworkers/CacheStorage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698