22 #ifndef SRC_BASE_OBJECT_H_ 23 #define SRC_BASE_OBJECT_H_ 25 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 35 inline BaseObject(Environment* env, v8::Local<v8::Object> handle);
36 inline virtual ~BaseObject();
40 inline v8::Local<v8::Object> object();
47 inline v8::Persistent<v8::Object>& persistent();
49 inline Environment* env()
const;
56 template <
typename Type>
57 inline void MakeWeak(Type* ptr);
59 inline void ClearWeak();
64 template <
typename Type>
65 static inline void WeakCallback(
66 const v8::WeakCallbackInfo<Type>&
data);
68 v8::Persistent<v8::Object> persistent_handle_;
74 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS 76 #endif // SRC_BASE_OBJECT_H_
union node::cares_wrap::@8::CaresAsyncData::@0 data