nsISupports
Last changed in Gecko 1.7 This interface is used to asynchronously convey channel status and progress information that is generally not critical to the processing of the channel. The information is intended to be displayed to the user in some meaningful way.
An implementation of this interface can be passed to a channel via the channel's notificationCallbacks attribute. See nsIChannel for more info.
The channel will begin passing notifications to the progress event sink after its asyncOpen method has been called. Notifications will cease once the channel calls its listener's onStopRequest method or once the channel is canceled (via nsIRequest.cancel()).
nsIRequest.void onProgress(in nsIRequest aRequest, in nsISupports aContext, in unsigned long long aProgress, in unsigned long long aProgressMax); |
void onStatus(in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatus, in wstring aStatusArg); |
Called to notify the event sink that progress has occurred for the given request.
void onProgress( in nsIRequest aRequest, in nsISupports aContext, in unsigned long long aProgress, in unsigned long long aProgressMax );
aRequestnsIChannel).aContextaRequest is a channel, then this parameter is the listener context passed to nsIChannel.asyncOpen().aProgressaProgressMax indicating the number of bytes transfered thus far.aProgressMaxCalled to notify the event sink with a status message for the given request.
void onStatus( in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatus, in wstring aStatusArg );
aRequestnsIChannel).aContextaRequest is a channel, then this parameter is the listener context passed to nsIChannel.asyncOpen().aStatusnsISocketTransport for socket specific status codes.aStatusArg