Struct xpcom::interfaces::imgILoader
[−]
[src]
#[repr(C)]pub struct imgILoader { /* fields omitted */ }
interface imgILoader : nsISupports
/**
* imgILoader interface
*
* @author Stuart Parmenter <pavlov@netscape.com>
* @version 0.3
* @see imagelib2
*/
Methods
impl imgILoader
[src]
pub fn coerce<T: imgILoaderCoerce>(&self) -> &T
[src]
Cast this imgILoader
to one of its base interfaces.
impl imgILoader
[src]
pub const LOAD_CORS_ANONYMOUS: i64
LOAD_CORS_ANONYMOUS: i64 = 65536
pub const LOAD_CORS_USE_CREDENTIALS: i64
LOAD_CORS_USE_CREDENTIALS: i64 = 131072
pub unsafe fn LoadImageXPCOM(
&self,
aURI: *const nsIURI,
aInitialDocumentURL: *const nsIURI,
aReferrerURI: *const nsIURI,
aReferrerPolicy: &nsAString,
aLoadingPrincipal: *const nsIPrincipal,
aLoadGroup: *const nsILoadGroup,
aObserver: *const imgINotificationObserver,
aCX: *const nsISupports,
aLoadFlags: nsLoadFlags,
cacheKey: *const nsISupports,
aContentPolicyType: nsContentPolicyType,
_retval: *mut *const imgIRequest
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aInitialDocumentURL: *const nsIURI,
aReferrerURI: *const nsIURI,
aReferrerPolicy: &nsAString,
aLoadingPrincipal: *const nsIPrincipal,
aLoadGroup: *const nsILoadGroup,
aObserver: *const imgINotificationObserver,
aCX: *const nsISupports,
aLoadFlags: nsLoadFlags,
cacheKey: *const nsISupports,
aContentPolicyType: nsContentPolicyType,
_retval: *mut *const imgIRequest
) -> nsresult
/**
* Start the load and decode of an image.
* @param aURI the URI to load
* @param aInitialDocumentURI the URI that 'initiated' the load -- used for
* 3rd party cookie blocking
* @param aReferrerURI the 'referring' URI
* @param aReferrerPolicy the policy to apply to sending referrers.
* examples: "default", "never", "always", "origin"
* (see W3C referrer-policy spec for valid policy strings)
* @param aLoadingPrincipal the principal of the loading document
* @param aLoadGroup Loadgroup to put the image load into
* @param aObserver the observer (may be null)
* @param aCX some random data
* @param aLoadFlags Load flags for the request
* @param aCacheKey cache key to use for a load if the original
* image came from a request that had post data
* @param aContentPolicyType [optional] the nsContentPolicyType to
* use for this load. Defaults to
* nsIContentPolicy::TYPE_IMAGE
* ImageLib does NOT keep a strong ref to the observer; this prevents
* reference cycles. This means that callers of loadImage should
* make sure to Cancel() the resulting request before the observer
* goes away.
*/
imgIRequest loadImageXPCOM (in nsIURI aURI, in nsIURI aInitialDocumentURL, in nsIURI aReferrerURI, in AString aReferrerPolicy, in nsIPrincipal aLoadingPrincipal, in nsILoadGroup aLoadGroup, in imgINotificationObserver aObserver, in nsISupports aCX, in nsLoadFlags aLoadFlags, in nsISupports cacheKey, [optional] in nsContentPolicyType aContentPolicyType);
pub unsafe fn LoadImageWithChannelXPCOM(
&self,
aChannel: *const nsIChannel,
aObserver: *const imgINotificationObserver,
cx: *const nsISupports,
aListener: *mut *const nsIStreamListener,
_retval: *mut *const imgIRequest
) -> nsresult
[src]
&self,
aChannel: *const nsIChannel,
aObserver: *const imgINotificationObserver,
cx: *const nsISupports,
aListener: *mut *const nsIStreamListener,
_retval: *mut *const imgIRequest
) -> nsresult
/**
* Start the load and decode of an image.
* @param aChannel the channel to load the image from. This must
* already be opened before ths method is called, and there
* must have been no OnDataAvailable calls for it yet.
* @param aObserver the observer (may be null)
* @param cx some random data
* @param aListener [out]
* A listener that you must send the channel's notifications and data
* to. Can be null, in which case imagelib has found a cached image
* and is not interested in the data. @aChannel will be canceled for
* you in this case.
*
* ImageLib does NOT keep a strong ref to the observer; this prevents
* reference cycles. This means that callers of loadImageWithChannel should
* make sure to Cancel() the resulting request before the observer goes away.
*/
imgIRequest loadImageWithChannelXPCOM (in nsIChannel aChannel, in imgINotificationObserver aObserver, in nsISupports cx, out nsIStreamListener aListener);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for imgILoader
[src]
const IID: nsIID
IID: nsIID = nsID(3860035538, 37134, 19557, [166, 75, 66, 141, 21, 14, 31, 209])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for imgILoader
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for imgILoader
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.