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

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

Issue 1055543004: Move Cache Storage API implementation to modules/cachestorage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 9 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
« no previous file with comments | « Source/modules/serviceworkers/CacheQueryOptions.idl ('k') | Source/modules/serviceworkers/CacheStorage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2c483f42ca1af59f180f43563e1e8636a27b5406..0000000000000000000000000000000000000000
--- a/Source/modules/serviceworkers/CacheStorage.h
+++ /dev/null
@@ -1,57 +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 "modules/serviceworkers/Cache.h"
-#include "modules/serviceworkers/CacheQueryOptions.h"
-#include "public/platform/WebServiceWorkerCacheStorage.h"
-#include "wtf/Forward.h"
-#include "wtf/HashMap.h"
-#include "wtf/Noncopyable.h"
-
-namespace blink {
-
-class Cache;
-class WebServiceWorkerCacheStorage;
-
-class CacheStorage final : public GarbageCollectedFinalized<CacheStorage>, public ScriptWrappable {
- DEFINE_WRAPPERTYPEINFO();
- WTF_MAKE_NONCOPYABLE(CacheStorage);
-public:
- static CacheStorage* create(WebServiceWorkerCacheStorage*);
-
- ScriptPromise open(ScriptState*, const String& cacheName);
- ScriptPromise has(ScriptState*, const String& cacheName);
- ScriptPromise deleteFunction(ScriptState*, const String& cacheName);
- ScriptPromise keys(ScriptState*);
- ScriptPromise match(ScriptState*, const RequestInfo&, const CacheQueryOptions&, ExceptionState&);
-
-
- DECLARE_TRACE();
-
-private:
- class Callbacks;
- class WithCacheCallbacks;
- class DeleteCallbacks;
- class KeysCallbacks;
- class MatchCallbacks;
-
- friend class WithCacheCallbacks;
- friend class DeleteCallbacks;
-
- explicit CacheStorage(PassOwnPtr<WebServiceWorkerCacheStorage>);
- ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOptions&);
-
- OwnPtr<WebServiceWorkerCacheStorage> m_webCacheStorage;
- HeapHashMap<String, Member<Cache>> m_nameToCacheMap;
-};
-
-} // namespace blink
-
-#endif // CacheStorage_h
« no previous file with comments | « Source/modules/serviceworkers/CacheQueryOptions.idl ('k') | Source/modules/serviceworkers/CacheStorage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698