Struct xpcom::interfaces::nsIPrefetchService
[−]
[src]
#[repr(C)]pub struct nsIPrefetchService { /* fields omitted */ }
interface nsIPrefetchService : nsISupports
Methods
impl nsIPrefetchService
[src]
pub fn coerce<T: nsIPrefetchServiceCoerce>(&self) -> &T
[src]
Cast this nsIPrefetchService
to one of its base interfaces.
impl nsIPrefetchService
[src]
pub unsafe fn PrefetchURI(
&self,
aURI: *const nsIURI,
aReferrerURI: *const nsIURI,
aSource: *const nsIDOMNode,
aExplicit: bool
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aReferrerURI: *const nsIURI,
aSource: *const nsIDOMNode,
aExplicit: bool
) -> nsresult
/**
* Enqueue a request to prefetch the specified URI.
*
* @param aURI the URI of the document to prefetch
* @param aReferrerURI the URI of the referring page
* @param aSource the DOM node (such as a <link> tag) that requested this
* fetch, or null if the prefetch was not requested by a DOM node.
* @param aExplicit the link element has an explicit prefetch link type
*/
void prefetchURI (in nsIURI aURI, in nsIURI aReferrerURI, in nsIDOMNode aSource, in boolean aExplicit);
pub unsafe fn PreloadURI(
&self,
aURI: *const nsIURI,
aReferrerURI: *const nsIURI,
aSource: *const nsIDOMNode,
aPolicyType: nsContentPolicyType
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aReferrerURI: *const nsIURI,
aSource: *const nsIDOMNode,
aPolicyType: nsContentPolicyType
) -> nsresult
/**
* Start a preload of the specified URI.
*
* @param aURI the URI of the document to preload
* @param aReferrerURI the URI of the referring page
* @param aSource the DOM node (such as a <link> tag) that requested this
* fetch, or null if the prefetch was not requested by a DOM node.
* @param aPolicyType content policy to be used for this load.
*/
void preloadURI (in nsIURI aURI, in nsIURI aReferrerURI, in nsIDOMNode aSource, in nsContentPolicyType aPolicyType);
pub unsafe fn HasMoreElements(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Find out if there are any prefetches running or queued
*/
boolean hasMoreElements ();
pub unsafe fn CancelPrefetchPreloadURI(
&self,
aURI: *const nsIURI,
aSource: *const nsIDOMNode
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aSource: *const nsIDOMNode
) -> nsresult
/**
* Cancel prefetch or preload for a nsIDomNode.
*/
void cancelPrefetchPreloadURI (in nsIURI aURI, in nsIDOMNode aSource);
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 nsIPrefetchService
[src]
const IID: nsIID
IID: nsIID = nsID(1110054919, 20095, 17981, [184, 215, 202, 44, 235, 155, 93, 83])
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 nsIPrefetchService
[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 nsIPrefetchService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.