nsIXPCSecurityManager
| IID: | 31431440-f1ce-11d2-985a-006008962422 |
| Inherits From: | nsISupports |
Constants
Methods
void CanAccess ( PRUint32 action , nsAXPCNativeCallContextPtr* callContext , JSContextPtr* JSContext , JSObjectPtr* JSObject , nsISupports obj , nsIClassInfo classInfo , JSVal name , inout voidPtr* policy )
void CanCreateInstance ( JSContextPtr* JSContext , nsCIDRef CID )
void CanCreateWrapper ( JSContextPtr* JSContext , nsIIDRef IID , nsISupports obj , nsIClassInfo classInfo , inout voidPtr* policy )
void CanGetService ( JSContextPtr* JSContext , nsCIDRef CID )
void CanAccess ( PRUint32 action , nsAXPCNativeCallContextPtr* callContext , JSContextPtr* JSContext , JSObjectPtr* JSObject , nsISupports obj , nsIClassInfo classInfo , JSVal name , inout voidPtr* policy )
- Arguments:
- action
- callContext
- JSContext
- JSObject
- obj
- classInfo
- name
- policy
void CanCreateWrapper ( JSContextPtr* JSContext , nsIIDRef IID , nsISupports obj , nsIClassInfo classInfo , inout voidPtr* policy )
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.
- Arguments:
- JSContext
- IID
- obj
- classInfo
- policy
References
This interface is passed as an argument to the following methods:
nsIXPConnect.getDefaultSecurityManager, nsIXPConnect.getSecurityManagerForJSContext, nsIXPConnect.setDefaultSecurityManager, nsIXPConnect.setSecurityManagerForJSContext
Reference documentation is generated from Mozilla's source.
