diff options
| author | Trevor Norris <trev.norris@gmail.com> | 2013-11-04 10:49:55 -0800 |
|---|---|---|
| committer | Trevor Norris <trev.norris@gmail.com> | 2013-11-12 13:38:31 -0800 |
| commit | d120d92bfef0b5012e76c636335fee80e9c1e4a9 (patch) | |
| tree | 277864e238d78271c82b3e77c8f3e8c850c35bd9 /src/node_stat_watcher.h | |
| parent | 6cea16f2c9ec0666708e924fa93c664ddb000b5c (diff) | |
| download | node-d120d92bfef0b5012e76c636335fee80e9c1e4a9.tar.gz | |
base-object: add BaseObject
BaseObject is a class that just handles the Persistent handle attached
to the class instance.
This also removed WeakObject. Reordering the inheritance chain helps
prevent unneeded calls on instances that don't call MakeCallback.
Diffstat (limited to 'src/node_stat_watcher.h')
| -rw-r--r-- | src/node_stat_watcher.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/node_stat_watcher.h b/src/node_stat_watcher.h index 780b2baf7..f9ad2e654 100644 --- a/src/node_stat_watcher.h +++ b/src/node_stat_watcher.h @@ -23,20 +23,21 @@ #define SRC_NODE_STAT_WATCHER_H_ #include "node.h" +#include "async-wrap.h" #include "env.h" -#include "weak-object.h" #include "uv.h" #include "v8.h" namespace node { -class StatWatcher : public WeakObject { +class StatWatcher : public AsyncWrap { public: + virtual ~StatWatcher(); + static void Initialize(v8::Handle<v8::Object> target); protected: StatWatcher(Environment* env, v8::Local<v8::Object> wrap); - virtual ~StatWatcher(); static void New(const v8::FunctionCallbackInfo<v8::Value>& args); static void Start(const v8::FunctionCallbackInfo<v8::Value>& args); |
