| Index: Source/modules/serviceworkers/Cache.h
|
| diff --git a/Source/modules/serviceworkers/Cache.h b/Source/modules/serviceworkers/Cache.h
|
| index bacfa5cebd86cc3bc26973de06fe1fb50b2ec030..e5e3632b403a26b297186ed7e3c1a7fa609d8436 100644
|
| --- a/Source/modules/serviceworkers/Cache.h
|
| +++ b/Source/modules/serviceworkers/Cache.h
|
| @@ -7,8 +7,10 @@
|
|
|
| #include "bindings/core/v8/ScriptPromise.h"
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "public/platform/WebServiceWorkerCache.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/Noncopyable.h"
|
| +#include "wtf/OwnPtr.h"
|
| #include "wtf/RefCounted.h"
|
| #include "wtf/Vector.h"
|
| #include "wtf/text/WTFString.h"
|
| @@ -22,11 +24,13 @@ class Request;
|
| class ScriptState;
|
| class WebServiceWorkerCache;
|
|
|
| -class Cache FINAL : public RefCountedWillBeGarbageCollected<Cache>, public ScriptWrappable {
|
| +class Cache FINAL : public RefCountedWillBeGarbageCollected<Cache>, public ScriptWrappable, public WebServiceWorkerCache::ProxyInterface {
|
| WTF_MAKE_NONCOPYABLE(Cache);
|
| public:
|
| static PassRefPtrWillBeRawPtr<Cache> fromWebServiceWorkerCache(WebServiceWorkerCache*);
|
|
|
| + virtual ~Cache();
|
| +
|
| // From Cache.idl:
|
| ScriptPromise match(ScriptState*, Request*, const Dictionary& queryParams);
|
| ScriptPromise match(ScriptState*, const String&, const Dictionary& queryParams);
|
| @@ -46,9 +50,20 @@ public:
|
| void trace(Visitor*) { }
|
|
|
| private:
|
| - explicit Cache(WebServiceWorkerCache* webCache);
|
| + explicit Cache(WebServiceWorkerCache*);
|
| +
|
| + static PassRefPtrWillBeRawPtr<Cache> create(WebServiceWorkerCache*);
|
| +
|
| + ScriptPromise matchImpl(ScriptState*, PassRefPtrWillBeRawPtr<Request>, const Dictionary& queryParams);
|
| + ScriptPromise matchAllImpl(ScriptState*, PassRefPtrWillBeRawPtr<Request>, const Dictionary& queryParams);
|
| + ScriptPromise addImpl(ScriptState*, PassRefPtrWillBeRawPtr<Request>);
|
| + ScriptPromise addAllImpl(ScriptState*, Vector<RefPtrWillBeRawPtr<Request> >);
|
| + ScriptPromise deleteImpl(ScriptState*, PassRefPtrWillBeRawPtr<Request>, const Dictionary& queryParams);
|
| + ScriptPromise putImpl(ScriptState*, PassRefPtrWillBeRawPtr<Request>, Response*);
|
| + ScriptPromise keysImpl(ScriptState*);
|
| + ScriptPromise keysImpl(ScriptState*, PassRefPtrWillBeRawPtr<Request>, const Dictionary& queryParams);
|
|
|
| - WebServiceWorkerCache const* ALLOW_UNUSED m_webCache;
|
| + OwnPtr<WebServiceWorkerCache> m_webCache;
|
| };
|
|
|
| } // namespace blink
|
|
|