Struct xpcom::interfaces::nsIParentRedirectingChannel [] [src]

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

interface nsIParentRedirectingChannel : nsIParentChannel

/**
 * Implemented by chrome side of IPC protocols that support redirect responses.
 */

Methods

impl nsIParentRedirectingChannel
[src]

[src]

Cast this nsIParentRedirectingChannel to one of its base interfaces.

impl nsIParentRedirectingChannel
[src]

[src]

/**
   * Called when the channel got a response that redirects it to a different
   * URI.  The implementation is responsible for calling the redirect observers
   * on the child process and provide the decision result to the callback.
   *
   * @param newChannelId
   *    id of the redirect channel obtained from nsIRedirectChannelRegistrar.
   * @param newURI
   *    the URI we redirect to
   * @param callback
   *    redirect result callback, usage is compatible with how
   *    nsIChannelEventSink defines it
   */

void startRedirect (in uint32_t newChannelId, in nsIChannel newChannel, in uint32_t redirectFlags, in nsIAsyncVerifyRedirectCallback callback);

[src]

/**
   * Called to new channel when the original channel got Redirect2Verify
   * response from child. Callback will be invoked when the new channel
   * finishes the preparation for Redirect2Verify and can be called immediately.
   *
   * @param callback
   *    redirect ready callback, will be called when redirect verification
   *    procedure can proceed.
   */

void continueVerification (in nsIAsyncVerifyRedirectReadyCallback callback);

[src]

/**
   * Called after we are done with redirecting process and we know if to
   * redirect or not.  Forward the redirect result to the child process.  From
   * that moment the nsIParentChannel implementation expects it will be
   * forwarded all notifications from the 'real' channel.
   *
   * Primarilly used by HttpChannelParentListener::OnRedirectResult and kept
   * as mActiveChannel and mRedirectChannel in that class.
   */

void completeRedirect (in boolean succeeded);

Methods from Deref<Target = nsIParentChannel>

[src]

Cast this nsIParentChannel to one of its base interfaces.

[src]

/**
   * Called to notify the HttpChannelChild that tracking protection was
   * disabled for this load.
   */

[noscript] void notifyTrackingProtectionDisabled ();

[src]

/**
   * Called to set matched information when URL matches SafeBrowsing list.
   * @param aList
   *        Name of the list that matched
   * @param aProvider
   *        Name of provider that matched
   * @param aFullHash
   *        String represents full hash that matched
   */

[noscript] void setClassifierMatchedInfo (in ACString aList, in ACString aProvider, in ACString aFullHash);

[src]

/**
   * Called to notify the HttpChannelChild that the resource being loaded
   * is on the tracking protection list.
   */

[noscript] void notifyTrackingResource ();

[src]

/**
   * Called to invoke deletion of the IPC protocol.
   */

void delete ();

Trait Implementations

impl XpCom for nsIParentRedirectingChannel
[src]

IID: nsIID = nsID(1053938312, 21284, 18158, [138, 152, 51, 172, 55, 209, 8, 11])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIParentRedirectingChannel
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.