Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes
PrincipalKey Class Reference

#include <nsScriptSecurityManager.h>

Inheritance diagram for PrincipalKey:
Inheritance graph
Collaboration diagram for PrincipalKey:
Collaboration graph

List of all members.

Public Types

typedef const nsIPrincipalKeyType
typedef const nsIPrincipalKeyTypePointer

Public Member Functions

 PrincipalKey (const nsIPrincipal *key)
 PrincipalKey (const PrincipalKey &toCopy)
 ~PrincipalKey ()
KeyType GetKey () const
KeyTypePointer GetKeyPointer () const
PRBool KeyEquals (KeyTypePointer aKey) const

Static Public Member Functions

static KeyTypePointer KeyToPointer (KeyType aKey)
static PLDHashNumber HashKey (KeyTypePointer aKey)

Public Attributes

PLDHashNumber keyHash

Private Attributes

nsCOMPtr< nsIPrincipalmKey

Detailed Description

Definition at line 91 of file nsScriptSecurityManager.h.

Member Typedef Documentation

Definition at line 94 of file nsScriptSecurityManager.h.

Definition at line 95 of file nsScriptSecurityManager.h.

Member Enumeration Documentation

anonymous enum

Definition at line 141 of file nsScriptSecurityManager.h.

Constructor & Destructor Documentation

Definition at line 97 of file nsScriptSecurityManager.h.

Definition at line 102 of file nsScriptSecurityManager.h.

      : mKey(toCopy.mKey)

Definition at line 107 of file nsScriptSecurityManager.h.


Member Function Documentation

KeyType PrincipalKey::GetKey ( ) const [inline]

Definition at line 111 of file nsScriptSecurityManager.h.

        return mKey;

Definition at line 116 of file nsScriptSecurityManager.h.

        return mKey;
static PLDHashNumber PrincipalKey::HashKey ( KeyTypePointer  aKey) [inline, static]

Definition at line 134 of file nsScriptSecurityManager.h.

        PRUint32 hash;
        NS_CONST_CAST(nsIPrincipal*, aKey)->GetHashValue(&hash);
        return PLDHashNumber(hash);

Here is the call graph for this function:

PRBool PrincipalKey::KeyEquals ( KeyTypePointer  aKey) const [inline]

Definition at line 121 of file nsScriptSecurityManager.h.

        PRBool eq;
        mKey->Equals(NS_CONST_CAST(nsIPrincipal*, aKey),
        return eq;
static KeyTypePointer PrincipalKey::KeyToPointer ( KeyType  aKey) [inline, static]

Definition at line 129 of file nsScriptSecurityManager.h.

        return aKey;

Member Data Documentation

Definition at line 113 of file pldhash.h.

Definition at line 144 of file nsScriptSecurityManager.h.

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