Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2013-11-04 22:49:55 +0400
committerTrevor Norris <trev.norris@gmail.com>2013-11-13 01:38:31 +0400
commitd120d92bfef0b5012e76c636335fee80e9c1e4a9 (patch)
tree277864e238d78271c82b3e77c8f3e8c850c35bd9 /src/node_stat_watcher.h
parent6cea16f2c9ec0666708e924fa93c664ddb000b5c (diff)
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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/node_stat_watcher.h b/src/node_stat_watcher.h
index 780b2baf7e1..f9ad2e65415 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);