14 typedef unsigned long long CacheSize_t;
21 virtual bool TryGetCachedHeaderInfo(
22 const std::string& url,
23 std::string& out_cachedETag,
24 std::string& out_cachedLastModified) = 0;
26 virtual void GetFileNameByUrl(std::string& name,
const std::string& url) = 0;
27 virtual void SetMaxCacheSize(CacheSize_t size) = 0;
28 virtual bool IsInCache(
const std::string& url) = 0;
30 virtual void ReloadCacheRepresentationFromStorage() = 0;
31 virtual bool LoadLocallyCachedData(
const std::string& url, std::vector<Byte>& out_buffer) = 0;
33 virtual bool GetEnabled() = 0;
34 virtual void SetEnabled(
bool enabled) = 0;
37 virtual void RemoveFromCache(
const std::string& url) = 0;
38 virtual void ClearCache() = 0;
39 virtual void FlushInMemoryCacheRepresentation(
bool prune) = 0;