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

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

Issue 664433003: [ServiceWorkerCacheStorage] Add support for new Open method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dispatch the response 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 cec6389c9323123316ae209e3c2ec6c8f031b2af..93989250e1971cea327df37cb11725ea582bbcac 100644
--- a/content/browser/service_worker/service_worker_cache_storage.h
+++ b/content/browser/service_worker/service_worker_cache_storage.h
@@ -59,16 +59,21 @@ class CONTENT_EXPORT ServiceWorkerCacheStorage {
virtual ~ServiceWorkerCacheStorage();
// Create a ServiceWorkerCache if it doesn't already exist and call the
- // callback with the cache's id. If it already
+ // callback with the cache. If it already
// exists the callback is called with CACHE_STORAGE_ERROR_EXISTS.
void CreateCache(const std::string& cache_name,
const CacheAndErrorCallback& callback);
- // Get the cache id for the given key. If not found returns
+ // Get the cache for the given key. If not found returns
// CACHE_STORAGE_ERROR_NOT_FOUND.
void GetCache(const std::string& cache_name,
const CacheAndErrorCallback& callback);
+ // Get the cache for the given key. If the cache is not found it is
+ // created.
+ void OpenCache(const std::string& cache_name,
+ const CacheAndErrorCallback& callback);
+
// Calls the callback with whether or not the cache exists.
void HasCache(const std::string& cache_name,
const BoolAndErrorCallback& callback);

Powered by Google App Engine
This is Rietveld 408576698