Back to index

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

List of all members.

Public Types

enum  Mode { OK_ALL, VETO_ALL }

Public Member Functions

void SetMode (Mode mode)
 MySecMan ()
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

Private Attributes

Mode mMode

Detailed Description

Definition at line 200 of file TestXPC.cpp.


Member Enumeration Documentation

Enumerator:
OK_ALL 
VETO_ALL 

Definition at line 206 of file TestXPC.cpp.

            { OK_ALL    ,
              VETO_ALL
            };

Constructor & Destructor Documentation

Definition at line 220 of file TestXPC.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]
void MySecMan::SetMode ( Mode  mode) [inline]

Definition at line 210 of file TestXPC.cpp.

{mMode = mode;}

Here is the caller graph for this function:


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.

Mode MySecMan::mMode [private]

Definition at line 215 of file TestXPC.cpp.


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