Struct xpcom::interfaces::nsIPrefetchService [] [src]

#[repr(C)]
pub struct nsIPrefetchService { /* fields omitted */ }

interface nsIPrefetchService : nsISupports

Methods

impl nsIPrefetchService
[src]

[src]

Cast this nsIPrefetchService to one of its base interfaces.

impl nsIPrefetchService
[src]

[src]

/**
     * 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);

[src]

/**
     * 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);

[src]

/**
     * Find out if there are any prefetches running or queued
     */

boolean hasMoreElements ();

[src]

/**
     * Cancel prefetch or preload for a nsIDomNode.
     */

void cancelPrefetchPreloadURI (in nsIURI aURI, in nsIDOMNode aSource);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIPrefetchService
[src]

IID: nsIID = nsID(1110054919, 20095, 17981, [184, 215, 202, 44, 235, 155, 93, 83])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPrefetchService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.