Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
AutoConfigSecMan Class Reference
Inheritance diagram for AutoConfigSecMan:
Inheritance graph
[legend]
Collaboration diagram for AutoConfigSecMan:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIXPCSECURITYMANAGER 
AutoConfigSecMan ()
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 nsIXPCNativeCallContext aCallContext, in JSContextPtr aJSContext, in JSObjectPtr aJSObject, in nsISupports aObj, in nsIClassInfo aClassInfo, in JSVal 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

Detailed Description

Definition at line 61 of file nsJSConfigTriggers.cpp.


Constructor & Destructor Documentation

Definition at line 71 of file nsJSConfigTriggers.cpp.

{
}

Member Function Documentation

void nsIXPCSecurityManager::CanAccess ( in PRUint32  aAction,
in nsIXPCNativeCallContext  aCallContext,
in JSContextPtr  aJSContext,
in JSObjectPtr  aJSObject,
in nsISupports  aObj,
in nsIClassInfo  aClassInfo,
in JSVal  aName,
inout voidPtr  aPolicy 
) [inherited]

Here is the caller graph for this function:

void nsIXPCSecurityManager::CanCreateInstance ( in JSContextPtr  aJSContext,
in nsCIDRef  aCID 
) [inherited]

Here is the caller graph for this function:

void nsIXPCSecurityManager::CanCreateWrapper ( in JSContextPtr  aJSContext,
in nsIIDRef  aIID,
in nsISupports  aObj,
in nsIClassInfo  aClassInfo,
inout voidPtr  aPolicy 
) [inherited]

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 
) [inherited]

Member Data Documentation

Definition at line 98 of file nsIXPCSecurityManager.idl.

Definition at line 99 of file nsIXPCSecurityManager.idl.

Definition at line 100 of file nsIXPCSecurityManager.idl.

Definition at line 64 of file nsIXPCSecurityManager.idl.

Definition at line 62 of file nsIXPCSecurityManager.idl.

These flags are used when calling nsIXPConnect::SetSecurityManager.

Definition at line 61 of file nsIXPCSecurityManager.idl.

Definition at line 65 of file nsIXPCSecurityManager.idl.

Definition at line 63 of file nsIXPCSecurityManager.idl.

Definition at line 66 of file nsIXPCSecurityManager.idl.


The documentation for this class was generated from the following file: