Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIRequestObserverProxy Interface Reference

A request observer proxy is used to ship data over to another thread specified by the thread's event queue. More...

import "nsIRequestObserverProxy.idl";

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

List of all members.

Public Member Functions

void init (in nsIRequestObserver observer, in nsIEventQueue eventQ)
 Initializes an nsIRequestObserverProxy.
void onStartRequest (in nsIRequest aRequest, in nsISupports aContext)
 Called to signify the beginning of an asynchronous request.
void onStopRequest (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatusCode)
 Called to signify the end of an asynchronous request.

Detailed Description

A request observer proxy is used to ship data over to another thread specified by the thread's event queue.

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.

Definition at line 52 of file nsIRequestObserverProxy.idl.


Member Function Documentation

Initializes an nsIRequestObserverProxy.

Parameters:
observer- receives observer notifications on the other thread
eventQ- may be NULL indicating the calling thread's event queue
void nsIRequestObserver::onStartRequest ( in nsIRequest  aRequest,
in nsISupports  aContext 
) [inherited]

Called to signify the beginning of an asynchronous request.

Parameters:
aRequestrequest being observed
aContextuser defined context

An exception thrown from onStartRequest has the side-effect of causing the request to be canceled.

Here is the caller graph for this function:

void nsIRequestObserver::onStopRequest ( in nsIRequest  aRequest,
in nsISupports  aContext,
in nsresult  aStatusCode 
) [inherited]

Called to signify the end of an asynchronous request.

This call is always preceded by a call to onStartRequest.

Parameters:
aRequestrequest being observed
aContextuser defined context
aStatusCodereason for stopping (NS_OK if completed successfully)

An exception thrown from onStopRequest is generally ignored.

Here is the caller graph for this function:


The documentation for this interface was generated from the following file: