Back to index

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

#include <nsScriptSecurityManager.h>

Inheritance diagram for DomainPolicy:
Inheritance graph
[legend]
Collaboration diagram for DomainPolicy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DomainPolicy ()
PRBool Init ()
 ~DomainPolicy ()
void Hold ()
void Drop ()
PRBool IsInvalid ()

Static Public Member Functions

static void InvalidateAll ()

Public Attributes

ClassPolicymWildcardPolicy
const PLDHashTableOpsops
voiddata
PRInt16 hashShift
uint8 maxAlphaFrac
uint8 minAlphaFrac
PRUint32 entrySize
PRUint32 entryCount
PRUint32 removedCount
PRUint32 generation
char * entryStore

Private Attributes

PRUint32 mRefCount
PRUint32 mGeneration

Static Private Attributes

static PRUint32 sGeneration = 0

Detailed Description

Definition at line 271 of file nsScriptSecurityManager.h.


Constructor & Destructor Documentation

Definition at line 274 of file nsScriptSecurityManager.h.

                   : mWildcardPolicy(nsnull),
                     mRefCount(0)
    {
        mGeneration = sGeneration;

#ifdef DEBUG_CAPS_DomainPolicyLifeCycle
        ++sObjects;
        _printPopulationInfo();
#endif

    }

Definition at line 305 of file nsScriptSecurityManager.h.

    {
        PL_DHashTableFinish(this);
        NS_ASSERTION(mRefCount == 0, "Wrong refcount in DomainPolicy dtor");
#ifdef DEBUG_CAPS_DomainPolicyLifeCycle
        printf("DomainPolicy deleted with mRefCount = %d\n", mRefCount);
        --sObjects;
        _printPopulationInfo();
#endif

    }

Here is the call graph for this function:


Member Function Documentation

void DomainPolicy::Drop ( ) [inline]

Definition at line 322 of file nsScriptSecurityManager.h.

    {
        if (--mRefCount == 0)
            delete this;
    }

Here is the caller graph for this function:

void DomainPolicy::Hold ( ) [inline]

Definition at line 317 of file nsScriptSecurityManager.h.

    {
        mRefCount++;
    }

Here is the caller graph for this function:

PRBool DomainPolicy::Init ( ) [inline]

Definition at line 286 of file nsScriptSecurityManager.h.

Here is the call graph for this function:

Here is the caller graph for this function:

static void DomainPolicy::InvalidateAll ( ) [inline, static]

Definition at line 328 of file nsScriptSecurityManager.h.

    {
        sGeneration++;
    }

Here is the caller graph for this function:

Definition at line 333 of file nsScriptSecurityManager.h.

    {
        return mGeneration != sGeneration; 
    }

Member Data Documentation

void* PLDHashTable::data [inherited]

Definition at line 194 of file pldhash.h.

Definition at line 199 of file pldhash.h.

Definition at line 198 of file pldhash.h.

char* PLDHashTable::entryStore [inherited]

Definition at line 202 of file pldhash.h.

Definition at line 201 of file pldhash.h.

Definition at line 195 of file pldhash.h.

Definition at line 196 of file pldhash.h.

Definition at line 342 of file nsScriptSecurityManager.h.

Definition at line 197 of file pldhash.h.

Definition at line 341 of file nsScriptSecurityManager.h.

Definition at line 338 of file nsScriptSecurityManager.h.

Definition at line 193 of file pldhash.h.

Definition at line 200 of file pldhash.h.

PRUint32 DomainPolicy::sGeneration = 0 [static, private]

Definition at line 343 of file nsScriptSecurityManager.h.


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