Public Member Functions

nsIRequestObserver Interface Reference

nsIRequestObserver More...

import "nsIRequestObserver.idl";

Inheritance diagram for nsIRequestObserver:

List of all members.

Public Member Functions

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

nsIRequestObserver

Status:
FROZEN

Member Function Documentation

void nsIRequestObserver::onStartRequest ( in nsIRequest  aRequest,
in nsISupports  aContext 
)

Called to signify the beginning of an asynchronous request.

Parameters:
aRequest request being observed
aContext user defined context

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

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

Called to signify the end of an asynchronous request.

This call is always preceded by a call to onStartRequest.

Parameters:
aRequest request being observed
aContext user defined context
aStatusCode reason for stopping (NS_OK if completed successfully)

An exception thrown from onStopRequest is generally ignored.


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