Struct xpcom::interfaces::nsILoadContext [] [src]

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

interface nsILoadContext : nsISupports

/**
 * An nsILoadContext represents the context of a load.  This interface
 * can be queried for various information about where the load is
 * happening.
 */

Methods

impl nsILoadContext
[src]

[src]

Cast this nsILoadContext to one of its base interfaces.

impl nsILoadContext
[src]

[src]

/**
   * associatedWindow is the window with which the load is associated, if any.
   * Note that the load may be triggered by a document which is different from
   * the document in associatedWindow, and in fact the source of the load need
   * not be same-origin with the document in associatedWindow.  This attribute
   * may be null if there is no associated window.
   */

readonly attribute mozIDOMWindowProxy associatedWindow;

[src]

/**
   * topWindow is the top window which is of same type as associatedWindow.
   * This is equivalent to associatedWindow.top, but is provided here as a
   * convenience.  All the same caveats as associatedWindow of apply, of
   * course.  This attribute may be null if there is no associated window.
   */

readonly attribute mozIDOMWindowProxy topWindow;

[src]

/**
   * topFrameElement is the <iframe>, <frame>, or <browser> element which
   * contains the topWindow with which the load is associated.
   *
   * Note that we may have a topFrameElement even when we don't have an
   * associatedWindow, if the topFrameElement's content lives out of process.
   * topFrameElement is available in single-process and multiprocess contexts.
   * Note that topFrameElement may be in chrome even when the nsILoadContext is
   * associated with content.
   */

readonly attribute nsIDOMElement topFrameElement;

[src]

/**
   * If this LoadContext corresponds to a nested remote iframe, we don't have
   * access to the topFrameElement.  Instead, we must use this id to send
   * messages. A return value of 0 signifies that this load context is not for
   * a nested frame.
   */

readonly attribute unsigned long long nestedFrameId;

[src]

/**
   * True if the load context is content (as opposed to chrome).  This is
   * determined based on the type of window the load is performed in, NOT based
   * on any URIs that might be around.
   */

readonly attribute boolean isContent;

[src]

attribute boolean usePrivateBrowsing;

[src]

attribute boolean usePrivateBrowsing;

[src]

/**
   * Attribute that determines if remote (out-of-process) tabs should be used.
   */

readonly attribute boolean useRemoteTabs;

[src]

attribute boolean useTrackingProtection;

[src]

attribute boolean useTrackingProtection;

[src]

/**
   * Set the private browsing state of the load context, meant to be used internally.
   */

[noscript] void SetPrivateBrowsing (in boolean aInPrivateBrowsing);

[src]

/**
   * Set the remote tabs state of the load context, meant to be used internally.
   */

[noscript] void SetRemoteTabs (in boolean aUseRemoteTabs);

[src]

/**
   * Returns true iff the load is occurring inside an isolated mozbrowser
   * element. <xul:browser> is not considered to be a mozbrowser element.
   * <iframe mozbrowser noisolation> does not count as isolated since
   * isolation is disabled.  Isolation can only be disabled if the
   * containing document is chrome.
   */

readonly attribute boolean isInIsolatedMozBrowserElement;

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

IID: nsIID = nsID(672376739, 53380, 19712, [172, 208, 247, 102, 32, 49, 92, 2])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsILoadContext
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.