summaryrefslogtreecommitdiff
path: root/src/mbgl/storage/local_file_source.hpp
blob: 43319bc06e72d7e638b0e6778f3ce46a473b2cae (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
#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