#ifndef MBGL_STORAGE_HTTP_REQUEST #define MBGL_STORAGE_HTTP_REQUEST #include #include #include #include #include typedef struct uv_loop_s uv_loop_t; namespace mbgl { struct CacheRequestBaton; struct HTTPRequestBaton; struct CacheEntry; class SQLiteStore; class HTTPRequest : public BaseRequest { public: HTTPRequest(ResourceType type, const std::string &path, uv_loop_t *loop, util::ptr store); ~HTTPRequest(); private: void loadedCacheEntry(std::unique_ptr &&response); private: const unsigned long thread_id; CacheRequestBaton *cache_baton = nullptr; HTTPRequestBaton *http_baton = nullptr; util::ptr store; const ResourceType type; }; } #endif