#include "content/browser/cache_storage/cache_storage_index.h"
#include <utility>
#include "base/containers/contains.h"
#include "base/not_fatal_until.h"
namespace content {
CacheStorageIndex::CacheStorageIndex()
: … { … }
CacheStorageIndex::~CacheStorageIndex() = default;
CacheStorageIndex& CacheStorageIndex::operator=(CacheStorageIndex&& rhs) { … }
void CacheStorageIndex::Insert(const CacheMetadata& cache_metadata) { … }
void CacheStorageIndex::Delete(const std::string& cache_name) { … }
bool CacheStorageIndex::SetCacheSize(const std::string& cache_name,
int64_t size) { … }
const CacheStorageIndex::CacheMetadata* CacheStorageIndex::GetMetadata(
const std::string& cache_name) const { … }
int64_t CacheStorageIndex::GetCacheSizeForTesting(
const std::string& cache_name) const { … }
bool CacheStorageIndex::SetCachePadding(const std::string& cache_name,
int64_t padding) { … }
int64_t CacheStorageIndex::GetCachePaddingForTesting(
const std::string& cache_name) const { … }
int64_t CacheStorageIndex::GetPaddedStorageSize() { … }
void CacheStorageIndex::UpdateStorageSize() { … }
void CacheStorageIndex::CalculateStoragePadding() { … }
void CacheStorageIndex::DoomCache(const std::string& cache_name) { … }
void CacheStorageIndex::FinalizeDoomedCache() { … }
void CacheStorageIndex::RestoreDoomedCache() { … }
void CacheStorageIndex::ClearDoomedCache() { … }
}