Struct xpcom::interfaces::imgICache
[−]
[src]
#[repr(C)]pub struct imgICache { /* fields omitted */ }
interface imgICache : nsISupports
/**
* imgICache interface
*
* @author Stuart Parmenter <pavlov@netscape.com>
* @version 0.1
* @see imagelib2
*/
Methods
impl imgICache
[src]
pub fn coerce<T: imgICacheCoerce>(&self) -> &T
[src]
Cast this imgICache
to one of its base interfaces.
impl imgICache
[src]
pub unsafe fn ClearCache(&self, chrome: bool) -> nsresult
[src]
/**
* Evict images from the cache.
*
* @param chrome If TRUE, evict only chrome images.
* If FALSE, evict everything except chrome images.
*/
void clearCache (in boolean chrome);
pub unsafe fn RemoveEntry(
&self,
uri: *const nsIURI,
doc: *const nsIDOMDocument
) -> nsresult
[src]
&self,
uri: *const nsIURI,
doc: *const nsIDOMDocument
) -> nsresult
/**
* Evict images from the cache.
*
* @param uri The URI to remove.
* @param doc The document to remove the cache entry for.
* @throws NS_ERROR_NOT_AVAILABLE if \a uri was unable to be removed from
* the cache.
*/
[noscript] void removeEntry (in nsIURI uri, [optional] in nsIDOMDocument doc);
pub unsafe fn FindEntryProperties(
&self,
uri: *const nsIURI,
doc: *const nsIDOMDocument,
_retval: *mut *const nsIProperties
) -> nsresult
[src]
&self,
uri: *const nsIURI,
doc: *const nsIDOMDocument,
_retval: *mut *const nsIProperties
) -> nsresult
/**
* Find Properties
* Used to get properties such as 'type' and 'content-disposition'
* 'type' is a nsISupportsCString containing the images' mime type such as
* 'image/png'
* 'content-disposition' will be a nsISupportsCString containing the header
* If you call this before any data has been loaded from a URI, it will
* succeed, but come back empty.
*
* Hopefully this will be removed with bug 805119
*
* @param uri The URI to look up.
* @param doc Optional pointer to the document that the cache entry belongs to.
* @returns NULL if the URL was not found in the cache
*/
[must_use] nsIProperties findEntryProperties (in nsIURI uri, [optional] in nsIDOMDocument doc);
pub unsafe fn RespectPrivacyNotifications(&self) -> nsresult
[src]
/**
* Make this cache instance respect private browsing notifications. This
* entails clearing the chrome and content caches whenever the
* last-pb-context-exited notification is observed.
*/
void respectPrivacyNotifications ();
pub unsafe fn ClearCacheForControlledDocument(
&self,
doc: *const nsIDocument
) -> c_void
[src]
&self,
doc: *const nsIDocument
) -> c_void
/**
* Clear the image cache for a document. Controlled documents are responsible
* for doing this manually when they get destroyed.
*/
[noscript,notxpcom] void clearCacheForControlledDocument (in nsIDocument doc);
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 imgICache
[src]
const IID: nsIID
IID: nsIID = nsID(3219071999, 14222, 16430, [138, 108, 132, 15, 12, 130, 182, 195])
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 imgICache
[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 imgICache
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.