diff options
Diffstat (limited to 'platform/node/src/node_request.hpp')
-rw-r--r-- | platform/node/src/node_request.hpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/platform/node/src/node_request.hpp b/platform/node/src/node_request.hpp index 8e01c544eb..3a06a7b62f 100644 --- a/platform/node/src/node_request.hpp +++ b/platform/node/src/node_request.hpp @@ -8,8 +8,7 @@ #pragma GCC diagnostic pop #include <mbgl/storage/resource.hpp> - -#include <memory> +#include <mbgl/storage/file_source.hpp> namespace node_mbgl { @@ -22,17 +21,13 @@ public: static NAN_METHOD(New); static NAN_METHOD(Respond); - static v8::Handle<v8::Object> Create(NodeFileSource*, const mbgl::Resource&); + static v8::Handle<v8::Object> Create(const mbgl::Resource&, mbgl::FileSource::Callback); static Nan::Persistent<v8::Function> constructor; - NodeRequest(NodeFileSource* source, const mbgl::Resource& resource); - ~NodeRequest(); - - void cancel(); + NodeRequest(mbgl::FileSource::Callback); private: - NodeFileSource* source; - std::unique_ptr<mbgl::Resource> resource; + mbgl::FileSource::Callback callback; }; } |