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 93989250e1971cea327df37cb11725ea582bbcac..1220345fb22ca7aef3765d5c9555172e65a1bc61 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(); |
// Create a ServiceWorkerCache if it doesn't already exist and call the |
@@ -88,6 +93,8 @@ class CONTENT_EXPORT ServiceWorkerCacheStorage { |
// TODO(jkarlin): Add match() function. |
+ void CloseAllCaches(); |
+ |
private: |
class MemoryLoader; |
class SimpleCacheLoader; |