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

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

Issue 424643002: Introducing the WebServiceWorkerCacheStorage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: combine with prior CL Created 6 years, 5 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
deleted file mode 100644
index 6d9176be90e9fa65738a6467152c2222f14799c6..0000000000000000000000000000000000000000
--- a/Source/modules/serviceworkers/CacheStorage.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CacheStorage_h
-#define CacheStorage_h
-
-#include "bindings/core/v8/ScriptPromise.h"
-#include "bindings/core/v8/ScriptState.h"
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "wtf/Forward.h"
-#include "wtf/Noncopyable.h"
-#include "wtf/RefCounted.h"
-
-namespace WebCore {
-
-// 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();
-
- 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 keys(ScriptState*);
-
- void trace(Visitor*) { }
-
-private:
- CacheStorage();
-};
-
-} // namespace WebCore
-
-#endif // CacheStorage_h

Powered by Google App Engine
This is Rietveld 408576698