import "nsIXPCSecurityManager.idl";
List of all members.
Public Member Functions |
| void | CanCreateWrapper (in JSContextPtr aJSContext, in nsIIDRef aIID, in nsISupports aObj, in nsIClassInfo aClassInfo, inout voidPtr aPolicy) |
| | For each of these hooks returning NS_OK means 'let the action continue'.
|
| void | CanCreateInstance (in JSContextPtr aJSContext, in nsCIDRef aCID) |
| void | CanGetService (in JSContextPtr aJSContext, in nsCIDRef aCID) |
| void | CanAccess (in PRUint32 aAction, in nsAXPCNativeCallContextPtr aCallContext, in JSContextPtr aJSContext, in JSObjectPtr aJSObject, in nsISupports aObj, in nsIClassInfo aClassInfo, in jsid aName, inout voidPtr aPolicy) |
Public Attributes |
| const PRUint32 | HOOK_CREATE_WRAPPER = 1 << 0 |
| | These flags are used when calling nsIXPConnect::SetSecurityManager.
|
| const PRUint32 | HOOK_CREATE_INSTANCE = 1 << 1 |
| const PRUint32 | HOOK_GET_SERVICE = 1 << 2 |
| const PRUint32 | HOOK_CALL_METHOD = 1 << 3 |
| const PRUint32 | HOOK_GET_PROPERTY = 1 << 4 |
| const PRUint32 | HOOK_SET_PROPERTY = 1 << 5 |
| const PRUint32 | HOOK_ALL |
| const PRUint32 | ACCESS_CALL_METHOD = 0 |
| const PRUint32 | ACCESS_GET_PROPERTY = 1 |
| const PRUint32 | ACCESS_SET_PROPERTY = 2 |
Member Function Documentation
| void nsIXPCSecurityManager::CanAccess |
( |
in PRUint32 |
aAction, |
|
|
in nsAXPCNativeCallContextPtr |
aCallContext, |
|
|
in JSContextPtr |
aJSContext, |
|
|
in JSObjectPtr |
aJSObject, |
|
|
in nsISupports |
aObj, |
|
|
in nsIClassInfo |
aClassInfo, |
|
|
in jsid |
aName, |
|
|
inout voidPtr |
aPolicy | |
|
) |
| | |
| void nsIXPCSecurityManager::CanCreateInstance |
( |
in JSContextPtr |
aJSContext, |
|
|
in nsCIDRef |
aCID | |
|
) |
| | |
| void nsIXPCSecurityManager::CanCreateWrapper |
( |
in JSContextPtr |
aJSContext, |
|
|
in nsIIDRef |
aIID, |
|
|
in nsISupports |
aObj, |
|
|
in nsIClassInfo |
aClassInfo, |
|
|
inout voidPtr |
aPolicy | |
|
) |
| | |
For each of these hooks returning NS_OK means 'let the action continue'.
Returning an error code means 'veto the action'. XPConnect will return JS_FALSE to the js engine if the action is vetoed. The implementor of this interface is responsible for setting a JS exception into the JSContext if that is appropriate.
| void nsIXPCSecurityManager::CanGetService |
( |
in JSContextPtr |
aJSContext, |
|
|
in nsCIDRef |
aCID | |
|
) |
| | |
Member Data Documentation
These flags are used when calling nsIXPConnect::SetSecurityManager.
The documentation for this interface was generated from the following file: