summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/default_file_source.hpp
blob: 3689b9e93296b4334a4c996a7b8b81c2c71d6e35 (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
27
#ifndef MBGL_STORAGE_DEFAULT_FILE_SOURCE
#define MBGL_STORAGE_DEFAULT_FILE_SOURCE

#include <mbgl/storage/file_source.hpp>

namespace mbgl {

class FileCache;

class DefaultFileSource : public FileSource {
public:
    DefaultFileSource(FileCache*, const std::string& root = "");
    ~DefaultFileSource() override;

    void setAccessToken(const std::string&);
    std::string getAccessToken() const;

    std::unique_ptr<FileRequest> request(const Resource&, Callback) override;

private:
    class Impl;
    const std::unique_ptr<Impl> impl;
};

} // namespace mbgl

#endif