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

Unified Diff: content/browser/cache_storage/cache_storage_cache.h

Issue 2112383002: [CacheStorage] Initialize the cache backend immediately upon opening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 5 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
« no previous file with comments | « no previous file | content/browser/cache_storage/cache_storage_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/cache_storage/cache_storage_cache.h
diff --git a/content/browser/cache_storage/cache_storage_cache.h b/content/browser/cache_storage/cache_storage_cache.h
index 787e13ad24abb05254174bbcc78b7206de646028..5d9d329692ce572151717d60eec9d17f13374529 100644
--- a/content/browser/cache_storage/cache_storage_cache.h
+++ b/content/browser/cache_storage/cache_storage_cache.h
@@ -186,9 +186,6 @@ class CONTENT_EXPORT CacheStorageCache {
scoped_refptr<storage::QuotaManagerProxy> quota_manager_proxy,
base::WeakPtr<storage::BlobStorageContext> blob_context);
- // Returns true if the backend is ready to operate.
- bool LazyInitialize();
-
// Returns all entries in this cache.
void OpenAllEntries(const OpenAllEntriesCallback& callback);
void DidOpenNextEntry(std::unique_ptr<OpenAllEntriesContext> entries_context,
@@ -333,8 +330,11 @@ class CONTENT_EXPORT CacheStorageCache {
int rv);
void InitBackend();
- void InitDidCreateBackend(CacheStorageError cache_create_error);
- void InitGotCacheSize(CacheStorageError cache_create_error, int cache_size);
+ void InitDidCreateBackend(const base::Closure& callback,
+ CacheStorageError cache_create_error);
+ void InitGotCacheSize(const base::Closure& callback,
+ CacheStorageError cache_create_error,
+ int cache_size);
void PendingClosure(const base::Closure& callback);
void PendingErrorCallback(const ErrorCallback& callback,
« no previous file with comments | « no previous file | content/browser/cache_storage/cache_storage_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698