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

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

Issue 2100433003: [CacheStorage] Temporarily preserve recently opened caches from CacheStorageDispatcherHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified Created 4 years, 6 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.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.h
diff --git a/content/browser/cache_storage/cache_storage.h b/content/browser/cache_storage/cache_storage.h
index 525e6167a83b2f926cdd8c55cccee66f211c5229..20376c1257e2762f4ac5a66f1693f56a760fcc3a 100644
--- a/content/browser/cache_storage/cache_storage.h
+++ b/content/browser/cache_storage/cache_storage.h
@@ -112,7 +112,6 @@ class CONTENT_EXPORT CacheStorage {
private:
friend class CacheStorageCacheHandle;
friend class CacheStorageCache;
- friend class TestCacheStorage;
class CacheLoader;
class MemoryLoader;
class SimpleCacheLoader;
@@ -131,14 +130,6 @@ class CONTENT_EXPORT CacheStorage {
std::unique_ptr<CacheStorageCacheHandle> GetLoadedCache(
const std::string& cache_name);
- // Holds a reference to a cache for a short period in case they're used again
- // soon.
- void TemporarilyPreserveCache(
- std::unique_ptr<CacheStorageCacheHandle> cache_handle);
- virtual void SchedulePreservedCacheRemoval(
- const base::Closure& callback); // Virtual for testing.
- void RemovePreservedCache(const CacheStorageCache* cache);
-
// Initializer and its callback are below.
void LazyInit();
void LazyInitImpl();
@@ -260,11 +251,6 @@ class CONTENT_EXPORT CacheStorage {
// Performs backend specific operations (memory vs disk).
std::unique_ptr<CacheLoader> cache_loader_;
- // Holds handles to recently opened caches so that they can be reused
- // without having to open the cache again.
- std::map<const CacheStorageCache*, std::unique_ptr<CacheStorageCacheHandle>>
- preserved_caches_;
-
// The quota manager.
scoped_refptr<storage::QuotaManagerProxy> quota_manager_proxy_;
« no previous file with comments | « no previous file | content/browser/cache_storage/cache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698