diff --git a/extensions/java/xpcom/src/nsJavaXPTCStubWeakRef.h b/extensions/java/xpcom/src/nsJavaXPTCStubWeakRef.h index 28ebd4c1da6f..3f51936180c4 100644 --- a/extensions/java/xpcom/src/nsJavaXPTCStubWeakRef.h +++ b/extensions/java/xpcom/src/nsJavaXPTCStubWeakRef.h @@ -42,17 +42,24 @@ #include "nsIWeakReference.h" +class nsJavaXPTCStub; + +/** + * This class represents an XPCOM weak reference to a Java object. + */ class nsJavaXPTCStubWeakRef : public nsIWeakReference { public: - nsJavaXPTCStubWeakRef(JNIEnv* env, jobject aJavaObject); + nsJavaXPTCStubWeakRef(JNIEnv* env, jobject aJavaObject, + nsJavaXPTCStub* aXPTCStub); virtual ~nsJavaXPTCStubWeakRef(); NS_DECL_ISUPPORTS NS_DECL_NSIWEAKREFERENCE protected: - JNIEnv* mJavaEnv; - jweak mWeakRef; + JNIEnv* mJavaEnv; + jweak mWeakRef; + nsJavaXPTCStub* mXPTCStub; }; #endif // _nsJavaXPTCStubWeakRef_h_