Bug 658909 - Add a new, much simpler API for getting WNs from JS objects. r=mrbkap

This commit is contained in:
Bobby Holley 2013-03-21 08:20:43 -07:00
parent 83c251ef6c
commit 97e20a07a5

View File

@ -2689,6 +2689,11 @@ public:
void void
SetSet(XPCNativeSet* set) {XPCAutoLock al(GetLock()); mSet = set;} SetSet(XPCNativeSet* set) {XPCAutoLock al(GetLock()); mSet = set;}
static XPCWrappedNative* Get(JSObject *obj) {
MOZ_ASSERT(IS_WN_WRAPPER(obj));
return (XPCWrappedNative*)js::GetObjectPrivate(obj);
}
private: private:
inline void inline void
ExpireWrapper() ExpireWrapper()