sbSecurityMixin Class Reference

#include <sbSecurityMixin.h>

Inheritance diagram for sbSecurityMixin:
[legend]
Collaboration diagram for sbSecurityMixin:
[legend]

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSICLASSINFO
NS_DECL_NSISECURITYCHECKEDCOMPONENT
NS_DECL_SBISECURITYMIXIN 
sbSecurityMixin ()
 
- Public Member Functions inherited from sbISecurityMixin
void init (in sbISecurityAggregator aOuter, [const, array, size_is(aInterfacesLength)] in nsIIDPtr aInterfacesArray, in unsigned long aInterfacesLength, [const, array, size_is(aMethodsLength)] in string aMethodsArray, in unsigned long aMethodsLength, [const, array, size_is(aRPropsLength)] in string aRPropsArray, in unsigned long aRPropsLength, [const, array, size_is(aWPropsLength)] in string aWPropsArray, in unsigned long aWPropsLength, in boolean aPrivileged)
 
nsIURI getCodebase ()
 Gets the URI for the current location. More...
 
boolean getPermissionForScopedNameWrapper (in AString aRemotePermCategory)
 Get the permissions for a category. More...
 

Static Public Member Functions

static nsresult SetPermission (nsIURI *aURI, const nsACString &aScopedName)
 Set the permission to allow for a scoped name. More...
 

Protected Member Functions

virtual ~sbSecurityMixin ()
 
PRBool GetPermission (nsIURI *aURI, const struct Scope *aScope)
 
PRBool GetPermissionForScopedName (const nsAString &aScopedName, PRBool disableNotificationCheck=PR_FALSE)
 
PRBool GetScopedName (nsTArray< nsCString > &aStringArray, const nsAString &aMethodName, nsAString &aScopedName)
 
const struct ScopeGetScopeForScopedName (const nsAString &aScopedName)
 
nsresult DispatchNotificationEvent (const char *aNotificationType, const Scope *aScope, PRBool aHasAccess)
 
nsresult CopyIIDArray (PRUint32 aCount, const nsIID **aSourceArray, nsIID ***aDestArray)
 
nsresult CopyStrArray (PRUint32 aCount, const char **aSourceArray, nsTArray< nsCString > *aDestArray)
 

Protected Attributes

sbISecurityAggregatormOuter
 
nsIID ** mInterfaces
 
PRUint32 mInterfacesCount
 
PRBool mPrivileged
 
nsTArray< nsCString > mMethods
 
nsTArray< nsCString > mRProperties
 
nsTArray< nsCString > mWProperties
 
nsCOMPtr< nsIDOMDocument > mNotificationDocument
 

Additional Inherited Members

- Public Attributes inherited from sbISecurityMixin
attribute nsIDOMDocument notificationDocument
 the DOM document to send notification events to More...
 

Detailed Description

Definition at line 63 of file sbSecurityMixin.h.

Constructor & Destructor Documentation

sbSecurityMixin::sbSecurityMixin ( )

Definition at line 102 of file sbSecurityMixin.cpp.

sbSecurityMixin::~sbSecurityMixin ( )
protectedvirtual

Definition at line 114 of file sbSecurityMixin.cpp.

Member Function Documentation

nsresult sbSecurityMixin::CopyIIDArray ( PRUint32  aCount,
const nsIID **  aSourceArray,
nsIID ***  aDestArray 
)
protected

Definition at line 707 of file sbSecurityMixin.cpp.

Here is the call graph for this function:

nsresult sbSecurityMixin::CopyStrArray ( PRUint32  aCount,
const char **  aSourceArray,
nsTArray< nsCString > *  aDestArray 
)
protected

Definition at line 694 of file sbSecurityMixin.cpp.

nsresult sbSecurityMixin::DispatchNotificationEvent ( const char *  aNotificationType,
const Scope aScope,
PRBool  aHasAccess 
)
protected

Definition at line 623 of file sbSecurityMixin.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

PRBool sbSecurityMixin::GetPermission ( nsIURI *  aURI,
const struct Scope aScope 
)
protected

Definition at line 539 of file sbSecurityMixin.cpp.

Here is the caller graph for this function:

PRBool sbSecurityMixin::GetPermissionForScopedName ( const nsAString &  aScopedName,
PRBool  disableNotificationCheck = PR_FALSE 
)
protected

Definition at line 418 of file sbSecurityMixin.cpp.

Here is the call graph for this function:

PRBool sbSecurityMixin::GetScopedName ( nsTArray< nsCString > &  aStringArray,
const nsAString &  aMethodName,
nsAString &  aScopedName 
)
protected

Definition at line 395 of file sbSecurityMixin.cpp.

const struct Scope * sbSecurityMixin::GetScopeForScopedName ( const nsAString &  aScopedName)
protected

Definition at line 527 of file sbSecurityMixin.cpp.

Here is the caller graph for this function:

nsresult sbSecurityMixin::SetPermission ( nsIURI *  aURI,
const nsACString &  aScopedName 
)
static

Set the permission to allow for a scoped name.

Parameters
aURIthe URI to set permissions for
aScopedNamethe permission to set

Definition at line 601 of file sbSecurityMixin.cpp.

Here is the caller graph for this function:

Member Data Documentation

nsIID** sbSecurityMixin::mInterfaces
protected

Definition at line 111 of file sbSecurityMixin.h.

PRUint32 sbSecurityMixin::mInterfacesCount
protected

Definition at line 112 of file sbSecurityMixin.h.

nsTArray<nsCString> sbSecurityMixin::mMethods
protected

Definition at line 114 of file sbSecurityMixin.h.

nsCOMPtr<nsIDOMDocument> sbSecurityMixin::mNotificationDocument
protected

Definition at line 117 of file sbSecurityMixin.h.

sbISecurityAggregator* sbSecurityMixin::mOuter
protected

Definition at line 107 of file sbSecurityMixin.h.

PRBool sbSecurityMixin::mPrivileged
protected

Definition at line 113 of file sbSecurityMixin.h.

nsTArray<nsCString> sbSecurityMixin::mRProperties
protected

Definition at line 115 of file sbSecurityMixin.h.

nsTArray<nsCString> sbSecurityMixin::mWProperties
protected

Definition at line 116 of file sbSecurityMixin.h.


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