WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

imgIRequest

IID:a297d3fa-5e0c-4e59-9f30-a01c9d4f3f8b
Inherits From:nsIRequest

ImgIRequest interface

This interface is implemented by the following components:


Constants

Bits set in the return value from imageStatus
PRInt32 STATUS_NONE = 0
PRInt32 STATUS_SIZE_AVAILABLE = 1
PRInt32 STATUS_LOAD_PARTIAL = 2
PRInt32 STATUS_LOAD_COMPLETE = 4
PRInt32 STATUS_ERROR = 8
PRInt32 STATUS_FRAME_COMPLETE = 16

Properties

readonly imgIDecoderObserver decoderObserver

readonly imgIContainer image

The image container...

readonly nsIPrincipal imagePrincipal

The principal gotten from the channel the image was loaded from.

readonly PRUint32 imageStatus

Something

readonly char* mimeType

readonly nsIURI URI

The URI the image load was started with. Note that this might not be the actual URI for the image (e.g. if HTTP redirects happened during the load).


Methods

imgIRequest clone ( imgIDecoderObserver observer )

imgIRequest clone ( imgIDecoderObserver observer )

Clone this request; the returned request will have observer as the observer. observer will be notified synchronously (before the clone() call returns) with all the notifications that have already been dispatched for this image load.

Arguments:
observer

References

This interface is the type of the following properties:

nsIImageDocument.imageRequest

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

imgIDecoderObserver.onDataAvailable, imgIDecoderObserver.onStartContainer, imgIDecoderObserver.onStartDecode, imgIDecoderObserver.onStartFrame, imgIDecoderObserver.onStartRequest, imgIDecoderObserver.onStopContainer, imgIDecoderObserver.onStopDecode, imgIDecoderObserver.onStopFrame, imgIDecoderObserver.onStopRequest, imgILoader.loadImage, nsIImageLoadingContent.getRequestType

This interface is returned from the following methods:

imgILoader.loadImage, imgILoader.loadImageWithChannel, imgIRequest.clone, nsIImageLoadingContent.getRequest

Reference documentation is generated from Mozilla's source.