summaryrefslogtreecommitdiff
path: root/src/mbgl/storage/http_context_base.hpp
blob: f2d15e2918e0f3dd03c365c5f381484ce584607d (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
#ifndef MBGL_STORAGE_HTTP_CONTEXT_BASE
#define MBGL_STORAGE_HTTP_CONTEXT_BASE

#include <mbgl/storage/request_base.hpp>
#include <mbgl/storage/http_request_base.hpp>
#include <mbgl/storage/network_status.hpp>

#include <set>

namespace mbgl {

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

    virtual ~HTTPContextBase() = default;
    virtual HTTPRequestBase* createRequest(const std::string& url,
                                       RequestBase::Callback,
                                       std::shared_ptr<const Response>) = 0;
};

} // namespace mbgl

#endif // MBGL_STORAGE_HTTP_CONTEXT_BASE