diff options
Diffstat (limited to 'include/mbgl/storage/http_request_baton.hpp')
-rw-r--r-- | include/mbgl/storage/http_request_baton.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/mbgl/storage/http_request_baton.hpp b/include/mbgl/storage/http_request_baton.hpp new file mode 100644 index 0000000000..5f06a68cd1 --- /dev/null +++ b/include/mbgl/storage/http_request_baton.hpp @@ -0,0 +1,28 @@ +#ifndef MBGL_STORAGE_HTTP_REQUEST_BATON +#define MBGL_STORAGE_HTTP_REQUEST_BATON + +#include <mbgl/storage/response.hpp> + +#include <string> + +typedef struct uv_async_s uv_async_t; + +namespace mbgl { + +class HTTPRequest; + +struct HTTPRequestBaton { + HTTPRequest *request = nullptr; + std::string path; + uv_async_t *async = nullptr; + std::unique_ptr<Response> response; + void *ptr = nullptr; + bool not_modified = false; + + void start(); + void cancel(); +}; + +} + +#endif |