Back to index

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

#include <nsProxyEventPrivate.h>

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

List of all members.

Public Member Functions

 nsProxyObjectManager ()
nsHashtable * GetRealObjectToProxyObjectMap ()
nsHashtable * GetIIDToProxyClassMap ()
PRMonitorGetMonitor () const
void getProxyForObject (in nsIEventQueue destQueue, in nsIIDRef iid, in nsISupports object, in PRInt32 proxyType,[iid_is(iid), retval] out nsQIResult result)
void getProxy (in nsIEventQueue destQueue, in nsIIDRef cid, in nsISupports aOuter, in nsIIDRef iid, in PRInt32 proxyType,[iid_is(iid), retval] out nsQIResult result)

Static Public Member Functions

NS_DECL_ISUPPORTS static
NS_DECL_NSIPROXYOBJECTMANAGER
NS_METHOD 
Create (nsISupports *outer, const nsIID &aIID, void **aInstancePtr)
static nsProxyObjectManagerGetInstance ()
static PRBool IsManagerShutdown ()
static void Shutdown ()

Public Attributes

const long INVOKE_SYNC = 0x0001
 Constants for proxyType.
const long INVOKE_ASYNC = 0x0002
 Asynchronous: Return without waiting for result.
const long FORCE_PROXY_CREATION = 0x0004
 Always create proxy even if for same thread as current thread.

Private Member Functions

 ~nsProxyObjectManager ()

Private Attributes

nsHashtable mProxyObjectMap
nsHashtable mProxyClassMap
PRMonitormProxyCreationMonitor

Static Private Attributes

static nsProxyObjectManagermInstance = nsnull

Detailed Description

Definition at line 170 of file nsProxyEventPrivate.h.


Constructor & Destructor Documentation

Definition at line 114 of file nsProxyObjectManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 128 of file nsProxyObjectManager.cpp.

Here is the call graph for this function:


Member Function Documentation

NS_IMETHODIMP nsProxyObjectManager::Create ( nsISupports *  outer,
const nsIID aIID,
void **  aInstancePtr 
) [static]

Definition at line 167 of file nsProxyObjectManager.cpp.

{
    nsProxyObjectManager *proxyObjectManager = GetInstance();

    if (proxyObjectManager == nsnull)
        return NS_ERROR_OUT_OF_MEMORY;

    return proxyObjectManager->QueryInterface(aIID, aInstancePtr);
}

Here is the call graph for this function:

Definition at line 188 of file nsProxyEventPrivate.h.

{ return &mProxyClassMap; }   

Here is the caller graph for this function:

Definition at line 148 of file nsProxyObjectManager.cpp.

{
    if (! mInstance) 
    {
        mInstance = new nsProxyObjectManager();
    }
    return mInstance;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 190 of file nsProxyEventPrivate.h.

Here is the caller graph for this function:

void nsIProxyObjectManager::getProxy ( in nsIEventQueue  destQueue,
in nsIIDRef  cid,
in nsISupports  aOuter,
in nsIIDRef  iid,
in PRInt32  proxyType,
[iid_is(iid), retval] out nsQIResult  result 
) [inherited]
void nsIProxyObjectManager::getProxyForObject ( in nsIEventQueue  destQueue,
in nsIIDRef  iid,
in nsISupports  object,
in PRInt32  proxyType,
[iid_is(iid), retval] out nsQIResult  result 
) [inherited]

Definition at line 187 of file nsProxyEventPrivate.h.

{ return &mProxyObjectMap;}   

Here is the caller graph for this function:

Definition at line 140 of file nsProxyObjectManager.cpp.

{
    if (mInstance) 
        return PR_FALSE;
    return PR_TRUE;
}

Here is the caller graph for this function:

Definition at line 159 of file nsProxyObjectManager.cpp.

Here is the caller graph for this function:


Member Data Documentation

Always create proxy even if for same thread as current thread.

Definition at line 65 of file nsIProxyObjectManager.idl.

Asynchronous: Return without waiting for result.

(Warning: do not pass &pointers into stack when using this flag.)

Definition at line 60 of file nsIProxyObjectManager.idl.

Constants for proxyType.

Synchronous: Block until result available, like function call.

Definition at line 55 of file nsIProxyObjectManager.idl.

Definition at line 195 of file nsProxyEventPrivate.h.

nsHashtable nsProxyObjectManager::mProxyClassMap [private]

Definition at line 197 of file nsProxyEventPrivate.h.

Definition at line 198 of file nsProxyEventPrivate.h.

Definition at line 196 of file nsProxyEventPrivate.h.


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