blob: cc15dbb60bf3fa86dbfb5f724f3bfbd88246059b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#include <mbgl/storage/file_source.hpp>
namespace mbgl {
namespace util {
template <typename T> class Thread;
} // namespace util
class AssetFileSource : public FileSource {
public:
AssetFileSource(const std::string& assetPath);
~AssetFileSource() 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>> impl;
};
} // namespace mbgl
|