v8::Handle is deprecated: https://codereview.chromium.org/1224623004 PR-URL: https://github.com/nodejs/io.js/pull/2202 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
30 lines
649 B
C++
30 lines
649 B
C++
#ifndef SRC_REQ_WRAP_H_
|
|
#define SRC_REQ_WRAP_H_
|
|
|
|
#include "async-wrap.h"
|
|
#include "env.h"
|
|
#include "util.h"
|
|
#include "v8.h"
|
|
|
|
namespace node {
|
|
|
|
template <typename T>
|
|
class ReqWrap : public AsyncWrap {
|
|
public:
|
|
inline ReqWrap(Environment* env,
|
|
v8::Local<v8::Object> object,
|
|
AsyncWrap::ProviderType provider);
|
|
inline ~ReqWrap() override;
|
|
inline void Dispatched(); // Call this after the req has been dispatched.
|
|
|
|
private:
|
|
friend class Environment;
|
|
ListNode<ReqWrap> req_wrap_queue_;
|
|
|
|
public:
|
|
T req_; // Must be last. TODO(bnoordhuis) Make private.
|
|
};
|
|
|
|
} // namespace node
|
|
|
|
#endif // SRC_REQ_WRAP_H_
|