Struct xpcom::interfaces::nsIParentChannel
[−]
[src]
#[repr(C)]pub struct nsIParentChannel { /* fields omitted */ }
interface nsIParentChannel : nsIStreamListener
/**
* Implemented by chrome side of IPC protocols.
*/
Methods
impl nsIParentChannel
[src]
pub fn coerce<T: nsIParentChannelCoerce>(&self) -> &T
[src]
Cast this nsIParentChannel
to one of its base interfaces.
impl nsIParentChannel
[src]
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 ();
Methods from Deref<Target = nsIStreamListener>
pub fn coerce<T: nsIStreamListenerCoerce>(&self) -> &T
[src]
Cast this nsIStreamListener
to one of its base interfaces.
pub unsafe fn OnDataAvailable(
&self,
aRequest: *const nsIRequest,
aContext: *const nsISupports,
aInputStream: *const nsIInputStream,
aOffset: uint64_t,
aCount: uint32_t
) -> nsresult
[src]
&self,
aRequest: *const nsIRequest,
aContext: *const nsISupports,
aInputStream: *const nsIInputStream,
aOffset: uint64_t,
aCount: uint32_t
) -> nsresult
/**
* Called when the next chunk of data (corresponding to the request) may
* be read without blocking the calling thread. The onDataAvailable impl
* must read exactly |aCount| bytes of data before returning.
*
* @param aRequest request corresponding to the source of the data
* @param aContext user defined context
* @param aInputStream input stream containing the data chunk
* @param aOffset
* Number of bytes that were sent in previous onDataAvailable calls
* for this request. In other words, the sum of all previous count
* parameters.
* @param aCount number of bytes available in the stream
*
* NOTE: The aInputStream parameter must implement readSegments.
*
* An exception thrown from onDataAvailable has the side-effect of
* causing the request to be canceled.
*/
void onDataAvailable (in nsIRequest aRequest, in nsISupports aContext, in nsIInputStream aInputStream, in unsigned long long aOffset, in unsigned long aCount);
Trait Implementations
impl XpCom for nsIParentChannel
[src]
const IID: nsIID
IID: nsIID = nsID(3774629889, 24624, 18003, [165, 159, 31, 178, 130, 189, 26, 4])
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 nsIParentChannel
[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 nsIParentChannel
[src]
type Target = nsIStreamListener
The resulting type after dereferencing.
fn deref(&self) -> &nsIStreamListener
[src]
Dereferences the value.