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]
pub fn coerce<T: nsIParentRedirectingChannelCoerce>(&self) -> &T
[src]
Cast this nsIParentRedirectingChannel
to one of its base interfaces.
impl nsIParentRedirectingChannel
[src]
pub unsafe fn StartRedirect(
&self,
newChannelId: uint32_t,
newChannel: *const nsIChannel,
redirectFlags: uint32_t,
callback: *const nsIAsyncVerifyRedirectCallback
) -> nsresult
[src]
&self,
newChannelId: uint32_t,
newChannel: *const nsIChannel,
redirectFlags: uint32_t,
callback: *const nsIAsyncVerifyRedirectCallback
) -> nsresult
/**
* 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);
pub unsafe fn ContinueVerification(
&self,
callback: *const nsIAsyncVerifyRedirectReadyCallback
) -> nsresult
[src]
&self,
callback: *const nsIAsyncVerifyRedirectReadyCallback
) -> nsresult
/**
* 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);
pub unsafe fn CompleteRedirect(&self, succeeded: bool) -> nsresult
[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>
pub fn coerce<T: nsIParentChannelCoerce>(&self) -> &T
[src]
Cast this nsIParentChannel
to one of its base interfaces.
pub unsafe fn NotifyTrackingProtectionDisabled(&self) -> nsresult
[src]
/**
* Called to notify the HttpChannelChild that tracking protection was
* disabled for this load.
*/
[noscript] void notifyTrackingProtectionDisabled ();
pub unsafe fn SetClassifierMatchedInfo(
&self,
aList: &nsACString,
aProvider: &nsACString,
aFullHash: &nsACString
) -> nsresult
[src]
&self,
aList: &nsACString,
aProvider: &nsACString,
aFullHash: &nsACString
) -> nsresult
/**
* 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);
pub unsafe fn NotifyTrackingResource(&self) -> nsresult
[src]
/**
* Called to notify the HttpChannelChild that the resource being loaded
* is on the tracking protection list.
*/
[noscript] void notifyTrackingResource ();
pub unsafe fn Delete(&self) -> nsresult
[src]
/**
* Called to invoke deletion of the IPC protocol.
*/
void delete ();
Trait Implementations
impl XpCom for nsIParentRedirectingChannel
[src]
const IID: nsIID
IID: nsIID = nsID(1053938312, 21284, 18158, [138, 152, 51, 172, 55, 209, 8, 11])
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 nsIParentRedirectingChannel
[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 nsIParentRedirectingChannel
[src]
type Target = nsIParentChannel
The resulting type after dereferencing.
fn deref(&self) -> &nsIParentChannel
[src]
Dereferences the value.