Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Initializes an nsIRequestObserverProxy.
receives observer notifications on the main thread
the context argument that will be passed to OnStopRequest and OnStartRequest. This has to be stored permanently on initialization because it sometimes can't be AddRef/Release'd off-main-thread.
Called to signify the end of an asynchronous request. This call is always preceded by a call to onStartRequest.
request being observed
reason for stopping (NS_OK if completed successfully)
An exception thrown from onStopRequest is generally ignored.
Generated using TypeDoc
A request observer proxy is used to ship data over to another thread specified by the thread's dispatch target. The "true" request observer's methods are invoked on the other thread.
This interface only provides the initialization needed after construction. Otherwise, these objects are used simply as nsIRequestObserver's.