#include <nsIRunnable.h>
#include <nsCOMPtr.h>
#include <nsComponentManagerUtils.h>
#include <nsServiceManagerUtils.h>
#include <nsThreadUtils.h>
#include <nsIProxyObjectManager.h>
#include <nsXPCOMCIDInternal.h>
#include <nsProxyRelease.h>
Go to the source code of this file.
|
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) |
|
nsresult do_GetProxyForObject |
( |
nsIEventTarget * |
aTarget, |
|
|
REFNSIID |
aIID, |
|
|
nsISupports * |
aObj, |
|
|
PRInt32 |
aProxyType, |
|
|
void ** |
aProxyObject |
|
) |
| |
|
inline |
template<class T >
nsresult do_GetProxyForObject |
( |
nsIEventTarget * |
aTarget, |
|
|
T * |
aObj, |
|
|
PRInt32 |
aProxyType, |
|
|
void ** |
aProxyObject |
|
) |
| |
|
inline |
nsresult do_GetProxyForObjectWithManager |
( |
nsIProxyObjectManager * |
aProxyObjMgr, |
|
|
nsIEventTarget * |
aTarget, |
|
|
REFNSIID |
aIID, |
|
|
nsISupports * |
aObj, |
|
|
PRInt32 |
aProxyType, |
|
|
void ** |
aProxyObject |
|
) |
| |
|
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
-
aSupports | Object for which to get QI'd main thread object. |
aResult | Optional 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.
template<class T >
void do_MainThreadQueryInterface |
( |
already_AddRefed< T > & |
aSupports, |
|
|
nsresult * |
aResult = nsnull |
|
) |
| |
|
inline |