diff options
Diffstat (limited to 'src/node_stat_watcher.h')
-rw-r--r-- | src/node_stat_watcher.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/node_stat_watcher.h b/src/node_stat_watcher.h index 0d0d263d5c..45150de785 100644 --- a/src/node_stat_watcher.h +++ b/src/node_stat_watcher.h @@ -25,26 +25,24 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "node.h" -#include "async_wrap.h" +#include "handle_wrap.h" #include "env.h" #include "uv.h" #include "v8.h" namespace node { -class StatWatcher : public AsyncWrap { +class StatWatcher : public HandleWrap { public: - ~StatWatcher() override; - static void Initialize(Environment* env, v8::Local<v8::Object> target); protected: - StatWatcher(Environment* env, v8::Local<v8::Object> wrap, bool use_bigint); + StatWatcher(Environment* env, + v8::Local<v8::Object> wrap, + bool use_bigint); static void New(const v8::FunctionCallbackInfo<v8::Value>& args); static void Start(const v8::FunctionCallbackInfo<v8::Value>& args); - static void Stop(const v8::FunctionCallbackInfo<v8::Value>& args); - static void IsActive(const v8::FunctionCallbackInfo<v8::Value>& args); size_t self_size() const override { return sizeof(*this); } @@ -53,10 +51,8 @@ class StatWatcher : public AsyncWrap { int status, const uv_stat_t* prev, const uv_stat_t* curr); - void Stop(); - bool IsActive(); - uv_fs_poll_t* watcher_; + uv_fs_poll_t watcher_; const bool use_bigint_; }; |