Struct xpcom::interfaces::nsIDocShellLoadInfo [] [src]

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

interface nsIDocShellLoadInfo : nsISupports

Methods

impl nsIDocShellLoadInfo
[src]

[src]

Cast this nsIDocShellLoadInfo to one of its base interfaces.

impl nsIDocShellLoadInfo
[src]

loadNormal: i64 = 0

loadNormalReplace: i64 = 1

loadHistory: i64 = 2

loadReloadNormal: i64 = 3

loadReloadBypassCache: i64 = 4

loadReloadBypassProxy: i64 = 5

loadReloadBypassProxyAndCache: i64 = 6
loadLink: i64 = 7

loadRefresh: i64 = 8

loadReloadCharsetChange: i64 = 9

loadBypassHistory: i64 = 10

loadStopContent: i64 = 11

loadStopContentAndReplace: i64 = 12

loadNormalExternal: i64 = 13

loadNormalBypassCache: i64 = 14

loadNormalBypassProxy: i64 = 15

loadNormalBypassProxyAndCache: i64 = 16

loadPushState: i64 = 17

loadReplaceBypassCache: i64 = 18

loadReloadMixedContent: i64 = 19

loadNormalAllowMixedContent: i64 = 20

loadReloadCharsetChangeBypassCache: i64 = 21

loadReloadCharsetChangeBypassProxyAndCache: i64 = 22

[src]

/** This is the referrer for the load. */

attribute nsIURI referrer;

[src]

/** This is the referrer for the load. */

attribute nsIURI referrer;

[src]

/**
     * The originalURI to be passed to nsIDocShell.internalLoad. May be null.
     */

attribute nsIURI originalURI;

[src]

/**
     * The originalURI to be passed to nsIDocShell.internalLoad. May be null.
     */

attribute nsIURI originalURI;

[src]

/**
     * Result principal URL from nsILoadInfo, may be null.  Valid only if
     * the "IsSome" part is true (has the same meaning as isSome()
     * on mozilla::Maybe.)
     *
     * In C++ please use Get/SetMaybeResultPrincipalURI helper functions.
     */

attribute nsIURI resultPrincipalURI;

[src]

/**
     * Result principal URL from nsILoadInfo, may be null.  Valid only if
     * the "IsSome" part is true (has the same meaning as isSome()
     * on mozilla::Maybe.)
     *
     * In C++ please use Get/SetMaybeResultPrincipalURI helper functions.
     */

attribute nsIURI resultPrincipalURI;

[src]

attribute boolean resultPrincipalURIIsSome;

[src]

attribute boolean resultPrincipalURIIsSome;

[src]

/**
     * loadReplace flag to be passed to nsIDocShell.internalLoad.
     */

attribute boolean loadReplace;

[src]

/**
     * loadReplace flag to be passed to nsIDocShell.internalLoad.
     */

attribute boolean loadReplace;

[src]

/** The principal of the load, that is, the entity responsible for
     *  causing the load to occur. In most cases the referrer and
     *  the triggeringPrincipal's URI will be identical.
     */

attribute nsIPrincipal triggeringPrincipal;

[src]

/** The principal of the load, that is, the entity responsible for
     *  causing the load to occur. In most cases the referrer and
     *  the triggeringPrincipal's URI will be identical.
     */

attribute nsIPrincipal triggeringPrincipal;

[src]

/** If this attribute is true and no triggeringPrincipal is specified,
     * copy the principal from the referring document.
     */

attribute boolean inheritPrincipal;

[src]

/** If this attribute is true and no triggeringPrincipal is specified,
     * copy the principal from the referring document.
     */

attribute boolean inheritPrincipal;

[src]

/** If this attribute is true only ever use the principal specified
     *  by the triggeringPrincipal and inheritPrincipal attributes.
     *  If there are security reasons for why this is unsafe, such
     *  as trying to use a systemprincipal as the triggeringPrincipal
     *  for a content docshell the load fails.
     */

attribute boolean principalIsExplicit;

[src]

/** If this attribute is true only ever use the principal specified
     *  by the triggeringPrincipal and inheritPrincipal attributes.
     *  If there are security reasons for why this is unsafe, such
     *  as trying to use a systemprincipal as the triggeringPrincipal
     *  for a content docshell the load fails.
     */

attribute boolean principalIsExplicit;

[src]

/**
     * If this attribute is true, then a top-level navigation
     * to a data URI will be allowed.
     */

attribute boolean forceAllowDataURI;

[src]

/**
     * If this attribute is true, then a top-level navigation
     * to a data URI will be allowed.
     */

attribute boolean forceAllowDataURI;

[src]

/** Contains a load type as specified by the load* constants */

attribute nsDocShellInfoLoadType loadType;

[src]

/** Contains a load type as specified by the load* constants */

attribute nsDocShellInfoLoadType loadType;

[src]

/** SHEntry for this page */

attribute nsISHEntry SHEntry;

[src]

/** SHEntry for this page */

attribute nsISHEntry SHEntry;

[src]

/** Target for load, like _content, _blank etc. */

attribute wstring target;

[src]

/** Target for load, like _content, _blank etc. */

attribute wstring target;

[src]

/** Post data */

attribute nsIInputStream postDataStream;

[src]

/** Post data */

attribute nsIInputStream postDataStream;

[src]

/** Additional headers */

attribute nsIInputStream headersStream;

[src]

/** Additional headers */

attribute nsIInputStream headersStream;

[src]

/** True if the referrer should be sent, false if it shouldn't be
     *  sent, even if it's available. This attribute defaults to true.
     */

attribute boolean sendReferrer;

[src]

/** True if the referrer should be sent, false if it shouldn't be
     *  sent, even if it's available. This attribute defaults to true.
     */

attribute boolean sendReferrer;

[src]

/** Referrer policy for the load. This attribute holds one of
     *  the values (REFERRER_POLICY_*) defined in nsIHttpChannel.
     */

attribute nsDocShellInfoReferrerPolicy referrerPolicy;

[src]

/** Referrer policy for the load. This attribute holds one of
     *  the values (REFERRER_POLICY_*) defined in nsIHttpChannel.
     */

attribute nsDocShellInfoReferrerPolicy referrerPolicy;

[src]

/** True if the docshell has been created to load an iframe where the
     * srcdoc attribute has been set.  Set when srcdocData is specified.
     */

readonly attribute boolean isSrcdocLoad;

[src]

/** When set, the load will be interpreted as a srcdoc load, where contents
     * of this string will be loaded instead of the URI.  Setting srcdocData
     * sets isSrcdocLoad to true
     */

attribute AString srcdocData;

[src]

/** When set, the load will be interpreted as a srcdoc load, where contents
     * of this string will be loaded instead of the URI.  Setting srcdocData
     * sets isSrcdocLoad to true
     */

attribute AString srcdocData;

[src]

/** When set, this is the Source Browsing Context for the navigation. */

attribute nsIDocShell sourceDocShell;

[src]

/** When set, this is the Source Browsing Context for the navigation. */

attribute nsIDocShell sourceDocShell;

[src]

/**
     * Used for srcdoc loads to give view-source knowledge of the load's base
     * URI as this information isn't embedded in the load's URI.
     */

attribute nsIURI baseURI;

[src]

/**
     * Used for srcdoc loads to give view-source knowledge of the load's base
     * URI as this information isn't embedded in the load's URI.
     */

attribute nsIURI baseURI;

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

IID: nsIID = nsID(3881242202, 61910, 17709, [180, 248, 179, 95, 220, 99, 170, 3])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDocShellLoadInfo
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.