diff options
author | Leith Bade <leith@mapbox.com> | 2014-12-18 12:39:36 +1100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2014-12-18 12:39:36 +1100 |
commit | 40f859e482e5282d0fbf257a9feaa9d70953a4fd (patch) | |
tree | 0fb920677d0ba92cedc64a4df9e1da045e891e75 /include/mbgl/storage | |
parent | 6f56e88ee599160b336cce222384979a2b517343 (diff) | |
parent | a8dec01230a00f9e701fc6403110c4f5017ba905 (diff) | |
download | qtlocation-mapboxgl-40f859e482e5282d0fbf257a9feaa9d70953a4fd.tar.gz |
Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-mason
Conflicts:
gyp/mbgl-ios.gypi
gyp/mbgl-osx.gypi
platform/default/asset_request_libuv.cpp
src/mbgl/storage/caching_http_file_source.cpp
src/mbgl/storage/file_request.cpp
src/mbgl/storage/file_request.hpp
src/mbgl/storage/file_request_baton.hpp
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r-- | include/mbgl/storage/asset_request.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/mbgl/storage/asset_request.hpp b/include/mbgl/storage/asset_request.hpp new file mode 100644 index 0000000000..3114d41ad2 --- /dev/null +++ b/include/mbgl/storage/asset_request.hpp @@ -0,0 +1,27 @@ +#ifndef MBGL_STORAGE_ASSET_REQUEST +#define MBGL_STORAGE_ASSET_REQUEST + +#include <mbgl/storage/base_request.hpp> + +namespace mbgl { + +typedef struct uv_loop_s uv_loop_t; + +struct AssetRequestBaton; + +class AssetRequest : public BaseRequest { +public: + AssetRequest(const std::string &path, uv_loop_t *loop); + ~AssetRequest(); + + void cancel(); + +private: + AssetRequestBaton *ptr = nullptr; + + friend struct AssetRequestBaton; +}; + +} + +#endif |