Struct xpcom::interfaces::nsIContentHandler
[−]
[src]
#[repr(C)]pub struct nsIContentHandler { /* fields omitted */ }
interface nsIContentHandler : nsISupports
Methods
impl nsIContentHandler
[src]
pub fn coerce<T: nsIContentHandlerCoerce>(&self) -> &T
[src]
Cast this nsIContentHandler
to one of its base interfaces.
impl nsIContentHandler
[src]
pub unsafe fn HandleContent(
&self,
aContentType: *const c_char,
aWindowContext: *const nsIInterfaceRequestor,
aRequest: *const nsIRequest
) -> nsresult
[src]
&self,
aContentType: *const c_char,
aWindowContext: *const nsIInterfaceRequestor,
aRequest: *const nsIRequest
) -> nsresult
/**
* Tells the content handler to take over handling the content. If this
* function succeeds, the URI Loader will leave this request alone, ignoring
* progress notifications. Failure of this method will cause the request to be
* cancelled, unless the error code is NS_ERROR_WONT_HANDLE_CONTENT (see
* below).
*
* @param aWindowContext
* Window context, used to get things like the current nsIDOMWindow
* for this request. May be null.
* @param aContentType
* The content type of aRequest
* @param aRequest
* A request whose content type is already known.
*
* @throw NS_ERROR_WONT_HANDLE_CONTENT Indicates that this handler does not
* want to handle this content. A different way for handling this
* content should be tried.
*/
void handleContent (in string aContentType, in nsIInterfaceRequestor aWindowContext, in nsIRequest aRequest);
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 nsIContentHandler
[src]
const IID: nsIID
IID: nsIID = nsID(1229168114, 46034, 17436, [191, 98, 134, 107, 218, 245, 111, 210])
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 nsIContentHandler
[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 nsIContentHandler
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.