Struct xpcom::interfaces::nsIBrowserGlue [] [src]

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

interface nsIBrowserGlue : nsISupports

/**
 * nsIBrowserGlue is a dirty and rather fluid interface to host shared utility
 * methods used by browser UI code, but which are not local to a browser window.
 * The component implementing this interface is meant to be a singleton
 * (service) and should progressively replace some of the shared "glue" code
 * scattered in browser/base/content (e.g. bits of utilOverlay.js,
 * contentAreaUtils.js, globalOverlay.js, browser.js), avoiding dynamic
 * inclusion and initialization of a ton of JS code for *each* window.
 * Dued to its nature and origin, this interface won't probably be the most
 * elegant or stable in the mozilla codebase, but its aim is rather pragmatic:
 * 1) reducing the performance overhead which affects browser window load;
 * 2) allow global hooks (e.g. startup and shutdown observers) which survive
 * browser windows to accomplish browser-related activities, such as shutdown
 * sanitization (see bug #284086)
 *
 */

Methods

impl nsIBrowserGlue
[src]

[src]

Cast this nsIBrowserGlue to one of its base interfaces.

impl nsIBrowserGlue
[src]

[src]

/**
   * Deletes privacy sensitive data according to user preferences
   *
   * @param aParentWindow an optionally null window which is the parent of the
   *        sanitization dialog
   *
   */

void sanitize (in nsIDOMWindow aParentWindow);

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

IID: nsIID = nsID(2967978326, 53260, 17925, [167, 125, 39, 199, 65, 143, 35, 174])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIBrowserGlue
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.