Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Unified Diff: content/browser/service_worker/service_worker_cache_storage.h

Issue 651983002: [ServiceWorkerCache] Implement storage::QuotaClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from PS 10+11 Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698