Struct xpcom::interfaces::nsIWebContentHandlerRegistrar [] [src]

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

interface nsIWebContentHandlerRegistrar : nsISupports

/**
 * nsIWebContentHandlerRegistrar
 *
 * Applications wishing to use web content handlers need to implement this
 * interface. Typically they will prompt the user to confirm adding an entry
 * to the local list.
 *
 * The component must have the contract id defined below so that nsNavigator
 * can invoke it.
 */

Methods

impl nsIWebContentHandlerRegistrar
[src]

[src]

Cast this nsIWebContentHandlerRegistrar to one of its base interfaces.

impl nsIWebContentHandlerRegistrar
[src]

[src]

/**
   * See documentation in Navigator.webidl
   * The additional contentWindow param for both methods represents the dom
   * content window from which the method has been called.
   */

void registerContentHandler (in DOMString mimeType, in DOMString uri, in DOMString title, in nsISupports windowOrBrowser);

[src]

void registerProtocolHandler (in DOMString protocol, in DOMString uri, in DOMString title, in nsISupports windowOrBrowser);

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

IID: nsIID = nsID(1705245437, 3658, 19206, [139, 78, 106, 97, 29, 166, 61, 152])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIWebContentHandlerRegistrar
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.