summaryrefslogtreecommitdiff
path: root/src/handle_wrap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/handle_wrap.h')
-rw-r--r--src/handle_wrap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/handle_wrap.h b/src/handle_wrap.h
index e7a335f514..fd2d002dce 100644
--- a/src/handle_wrap.h
+++ b/src/handle_wrap.h
@@ -70,11 +70,17 @@ class HandleWrap : public AsyncWrap {
inline uv_handle_t* GetHandle() const { return handle_; }
+ void Close(v8::Local<v8::Value> close_callback = v8::Local<v8::Value>());
+
protected:
HandleWrap(Environment* env,
v8::Local<v8::Object> object,
uv_handle_t* handle,
AsyncWrap::ProviderType provider);
+ virtual void OnClose() {}
+
+ void MarkAsInitialized();
+ void MarkAsUninitialized();
private:
friend class Environment;