7 #include "CacheRecord.h"
26 bool ContainsUrl(
const std::string& url)
const;
27 bool TryGetCacheRecord(
const std::string& url,
CacheRecord& out_cacheRecord)
const;
29 bool Remove(
const std::string& url);
30 bool ReplaceOrInsert(
const CacheRecord& cacheRecord);
32 void GetCacheRecords(std::vector<CacheRecord>& cacheRecords)
const;
33 size_t GetNumOfRecords()
const;
36 typedef std::map<std::string, CacheRecord> TUrlToCacheRecordMap;
37 typedef std::pair<std::string, CacheRecord> TUrlCacheRecordPair;
38 TUrlToCacheRecordMap m_cacheRecordsByUrl;
40 size_t GetSizeOnDisk()
const;