Index: content/browser/service_worker/service_worker_cache_storage.h |
diff --git a/content/browser/service_worker/service_worker_cache_storage.h b/content/browser/service_worker/service_worker_cache_storage.h |
index 744b9c046e5db68420f3e0bbe5018403ea6e027f..defe429fecbf56a1dcb92151d88875d94039b43e 100644 |
--- a/content/browser/service_worker/service_worker_cache_storage.h |
+++ b/content/browser/service_worker/service_worker_cache_storage.h |
@@ -49,13 +49,18 @@ class CONTENT_EXPORT ServiceWorkerCacheStorage { |
typedef base::Callback<void(const StringVector&, CacheStorageError)> |
StringsAndErrorCallback; |
+ static const char kIndexFileName[]; |
+ |
ServiceWorkerCacheStorage( |
const base::FilePath& origin_path, |
bool memory_only, |
base::SequencedTaskRunner* cache_task_runner, |
net::URLRequestContext* request_context, |
- base::WeakPtr<storage::BlobStorageContext> blob_context); |
+ base::WeakPtr<storage::BlobStorageContext> blob_context, |
+ const GURL& origin); |
+ // Any unfinished asynchronous operations may not complete or call their |
+ // callbacks. |
virtual ~ServiceWorkerCacheStorage(); |
// Get the cache for the given key. If the cache is not found it is |
@@ -77,6 +82,8 @@ class CONTENT_EXPORT ServiceWorkerCacheStorage { |
// TODO(jkarlin): Add match() function. |
+ void CloseAllCaches(); |
+ |
private: |
class MemoryLoader; |
class SimpleCacheLoader; |