summaryrefslogtreecommitdiff
path: root/src/mbgl/storage/http_file_source.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/storage/http_file_source.hpp')
-rw-r--r--src/mbgl/storage/http_file_source.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mbgl/storage/http_file_source.hpp b/src/mbgl/storage/http_file_source.hpp
new file mode 100644
index 0000000000..5e306dbfc5
--- /dev/null
+++ b/src/mbgl/storage/http_file_source.hpp
@@ -0,0 +1,25 @@
+#ifndef MBGL_STORAGE_HTTP_FILE_SOURCE
+#define MBGL_STORAGE_HTTP_FILE_SOURCE
+
+#include <mbgl/storage/file_source.hpp>
+
+namespace mbgl {
+
+class HTTPFileSource : public FileSource {
+public:
+ HTTPFileSource();
+ ~HTTPFileSource() override;
+
+ std::unique_ptr<AsyncRequest> request(const Resource&, Callback) override;
+
+ static uint32_t maximumConcurrentRequests();
+
+private:
+ friend class HTTPRequest;
+ class Impl;
+ std::unique_ptr<Impl> impl;
+};
+
+} // namespace mbgl
+
+#endif // MBGL_STORAGE_HTTP_FILE_SOURCE