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

Unified Diff: public/platform/WebServiceWorkerCacheStorage.h

Issue 1262943002: Move ServiceWorker public headers to public/{web,platform}/modules/serviceworker (1/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 2 Created 5 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
« no previous file with comments | « public/platform/WebServiceWorkerCacheError.h ('k') | public/platform/WebServiceWorkerClientQueryOptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorkerCacheStorage.h
diff --git a/public/platform/WebServiceWorkerCacheStorage.h b/public/platform/WebServiceWorkerCacheStorage.h
index 88779b8599f24733df544a9a24cdc310daa3b8ad..1e7fb9d0373b3056d2a8325075b30dfbe86aabf9 100644
--- a/public/platform/WebServiceWorkerCacheStorage.h
+++ b/public/platform/WebServiceWorkerCacheStorage.h
@@ -2,45 +2,4 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WebServiceWorkerCacheStorage_h
-#define WebServiceWorkerCacheStorage_h
-
-#include "WebCommon.h"
-#include "public/platform/WebCallbacks.h"
-#include "public/platform/WebServiceWorkerCache.h"
-#include "public/platform/WebServiceWorkerCacheError.h"
-#include "public/platform/WebString.h"
-#include "public/platform/WebVector.h"
-
-namespace blink {
-
-class WebServiceWorkerCache;
-
-// An interface to the CacheStorage API, implemented by the embedder and passed in to Blink. Blink's implementation
-// of the ServiceWorker spec will call these methods to create/open caches, and expect callbacks from the embedder
-// after operations complete.
-class WebServiceWorkerCacheStorage {
-public:
- typedef WebCallbacks<void, WebServiceWorkerCacheError*> CacheStorageCallbacks;
- typedef WebCallbacks<WebServiceWorkerCache*, WebServiceWorkerCacheError*> CacheStorageWithCacheCallbacks;
- typedef WebCallbacks<WebVector<WebString>*, WebServiceWorkerCacheError*> CacheStorageKeysCallbacks;
- typedef WebCallbacks<WebServiceWorkerResponse*, WebServiceWorkerCacheError*> CacheStorageMatchCallbacks;
-
- virtual ~WebServiceWorkerCacheStorage() { }
-
- // Ownership of the CacheStorage*Callbacks methods passes to the WebServiceWorkerCacheStorage instance, which
- // will delete it after calling onSuccess or onFailure.
-
- // dispatchOpen() can return a WebServiceWorkerCache object. These
- // objects are owned by Blink and should be destroyed when they are no
- // longer needed.
- virtual void dispatchHas(CacheStorageCallbacks*, const WebString& cacheName) = 0;
- virtual void dispatchOpen(CacheStorageWithCacheCallbacks*, const WebString& cacheName) = 0;
- virtual void dispatchDelete(CacheStorageCallbacks*, const WebString& cacheName) = 0;
- virtual void dispatchKeys(CacheStorageKeysCallbacks*) = 0;
- virtual void dispatchMatch(CacheStorageMatchCallbacks*, const WebServiceWorkerRequest&, const WebServiceWorkerCache::QueryParams&) = 0;
-};
-
-} // namespace blink
-
-#endif // WebServiceWorkerCacheStorage_h
+#include "public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h"
« no previous file with comments | « public/platform/WebServiceWorkerCacheError.h ('k') | public/platform/WebServiceWorkerClientQueryOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698