Mercurial > JSWeakRef
diff components/src/nsJSWeakRef.h @ 0:7180966f48bf
Origination.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 16 Apr 2009 15:23:22 -0700 |
parents | |
children | 496cd9ab2298 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/src/nsJSWeakRef.h Thu Apr 16 15:23:22 2009 -0700 @@ -0,0 +1,28 @@ +#include "nsIJSWeakRef.h" + +#define NSJSWEAKREFDI_CONTRACTID "@labs.mozilla.com/jsweakrefdi;1" +#define NSJSWEAKREFDI_CLASSNAME "nsJSWeakRef" +#define NSJSWEAKREFDI_CID \ + {0x32665020, 0x17e1, 0x11de, \ + { 0x8c, 0x30, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }} + +class nsJSWeakRefImpl; + +void processGarbage(); + +class nsJSWeakRef : public nsIJSWeakRef +{ +public: + NS_DECL_ISUPPORTS + NS_DECL_NSIJSWEAKREF + + nsJSWeakRef(); + +private: + virtual ~nsJSWeakRef(); + nsJSWeakRefImpl *impl; + friend void processGarbage(); + +protected: + /* additional members */ +};