[XPCOM] Keep the JS context with the Service/Method objects, we
[browser-dbus-bridge.git] / xpcom-dbusservice / DBusSignal.h
index e60e7d2..999b977 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "nsEmbedString.h"
 #include "nsWeakReference.h"
+#include "nsIXPConnect.h"
 
 #include "DBusService.h"
 
@@ -54,7 +55,8 @@ public:
                const nsACString& aInterface,
                const nsACString& aSignal,
                const nsACString& aSender,
-               const nsACString& aObject);
+               const nsACString& aObject,
+               JSContext *cx);
 
 private:
     ~DBusSignal();
@@ -72,6 +74,7 @@ protected:
     IDBusSignalObserver *mCallback;
     PRBool mEnabled;
     PRBool mFilterActive;
+    JSContext *mJScx;
 };