nsIRequestObserver

IID:fd91e2e0-1481-11d3-9333-00104ba0fd40
Inherits From:nsISupports
Status:FROZEN

This interface is implemented by the following components:


Methods

void onStartRequest ( nsIRequest request , nsISupports context ) void onStopRequest ( nsIRequest request , nsISupports context , nsresult statusCode )

void onStartRequest ( nsIRequest request , nsISupports context )

Called to signify the beginning of an asynchronous request.

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

Arguments:
request: request being observed
context: user defined context

void onStopRequest ( nsIRequest request , nsISupports context , nsresult statusCode )

Called to signify the end of an asynchronous request. This call is always preceded by a call to onStartRequest.

An exception thrown from onStopRequest is generally ignored.

Arguments:
request: request being observed
context: user defined context
statusCode: reason for stopping (NS_OK if completed successfully)

References

This interface is the type of the following properties:

nsILoadGroup.groupObserver

This interface is passed as an argument to the following methods:

nsIApplicationUpdateService.addDownloadListener, nsIApplicationUpdateService.removeDownloadListener, nsIAsyncStreamCopier.asyncCopy, nsIIncrementalDownload.start, nsIRequestObserverProxy.init, nsISimpleStreamListener.init, nsIURIChecker.asyncCheck

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com