mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-13 07:24:47 +00:00
add THREADSAFE nsISupports implementation macros to some of the classes which lacked them. bug 45404. a=brendan@mozilla.org
This commit is contained in:
parent
5c42c520a8
commit
bd65f5dc54
@ -27,8 +27,6 @@
|
||||
|
||||
#include "xpcprivate.h"
|
||||
|
||||
// NS_IMPL_THREADSAFE_ISUPPORTS(nsScriptError, NS_GET_IID(nsIScriptError));
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(nsScriptError, nsIConsoleMessage, nsIScriptError);
|
||||
|
||||
nsScriptError::nsScriptError()
|
||||
|
@ -38,9 +38,7 @@
|
||||
|
||||
#include "xpcprivate.h"
|
||||
|
||||
NS_IMPL_THREADSAFE_ADDREF(nsXPConnect)
|
||||
NS_IMPL_THREADSAFE_RELEASE(nsXPConnect)
|
||||
NS_IMPL_QUERY_INTERFACE1(nsXPConnect, nsIXPConnect)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsXPConnect,nsIXPConnect)
|
||||
|
||||
nsXPConnect* nsXPConnect::gSelf = nsnull;
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
extern "C" JS_IMPORT_DATA(JSObjectOps) js_ObjectOps;
|
||||
|
||||
NS_IMPL_ISUPPORTS1(nsXPCArbitraryScriptable, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsXPCArbitraryScriptable, nsIXPCScriptable)
|
||||
|
||||
#define REAL_WRAPPER(w) ((nsXPCWrappedNative*)(w))
|
||||
|
||||
|
@ -109,7 +109,7 @@ nsXPCComponents_Interfaces::~nsXPCComponents_Interfaces()
|
||||
// empty
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS2(nsXPCComponents_Interfaces, nsIXPCComponents_Interfaces, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(nsXPCComponents_Interfaces, nsIXPCComponents_Interfaces, nsIXPCScriptable)
|
||||
|
||||
XPC_IMPLEMENT_IGNORE_CREATE(nsXPCComponents_Interfaces)
|
||||
// XPC_IMPLEMENT_IGNORE_GETFLAGS(nsXPCComponents_Interfaces)
|
||||
@ -356,7 +356,7 @@ nsXPCComponents_Classes::~nsXPCComponents_Classes()
|
||||
// empty
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS2(nsXPCComponents_Classes, nsIXPCComponents_Classes, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(nsXPCComponents_Classes, nsIXPCComponents_Classes, nsIXPCScriptable)
|
||||
|
||||
XPC_IMPLEMENT_FORWARD_CREATE(nsXPCComponents_Classes)
|
||||
// XPC_IMPLEMENT_IGNORE_GETFLAGS(nsXPCComponents_Classes)
|
||||
@ -593,7 +593,7 @@ nsXPCComponents_ClassesByID::~nsXPCComponents_ClassesByID()
|
||||
// empty
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS2(nsXPCComponents_ClassesByID, nsIXPCComponents_ClassesByID, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(nsXPCComponents_ClassesByID, nsIXPCComponents_ClassesByID, nsIXPCScriptable)
|
||||
|
||||
XPC_IMPLEMENT_FORWARD_CREATE(nsXPCComponents_ClassesByID)
|
||||
// XPC_IMPLEMENT_IGNORE_GETFLAGS(nsXPCComponents_ClassesByID)
|
||||
@ -892,7 +892,7 @@ nsXPCComponents_Results::FillCache(JSContext *cx, JSObject *obj,
|
||||
return;
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS2(nsXPCComponents_Results, nsIXPCComponents_Results, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(nsXPCComponents_Results, nsIXPCComponents_Results, nsIXPCScriptable)
|
||||
|
||||
XPC_IMPLEMENT_IGNORE_CREATE(nsXPCComponents_Results)
|
||||
// XPC_IMPLEMENT_IGNORE_GETFLAGS(nsXPCComponents_Results)
|
||||
@ -999,7 +999,7 @@ nsXPCComponents_ID::~nsXPCComponents_ID()
|
||||
// empty
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS2(nsXPCComponents_ID, nsIXPCComponents_ID, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(nsXPCComponents_ID, nsIXPCComponents_ID, nsIXPCScriptable)
|
||||
|
||||
XPC_IMPLEMENT_IGNORE_CREATE(nsXPCComponents_ID)
|
||||
XPC_IMPLEMENT_IGNORE_GETFLAGS(nsXPCComponents_ID)
|
||||
@ -1144,7 +1144,7 @@ nsXPCComponents_Exception::~nsXPCComponents_Exception()
|
||||
// empty
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS2(nsXPCComponents_Exception, nsIXPCComponents_Exception, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(nsXPCComponents_Exception, nsIXPCComponents_Exception, nsIXPCScriptable)
|
||||
|
||||
XPC_IMPLEMENT_IGNORE_CREATE(nsXPCComponents_Exception)
|
||||
XPC_IMPLEMENT_IGNORE_GETFLAGS(nsXPCComponents_Exception)
|
||||
@ -1391,7 +1391,7 @@ nsXPCConstructor::GetInitializer(char * *aInitializer)
|
||||
XPC_STRING_GETTER_BODY(aInitializer, mInitializer);
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS2(nsXPCConstructor, nsIXPCConstructor, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(nsXPCConstructor, nsIXPCConstructor, nsIXPCScriptable)
|
||||
|
||||
XPC_IMPLEMENT_IGNORE_CREATE(nsXPCConstructor)
|
||||
XPC_IMPLEMENT_IGNORE_GETFLAGS(nsXPCConstructor)
|
||||
@ -1541,7 +1541,7 @@ nsXPCComponents_Constructor::~nsXPCComponents_Constructor()
|
||||
// empty
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS2(nsXPCComponents_Constructor, nsIXPCComponents_Constructor, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(nsXPCComponents_Constructor, nsIXPCComponents_Constructor, nsIXPCScriptable)
|
||||
|
||||
XPC_IMPLEMENT_IGNORE_CREATE(nsXPCComponents_Constructor)
|
||||
XPC_IMPLEMENT_IGNORE_GETFLAGS(nsXPCComponents_Constructor)
|
||||
@ -1775,7 +1775,7 @@ nsXPCComponents_Constructor::HasInstance(JSContext *cx, JSObject *obj,
|
||||
// XXXjband We ought to cache the wrapper in the object's slots rather than
|
||||
// re-wrapping on demand
|
||||
|
||||
NS_IMPL_ISUPPORTS2(nsXPCComponents, nsIXPCComponents, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(nsXPCComponents, nsIXPCComponents, nsIXPCScriptable)
|
||||
|
||||
nsXPCComponents::nsXPCComponents()
|
||||
: mInterfaces(nsnull),
|
||||
|
@ -99,7 +99,7 @@ nsXPCException::IterateNSResults(nsresult* rv,
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
NS_IMPL_ISUPPORTS1(nsXPCException, nsIXPCException)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsXPCException, nsIXPCException)
|
||||
|
||||
nsXPCException::nsXPCException()
|
||||
: mMessage(nsnull),
|
||||
@ -363,7 +363,7 @@ nsXPCException::NewException(const char *aMessage,
|
||||
// Code for converting JSErrorReports to nsIXPCException with (optionally)
|
||||
// attached nsIJSErrorReport.
|
||||
|
||||
NS_IMPL_ISUPPORTS1(xpcJSErrorReport, nsIJSErrorReport)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(xpcJSErrorReport, nsIJSErrorReport)
|
||||
|
||||
xpcJSErrorReport::xpcJSErrorReport()
|
||||
: mMessage(nsnull),
|
||||
|
@ -55,7 +55,7 @@ static void ThrowBadResultException(uintN errNum, JSContext* cx, nsresult rv)
|
||||
/***************************************************************************/
|
||||
// nsJSID
|
||||
|
||||
NS_IMPL_ISUPPORTS1(nsJSID, nsIJSID)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsJSID, nsIJSID)
|
||||
|
||||
char nsJSID::gNoString[] = "";
|
||||
|
||||
@ -254,7 +254,7 @@ nsJSID::NewID(const char* str)
|
||||
/***************************************************************************/
|
||||
/***************************************************************************/
|
||||
|
||||
NS_IMPL_ISUPPORTS3(nsJSIID, nsIJSID, nsIJSIID, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS3(nsJSIID, nsIJSID, nsIJSIID, nsIXPCScriptable)
|
||||
|
||||
XPC_IMPLEMENT_FORWARD_CREATE(nsJSIID)
|
||||
// XPC_IMPLEMENT_IGNORE_GETFLAGS(nsJSIID)
|
||||
@ -572,7 +572,7 @@ private:
|
||||
|
||||
/*********************************************/
|
||||
|
||||
NS_IMPL_ISUPPORTS2(CIDCreateInstance, CIDCreateInstance, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(CIDCreateInstance, CIDCreateInstance, nsIXPCScriptable)
|
||||
|
||||
CIDCreateInstance::CIDCreateInstance(nsJSCID *aCID)
|
||||
: mCID(aCID)
|
||||
@ -734,7 +734,7 @@ private:
|
||||
|
||||
/*********************************************/
|
||||
|
||||
NS_IMPL_ISUPPORTS2(CIDGetService, CIDGetService, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS2(CIDGetService, CIDGetService, nsIXPCScriptable)
|
||||
|
||||
CIDGetService::CIDGetService(nsJSCID *aCID)
|
||||
: mCID(aCID)
|
||||
@ -869,7 +869,7 @@ CIDGetService::Call(JSContext *cx, JSObject *obj,
|
||||
/***************************************************************************/
|
||||
/***************************************************************************/
|
||||
|
||||
NS_IMPL_ISUPPORTS3(nsJSCID, nsIJSID, nsIJSCID, nsIXPCScriptable)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS3(nsJSCID, nsIJSID, nsIJSCID, nsIXPCScriptable)
|
||||
|
||||
XPC_IMPLEMENT_FORWARD_CREATE(nsJSCID)
|
||||
XPC_IMPLEMENT_IGNORE_GETFLAGS(nsJSCID)
|
||||
|
@ -132,7 +132,7 @@ XPCJSStackFrame::~XPCJSStackFrame()
|
||||
NS_RELEASE(mCaller);
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS1(XPCJSStackFrame, nsIJSStackFrameLocation)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(XPCJSStackFrame, nsIJSStackFrameLocation)
|
||||
|
||||
XPCJSStackFrame*
|
||||
XPCJSStackFrame::CreateStack(JSContext* cx, JSStackFrame* fp)
|
||||
|
@ -38,9 +38,7 @@
|
||||
|
||||
#include "xpcprivate.h"
|
||||
|
||||
NS_IMPL_THREADSAFE_ADDREF(nsXPCWrappedJSClass)
|
||||
NS_IMPL_THREADSAFE_RELEASE(nsXPCWrappedJSClass)
|
||||
NS_IMPL_QUERY_INTERFACE1(nsXPCWrappedJSClass, nsIXPCWrappedJSClass)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsXPCWrappedJSClass, nsIXPCWrappedJSClass)
|
||||
|
||||
// the value of this variable is never used - we use its address as a sentinel
|
||||
static uint32 zero_methods_descriptor;
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
#include "xpcprivate.h"
|
||||
|
||||
NS_IMPL_QUERY_INTERFACE2(nsXPCWrappedNative, nsIXPConnectWrappedNative, nsIXPConnectJSObjectHolder)
|
||||
NS_IMPL_THREADSAFE_QUERY_INTERFACE2(nsXPCWrappedNative, nsIXPConnectWrappedNative, nsIXPConnectJSObjectHolder)
|
||||
|
||||
// do chained ref counting
|
||||
|
||||
@ -575,7 +575,7 @@ nsXPCWrappedNative::DebugDump(PRInt16 depth)
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
NS_IMPL_ISUPPORTS1(nsXPCJSObjectHolder, nsIXPConnectJSObjectHolder)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsXPCJSObjectHolder, nsIXPConnectJSObjectHolder)
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXPCJSObjectHolder::GetJSObject(JSObject** aJSObj)
|
||||
|
@ -60,9 +60,7 @@ XPCNativeMemberDescriptor::XPCNativeMemberDescriptor()
|
||||
|
||||
extern "C" JS_IMPORT_DATA(JSObjectOps) js_ObjectOps;
|
||||
|
||||
NS_IMPL_THREADSAFE_ADDREF(nsXPCWrappedNativeClass)
|
||||
NS_IMPL_THREADSAFE_RELEASE(nsXPCWrappedNativeClass)
|
||||
NS_IMPL_QUERY_INTERFACE1(nsXPCWrappedNativeClass, nsIXPCWrappedNativeClass)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsXPCWrappedNativeClass, nsIXPCWrappedNativeClass)
|
||||
|
||||
#define SET_ERROR_CODE(_y) if(pErr) *pErr = _y
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
nsXPCWrappedNativeScope* nsXPCWrappedNativeScope::gScopes = nsnull;
|
||||
|
||||
NS_IMPL_ISUPPORTS1(nsXPCWrappedNativeScope, nsIXPCWrappedNativeScope)
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS1(nsXPCWrappedNativeScope, nsIXPCWrappedNativeScope)
|
||||
|
||||
nsXPCWrappedNativeScope::nsXPCWrappedNativeScope(XPCContext* xpcc,
|
||||
nsXPCComponents* comp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user