summaryrefslogtreecommitdiff
path: root/src/mbgl/storage/asset_context_base.hpp
blob: 4a6ca0b6f9dedf6a7184ef3136023405a696d9ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef MBGL_STORAGE_ASSET_CONTEXT_BASE
#define MBGL_STORAGE_ASSET_CONTEXT_BASE

#include <mbgl/storage/request_base.hpp>

namespace mbgl {

class AssetContextBase {
public:
    static std::unique_ptr<AssetContextBase> createContext();

    virtual ~AssetContextBase() = default;
    virtual RequestBase* createRequest(const Resource&,
                                       RequestBase::Callback,
                                       const std::string& assetRoot) = 0;
};

} // namespace mbgl

#endif // MBGL_STORAGE_ASSET_CONTEXT_BASE