summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/file_request.hpp
blob: 2f883728fffe97829e8b52420961afab25ee16ba (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_FILE_REQUEST
#define MBGL_STORAGE_FILE_REQUEST

#include <mbgl/storage/base_request.hpp>

namespace mbgl {

typedef struct uv_loop_s uv_loop_t;

struct FileRequestBaton;

class FileRequest : public BaseRequest {
public:
    FileRequest(const std::string &path, uv_loop_t *loop);
    ~FileRequest();

    void cancel();

private:
    FileRequestBaton *ptr = nullptr;

    friend struct FileRequestBaton;
};

}

#endif