#ifndef MBGL_STORAGE_FILE_CACHE #define MBGL_STORAGE_FILE_CACHE #include #include #include namespace mbgl { struct Resource; class Response; class WorkRequest; class FileCache : private util::noncopyable { public: virtual ~FileCache() = default; enum class Hint : bool { Full, Refresh }; using Callback = std::function)>; virtual std::unique_ptr get(const Resource &resource, Callback callback) = 0; virtual void put(const Resource &resource, std::shared_ptr response, Hint hint) = 0; }; } #endif