OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebServiceWorkerCacheStorage_h | 5 #ifndef WebServiceWorkerCacheStorage_h |
6 #define WebServiceWorkerCacheStorage_h | 6 #define WebServiceWorkerCacheStorage_h |
7 | 7 |
8 #include "WebCommon.h" | |
9 #include "public/platform/WebCallbacks.h" | 8 #include "public/platform/WebCallbacks.h" |
| 9 #include "public/platform/WebCommon.h" |
10 #include "public/platform/WebServiceWorkerCache.h" | 10 #include "public/platform/WebServiceWorkerCache.h" |
11 #include "public/platform/WebServiceWorkerCacheError.h" | 11 #include "public/platform/WebServiceWorkerCacheError.h" |
12 #include "public/platform/WebString.h" | 12 #include "public/platform/WebString.h" |
13 #include "public/platform/WebVector.h" | 13 #include "public/platform/WebVector.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class WebServiceWorkerCache; | 17 class WebServiceWorkerCache; |
18 | 18 |
19 // An interface to the CacheStorage API, implemented by the embedder and passed
in to Blink. Blink's implementation | 19 // An interface to the CacheStorage API, implemented by the embedder and passed
in to Blink. Blink's implementation |
(...skipping 17 matching lines...) Expand all Loading... |
37 virtual void dispatchHas(CacheStorageCallbacks*, const WebString& cacheName)
= 0; | 37 virtual void dispatchHas(CacheStorageCallbacks*, const WebString& cacheName)
= 0; |
38 virtual void dispatchOpen(CacheStorageWithCacheCallbacks*, const WebString&
cacheName) = 0; | 38 virtual void dispatchOpen(CacheStorageWithCacheCallbacks*, const WebString&
cacheName) = 0; |
39 virtual void dispatchDelete(CacheStorageCallbacks*, const WebString& cacheNa
me) = 0; | 39 virtual void dispatchDelete(CacheStorageCallbacks*, const WebString& cacheNa
me) = 0; |
40 virtual void dispatchKeys(CacheStorageKeysCallbacks*) = 0; | 40 virtual void dispatchKeys(CacheStorageKeysCallbacks*) = 0; |
41 virtual void dispatchMatch(CacheStorageMatchCallbacks*, const WebServiceWork
erRequest&, const WebServiceWorkerCache::QueryParams&) = 0; | 41 virtual void dispatchMatch(CacheStorageMatchCallbacks*, const WebServiceWork
erRequest&, const WebServiceWorkerCache::QueryParams&) = 0; |
42 }; | 42 }; |
43 | 43 |
44 } // namespace blink | 44 } // namespace blink |
45 | 45 |
46 #endif // WebServiceWorkerCacheStorage_h | 46 #endif // WebServiceWorkerCacheStorage_h |
OLD | NEW |