| 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 c5b2cb29270166b44a8d3aa13d3d755a024a3731..4cb77ddb70afcfe7ae4338d3a056c503a4d83d60 100644
|
| --- a/content/browser/cache_storage/cache_storage_cache.h
|
| +++ b/content/browser/cache_storage/cache_storage_cache.h
|
| @@ -113,7 +113,10 @@ class CONTENT_EXPORT CacheStorageCache
|
| void Close(const base::Closure& callback);
|
|
|
| // The size of the cache's contents. This runs in parallel with other Cache
|
| - // operations.
|
| + // operations. This is because QuotaManager is a dependency of the Put
|
| + // operation and QuotaManager calls Size. If the cache isn't yet initialized,
|
| + // runs immediately after initialization, before any pending operations in the
|
| + // scheduler are run.
|
| void Size(const SizeCallback& callback);
|
|
|
| // Gets the cache's size, closes the backend, and then runs |callback| with
|
| @@ -302,6 +305,7 @@ class CONTENT_EXPORT CacheStorageCache
|
| base::WeakPtr<storage::BlobStorageContext> blob_storage_context_;
|
| BackendState backend_state_ = BACKEND_UNINITIALIZED;
|
| scoped_ptr<CacheStorageScheduler> scheduler_;
|
| + std::vector<SizeCallback> pending_size_callbacks_;
|
| bool initializing_ = false;
|
| int64_t cache_size_ = 0;
|
|
|
|
|