summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/storage/local_file_source.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mbgl/storage/local_file_source.hpp b/src/mbgl/storage/local_file_source.hpp
new file mode 100644
index 0000000000..5d665c3848
--- /dev/null
+++ b/src/mbgl/storage/local_file_source.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <mbgl/storage/file_source.hpp>
+
+namespace mbgl {
+
+namespace util {
+template <typename T> class Thread;
+} // namespace util
+
+class LocalFileSource : public FileSource {
+public:
+ LocalFileSource();
+ ~LocalFileSource() override;
+
+ std::unique_ptr<AsyncRequest> request(const Resource&, Callback) override;
+
+ static bool acceptsURL(const std::string& url);
+
+private:
+ class Impl;
+ std::unique_ptr<util::Thread<Impl>> thread;
+};
+
+} // namespace mbgl