| 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 "public/platform/WebCallbacks.h" | 8 #include "public/platform/WebCallbacks.h" | 
| 9 #include "public/platform/WebCommon.h" | 9 #include "public/platform/WebCommon.h" | 
| 10 #include "public/platform/WebString.h" | 10 #include "public/platform/WebString.h" | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 34       WebCallbacks<const WebServiceWorkerResponse&, WebServiceWorkerCacheError>; | 34       WebCallbacks<const WebServiceWorkerResponse&, WebServiceWorkerCacheError>; | 
| 35 | 35 | 
| 36   virtual ~WebServiceWorkerCacheStorage() {} | 36   virtual ~WebServiceWorkerCacheStorage() {} | 
| 37 | 37 | 
| 38   // Ownership of the CacheStorage*Callbacks methods passes to the | 38   // Ownership of the CacheStorage*Callbacks methods passes to the | 
| 39   // WebServiceWorkerCacheStorage instance, which will delete it after calling | 39   // WebServiceWorkerCacheStorage instance, which will delete it after calling | 
| 40   // onSuccess or onFailure. | 40   // onSuccess or onFailure. | 
| 41 | 41 | 
| 42   // dispatchOpen() can return a WebServiceWorkerCache object. These objects | 42   // dispatchOpen() can return a WebServiceWorkerCache object. These objects | 
| 43   // are owned by Blink and should be destroyed when they are no longer needed. | 43   // are owned by Blink and should be destroyed when they are no longer needed. | 
| 44   virtual void dispatchHas(CacheStorageCallbacks*, | 44   virtual void dispatchHas(std::unique_ptr<CacheStorageCallbacks>, | 
| 45                            const WebString& cacheName) = 0; | 45                            const WebString& cacheName) = 0; | 
| 46   virtual void dispatchOpen(CacheStorageWithCacheCallbacks*, | 46   virtual void dispatchOpen(std::unique_ptr<CacheStorageWithCacheCallbacks>, | 
| 47                             const WebString& cacheName) = 0; | 47                             const WebString& cacheName) = 0; | 
| 48   virtual void dispatchDelete(CacheStorageCallbacks*, | 48   virtual void dispatchDelete(std::unique_ptr<CacheStorageCallbacks>, | 
| 49                               const WebString& cacheName) = 0; | 49                               const WebString& cacheName) = 0; | 
| 50   virtual void dispatchKeys(CacheStorageKeysCallbacks*) = 0; | 50   virtual void dispatchKeys(std::unique_ptr<CacheStorageKeysCallbacks>) = 0; | 
| 51   virtual void dispatchMatch(CacheStorageMatchCallbacks*, | 51   virtual void dispatchMatch(std::unique_ptr<CacheStorageMatchCallbacks>, | 
| 52                              const WebServiceWorkerRequest&, | 52                              const WebServiceWorkerRequest&, | 
| 53                              const WebServiceWorkerCache::QueryParams&) = 0; | 53                              const WebServiceWorkerCache::QueryParams&) = 0; | 
| 54 }; | 54 }; | 
| 55 | 55 | 
| 56 }  // namespace blink | 56 }  // namespace blink | 
| 57 | 57 | 
| 58 #endif  // WebServiceWorkerCacheStorage_h | 58 #endif  // WebServiceWorkerCacheStorage_h | 
| OLD | NEW | 
|---|