#include "components/performance_manager/persistence/site_data/non_recording_site_data_cache.h"
#include "base/check.h"
#include "base/memory/ptr_util.h"
#include "components/performance_manager/persistence/site_data/noop_site_data_writer.h"
#include "components/performance_manager/persistence/site_data/site_data_cache_factory.h"
#include "components/performance_manager/persistence/site_data/site_data_writer.h"
#include "components/performance_manager/public/persistence/site_data/site_data_reader.h"
namespace performance_manager {
NonRecordingSiteDataCache::NonRecordingSiteDataCache(
const std::string& browser_context_id,
SiteDataCacheInspector* data_cache_inspector,
SiteDataCache* data_cache_for_readers)
: … { … }
NonRecordingSiteDataCache::~NonRecordingSiteDataCache() { … }
std::unique_ptr<SiteDataReader> NonRecordingSiteDataCache::GetReaderForOrigin(
const url::Origin& origin) { … }
std::unique_ptr<SiteDataWriter> NonRecordingSiteDataCache::GetWriterForOrigin(
const url::Origin& origin) { … }
bool NonRecordingSiteDataCache::IsRecording() const { … }
int NonRecordingSiteDataCache::Size() const { … }
const char* NonRecordingSiteDataCache::GetDataCacheName() { … }
std::vector<url::Origin> NonRecordingSiteDataCache::GetAllInMemoryOrigins() { … }
void NonRecordingSiteDataCache::GetDataStoreSize(
DataStoreSizeCallback on_have_data) { … }
bool NonRecordingSiteDataCache::GetDataForOrigin(
const url::Origin& origin,
bool* is_dirty,
std::unique_ptr<SiteDataProto>* data) { … }
NonRecordingSiteDataCache* NonRecordingSiteDataCache::GetDataCache() { … }
}