mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 21:18:35 +00:00
Bug 121526 - Need to expose the security info pointer from the nsIXPConnectWrappedNative interface. r=jst, sr=jband
This commit is contained in:
parent
b898d4522b
commit
90a78e1012
@ -56,6 +56,7 @@
|
||||
[ptr] native JSValPtr(jsval);
|
||||
native JSVal(jsval);
|
||||
native JSID(jsid);
|
||||
[ptr] native voidPtrPtr(void*);
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
@ -156,6 +157,12 @@ interface nsIXPConnectWrappedNative : nsIXPConnectJSObjectHolder
|
||||
void debugDump(in short depth);
|
||||
|
||||
void refreshPrototype();
|
||||
/*
|
||||
* This returns a pointer into the instance and care should be taken
|
||||
* to make sure the pointer is not kept past the life time of the
|
||||
* object it points into.
|
||||
*/
|
||||
voidPtrPtr GetSecurityInfoAddress();
|
||||
};
|
||||
|
||||
[uuid(BED52030-BCA6-11d2-BA79-00805F8A5DD7)]
|
||||
|
@ -2308,6 +2308,13 @@ NS_IMETHODIMP XPCWrappedNative::RefreshPrototype()
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP XPCWrappedNative::GetSecurityInfoAddress(void*** securityInfoAddrPtr)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(securityInfoAddrPtr);
|
||||
*securityInfoAddrPtr = GetSecurityInfoAddr();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* void debugDump (in short depth); */
|
||||
NS_IMETHODIMP XPCWrappedNative::DebugDump(PRInt16 depth)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user