Struct xpcom::interfaces::nsIContentHandler [] [src]

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

interface nsIContentHandler : nsISupports

Methods

impl nsIContentHandler
[src]

[src]

Cast this nsIContentHandler to one of its base interfaces.

impl nsIContentHandler
[src]

[src]

/**
   * 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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIContentHandler
[src]

IID: nsIID = nsID(1229168114, 46034, 17436, [191, 98, 134, 107, 218, 245, 111, 210])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIContentHandler
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.