diff options
Diffstat (limited to 'src/node_stat_watcher.h')
-rw-r--r-- | src/node_stat_watcher.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/node_stat_watcher.h b/src/node_stat_watcher.h index 082608f76a..fd38c8b42f 100644 --- a/src/node_stat_watcher.h +++ b/src/node_stat_watcher.h @@ -22,17 +22,21 @@ #ifndef SRC_NODE_STAT_WATCHER_H_ #define SRC_NODE_STAT_WATCHER_H_ -#include "node.h" +#include "node_object_wrap.h" + +#include "env.h" #include "uv.h" +#include "v8.h" namespace node { class StatWatcher : ObjectWrap { public: static void Initialize(v8::Handle<v8::Object> target); + inline Environment* env() const { return env_; } protected: - StatWatcher(); + explicit StatWatcher(Environment* env); virtual ~StatWatcher(); static void New(const v8::FunctionCallbackInfo<v8::Value>& args); @@ -47,6 +51,7 @@ class StatWatcher : ObjectWrap { void Stop(); uv_fs_poll_t* watcher_; + Environment* const env_; }; } // namespace node |