5 #include "IHttpCache.h"
9 #include "CacheModel.h"
25 virtual void RemoveFromCache(
const std::string& url) {}
27 virtual bool TryGetCachedHeaderInfo(
28 const std::string& url,
29 std::string& out_cachedETag,
30 std::string& out_cachedLastModified) {
return false; }
32 virtual void GetFileNameByUrl(std::string& name,
const std::string& url) { name =
""; }
33 virtual void SetMaxCacheSize(Helpers::CacheSize_t size) {}
34 virtual void ClearCache() {}
35 virtual bool IsInCache(
const std::string& url) {
return false; }
36 virtual void FlushInMemoryCacheRepresentation(
bool prune) {}
37 virtual void ReloadCacheRepresentationFromStorage() {}
38 virtual bool LoadLocallyCachedData(
const std::string& url, std::vector<Byte>& out_buffer) {
return false; }
39 virtual bool GetEnabled() {
return false; }
40 virtual void SetEnabled(
bool enabled) {}