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]
pub fn coerce<T: nsINetworkInterceptControllerCoerce>(&self) -> &T
[src]
Cast this nsINetworkInterceptController
to one of its base interfaces.
impl nsINetworkInterceptController
[src]
pub unsafe fn ShouldPrepareForIntercept(
&self,
aURI: *const nsIURI,
aIsNonSubresourceRequest: bool,
_retval: *mut bool
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aIsNonSubresourceRequest: bool,
_retval: *mut bool
) -> nsresult
/**
* 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);
pub unsafe fn ChannelIntercepted(
&self,
aChannel: *const nsIInterceptedChannel
) -> nsresult
[src]
&self,
aChannel: *const nsIInterceptedChannel
) -> nsresult
/**
* 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>
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 nsINetworkInterceptController
[src]
const IID: nsIID
IID: nsIID = nsID(1892857086, 42322, 18637, [141, 147, 29, 132, 55, 165, 107, 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 nsINetworkInterceptController
[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 nsINetworkInterceptController
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.