sbProxiedComponentManager.h File Reference
#include <nsIRunnable.h>
#include <nsCOMPtr.h>
#include <nsComponentManagerUtils.h>
#include <nsServiceManagerUtils.h>
#include <nsThreadUtils.h>
#include <nsIProxyObjectManager.h>
#include <nsXPCOMCIDInternal.h>
#include <nsProxyRelease.h>
Include dependency graph for sbProxiedComponentManager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sbProxiedComponentManagerRunnable
 
class  sbCreateProxiedComponent
 
class  sbMainThreadQueryInterface
 

Functions

const sbCreateProxiedComponent do_ProxiedCreateInstance (const nsCID &aCID, nsresult *error=0)
 
const sbCreateProxiedComponent do_ProxiedGetService (const nsCID &aCID, nsresult *error=0)
 
const sbCreateProxiedComponent do_ProxiedCreateInstance (const char *aContractID, nsresult *error=0)
 
const sbCreateProxiedComponent do_ProxiedGetService (const char *aContractID, nsresult *error=0)
 
nsresult do_GetProxyForObjectWithManager (nsIProxyObjectManager *aProxyObjMgr, nsIEventTarget *aTarget, REFNSIID aIID, nsISupports *aObj, PRInt32 aProxyType, void **aProxyObject)
 
nsresult do_GetProxyForObject (nsIEventTarget *aTarget, REFNSIID aIID, nsISupports *aObj, PRInt32 aProxyType, void **aProxyObject)
 
template<class T >
nsresult do_GetProxyForObject (nsIEventTarget *aTarget, T *aObj, PRInt32 aProxyType, void **aProxyObject)
 
sbMainThreadQueryInterface do_MainThreadQueryInterface (nsISupports *aSupports, nsresult *aResult=nsnull)
 
template<class T >
void do_MainThreadQueryInterface (already_AddRefed< T > &aSupports, nsresult *aResult=nsnull)
 

Function Documentation

nsresult do_GetProxyForObject ( nsIEventTarget *  aTarget,
REFNSIID  aIID,
nsISupports aObj,
PRInt32  aProxyType,
void **  aProxyObject 
)
inline

Definition at line 165 of file sbProxiedComponentManager.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
nsresult do_GetProxyForObject ( nsIEventTarget *  aTarget,
T *  aObj,
PRInt32  aProxyType,
void **  aProxyObject 
)
inline

Definition at line 189 of file sbProxiedComponentManager.h.

Here is the call graph for this function:

nsresult do_GetProxyForObjectWithManager ( nsIProxyObjectManager *  aProxyObjMgr,
nsIEventTarget *  aTarget,
REFNSIID  aIID,
nsISupports aObj,
PRInt32  aProxyType,
void **  aProxyObject 
)
inline

Definition at line 127 of file sbProxiedComponentManager.h.

Here is the caller graph for this function:

sbMainThreadQueryInterface do_MainThreadQueryInterface ( nsISupports aSupports,
nsresult *  aResult = nsnull 
)
inline

Return a QI'd version of the object specified by aSupports whose methods will execute on the main thread. If this function is called on the main thread, the returned object will simply be the QI'd version of aSupports. Otherwise, the returned object will by a main thread synchronous proxy QI'd version of aSupports. The result code may optionally be returned in aResult.

Parameters
aSupportsObject for which to get QI'd main thread object.
aResultOptional returned result.
Returns
QI'd main thread object.

Example:

nsresult rv; nsCOMPtr<nsIURI> mainThreadURI = do_MainThreadQueryInterface(uri, &rv); NS_ENSURE_SUCCESS(rv, rv);

Definition at line 244 of file sbProxiedComponentManager.h.

Here is the caller graph for this function:

template<class T >
void do_MainThreadQueryInterface ( already_AddRefed< T > &  aSupports,
nsresult *  aResult = nsnull 
)
inline

Definition at line 252 of file sbProxiedComponentManager.h.

const sbCreateProxiedComponent do_ProxiedCreateInstance ( const nsCID &  aCID,
nsresult *  error = 0 
)
inline

Definition at line 94 of file sbProxiedComponentManager.h.

Here is the caller graph for this function:

const sbCreateProxiedComponent do_ProxiedCreateInstance ( const char *  aContractID,
nsresult *  error = 0 
)
inline

Definition at line 108 of file sbProxiedComponentManager.h.

const sbCreateProxiedComponent do_ProxiedGetService ( const nsCID &  aCID,
nsresult *  error = 0 
)
inline

Definition at line 101 of file sbProxiedComponentManager.h.

Here is the caller graph for this function:

const sbCreateProxiedComponent do_ProxiedGetService ( const char *  aContractID,
nsresult *  error = 0 
)
inline

Definition at line 115 of file sbProxiedComponentManager.h.