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

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

Issue 512743002: Guarantee ServiceWorkerCacheStorage::LazyInit calls its callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@loader_weak
Patch Set: Rebase Created 6 years, 4 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 7e0c39e1381032a4822c891fc395f0535fd63ec8..5618d619a44a651dba8894afd85454515a8ad694 100644
--- a/content/browser/service_worker/service_worker_cache_storage.h
+++ b/content/browser/service_worker/service_worker_cache_storage.h
@@ -103,16 +103,18 @@ class CONTENT_EXPORT ServiceWorkerCacheStorage {
// Initializer and its callback are below.
void LazyInit(const base::Closure& closure);
- void LazyInitDidLoadIndex(
+ static void LazyInitDidLoadIndex(
const base::Closure& callback,
+ base::WeakPtr<ServiceWorkerCacheStorage> storage,
scoped_ptr<std::vector<std::string> > indexed_cache_names);
- void LazyInitIterateAndLoadCacheName(
+ static void LazyInitIterateAndLoadCacheName(
const base::Closure& callback,
+ base::WeakPtr<ServiceWorkerCacheStorage> storage,
scoped_ptr<std::vector<std::string> > indexed_cache_names,
const std::vector<std::string>::const_iterator& iter,
const std::string& cache_name,
scoped_ptr<ServiceWorkerCache> cache);
- void LazyInitDone();
+ static void LazyInitDone(base::WeakPtr<ServiceWorkerCacheStorage> storage);
void DidCreateBackend(base::WeakPtr<ServiceWorkerCache> cache,
CacheID cache_id,

Powered by Google App Engine
This is Rietveld 408576698