#ifndef MBGL_STORAGE_FILE_SOURCE #define MBGL_STORAGE_FILE_SOURCE #include #include #include #include #include #include namespace mbgl { class FileSource : private util::noncopyable { public: virtual ~FileSource() = default; using Callback = std::function; // Request a resource. The callback will be called asynchronously, in the same // thread as the request was made. This thread must have an active RunLoop. The // request may be cancelled before completion by releasing the returned AsyncRequest. // If the request is cancelled before the callback is executed, the callback will // not be executed. virtual std::unique_ptr request(const Resource&, Callback) = 0; }; } // namespace mbgl #endif