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

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

Issue 1421863002: [CacheStorage] Garbage collect unreferenced caches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@random_cache_name
Patch Set: Nits Created 5 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/cache_storage/cache_storage_manager.h
diff --git a/content/browser/cache_storage/cache_storage_manager.h b/content/browser/cache_storage/cache_storage_manager.h
index 8eaa28f81405a536a1c97bda85f6a0d67b38d0bc..2d83a65413dd30948e7c910725b4c2d89be4cbee 100644
--- a/content/browser/cache_storage/cache_storage_manager.h
+++ b/content/browser/cache_storage/cache_storage_manager.h
@@ -31,7 +31,6 @@ class QuotaManagerProxy;
namespace content {
class CacheStorageQuotaClient;
-class MigratedLegacyCacheDirectoryNameTest;
// Keeps track of a CacheStorage per origin. There is one
// CacheStorageManager per ServiceWorkerContextCore.
@@ -84,12 +83,13 @@ class CONTENT_EXPORT CacheStorageManager {
return weak_ptr_factory_.GetWeakPtr();
}
+ base::FilePath root_path() const { return root_path_; }
+
private:
friend class CacheStorageContextImpl;
friend class CacheStorageManagerTest;
friend class CacheStorageMigrationTest;
friend class CacheStorageQuotaClient;
- friend class MigratedLegacyCacheDirectoryNameTest;
typedef std::map<GURL, CacheStorage*> CacheStorageMap;
@@ -123,10 +123,11 @@ class CONTENT_EXPORT CacheStorageManager {
const {
return request_context_getter_;
}
+
base::WeakPtr<storage::BlobStorageContext> blob_storage_context() const {
return blob_context_;
}
- base::FilePath root_path() const { return root_path_; }
+
const scoped_refptr<base::SequencedTaskRunner>& cache_task_runner() const {
return cache_task_runner_;
}

Powered by Google App Engine
This is Rietveld 408576698