Struct xpcom::interfaces::nsINetworkInterceptController [] [src]

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

interface nsINetworkInterceptController : nsISupports

/**
 * Interface to allow consumers to attach themselves to a channel's
 * notification callbacks/loadgroup and determine if a given channel
 * request should be intercepted before any network request is initiated.
 */

Methods

impl nsINetworkInterceptController
[src]

[src]

Cast this nsINetworkInterceptController to one of its base interfaces.

impl nsINetworkInterceptController
[src]

[src]

/**
     * Returns true if a channel should avoid initiating any network
     * requests until specifically instructed to do so.
     *
     * @param aURI the URI being requested by a channel
     * @param aIsNavigate True if the request is for a navigation, false for a fetch.
     */

bool shouldPrepareForIntercept (in nsIURI aURI, in bool aIsNonSubresourceRequest);

[src]

/**
     * Notification when a given intercepted channel is prepared to accept a synthesized
     * response via the provided stream.
     *
     * @param aChannel the controlling interface for a channel that has been intercepted
     */

void channelIntercepted (in nsIInterceptedChannel aChannel);

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

IID: nsIID = nsID(1892857086, 42322, 18637, [141, 147, 29, 132, 55, 165, 107, 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 nsINetworkInterceptController
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsINetworkInterceptController
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.