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 cec6389c9323123316ae209e3c2ec6c8f031b2af..7a37f2eaf561e4ba50a51cd39c56db24277fe1cc 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 |
@@ -83,6 +88,8 @@ class CONTENT_EXPORT ServiceWorkerCacheStorage { |
// TODO(jkarlin): Add match() function. |
+ void CloseAllCaches(); |
+ |
private: |
class MemoryLoader; |
class SimpleCacheLoader; |