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

Unified Diff: Source/modules/serviceworkers/CacheStorage.h

Issue 424643002: Introducing the WebServiceWorkerCacheStorage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remediate to falken review 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/serviceworkers/CacheStorage.h
diff --git a/Source/modules/serviceworkers/CacheStorage.h b/Source/modules/serviceworkers/CacheStorage.h
index 30346258023871f209259aa35eef17e62cfb851e..e0a40d4106dd11a72d253a1e18e04daf10e44b86 100644
--- a/Source/modules/serviceworkers/CacheStorage.h
+++ b/Source/modules/serviceworkers/CacheStorage.h
@@ -14,23 +14,26 @@
namespace blink {
-// See https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-storage
+class WebServiceWorkerCacheStorage;
+// See https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-storage
class CacheStorage FINAL : public RefCountedWillBeGarbageCollected<CacheStorage>, public ScriptWrappable {
WTF_MAKE_NONCOPYABLE(CacheStorage);
public:
- static PassRefPtrWillBeRawPtr<CacheStorage> create();
+ static PassRefPtrWillBeRawPtr<CacheStorage> create(blink::WebServiceWorkerCacheStorage*);
- ScriptPromise createFunction(ScriptState*, const String& key);
- ScriptPromise rename(ScriptState*, const String& oldKey, const String& newKey);
- ScriptPromise get(ScriptState*, const String& key);
- ScriptPromise deleteFunction(ScriptState*, const String& key);
+ ScriptPromise get(ScriptState*, const String& cacheName);
+ ScriptPromise has(ScriptState*, const String& cacheName);
+ ScriptPromise createFunction(ScriptState*, const String& cacheName);
+ ScriptPromise deleteFunction(ScriptState*, const String& cacheName);
ScriptPromise keys(ScriptState*);
void trace(Visitor*) { }
private:
- CacheStorage();
+ explicit CacheStorage(blink::WebServiceWorkerCacheStorage*);
+
+ blink::WebServiceWorkerCacheStorage* m_webCacheStorage;
};
} // namespace blink
« no previous file with comments | « no previous file | Source/modules/serviceworkers/CacheStorage.cpp » ('j') | Source/modules/serviceworkers/CacheStorage.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698