sbSecurityMixin Class Reference

#include <sbSecurityMixin.h>

Inheritance diagram for sbSecurityMixin:
Collaboration diagram for sbSecurityMixin:

Public Member Functions

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

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 ( )

Definition at line 114 of file sbSecurityMixin.cpp.

Member Function Documentation

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

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 

Definition at line 694 of file sbSecurityMixin.cpp.

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

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 

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 

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 

Definition at line 395 of file sbSecurityMixin.cpp.

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

Definition at line 527 of file sbSecurityMixin.cpp.

Here is the caller graph for this function:

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

Set the permission to allow for a scoped name.

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

Definition at line 111 of file sbSecurityMixin.h.

PRUint32 sbSecurityMixin::mInterfacesCount

Definition at line 112 of file sbSecurityMixin.h.

nsTArray<nsCString> sbSecurityMixin::mMethods

Definition at line 114 of file sbSecurityMixin.h.

nsCOMPtr<nsIDOMDocument> sbSecurityMixin::mNotificationDocument

Definition at line 117 of file sbSecurityMixin.h.

sbISecurityAggregator* sbSecurityMixin::mOuter

Definition at line 107 of file sbSecurityMixin.h.

PRBool sbSecurityMixin::mPrivileged

Definition at line 113 of file sbSecurityMixin.h.

nsTArray<nsCString> sbSecurityMixin::mRProperties

Definition at line 115 of file sbSecurityMixin.h.

nsTArray<nsCString> sbSecurityMixin::mWProperties

Definition at line 116 of file sbSecurityMixin.h.

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