Struct xpcom::interfaces::nsISHEntry [] [src]

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

interface nsISHEntry : nsISupports

Methods

impl nsISHEntry
[src]

[src]

Cast this nsISHEntry to one of its base interfaces.

impl nsISHEntry
[src]

[src]

/**
     * A readonly property that returns the URI
     * of the current entry. The object returned is
     * of type nsIURI
     */

readonly attribute nsIURI URI;

[src]

/**
     * A readonly property that returns the original URI of the current entry.
     * If an entry is the result of a redirect this attribute holds original
     * URI. The object returned is of type nsIURI
     */

attribute nsIURI originalURI;

[src]

/**
     * A readonly property that returns the original URI of the current entry.
     * If an entry is the result of a redirect this attribute holds original
     * URI. The object returned is of type nsIURI
     */

attribute nsIURI originalURI;

[src]

/**
     * URL as stored from nsILoadInfo.resultPrincipalURI.  See nsILoadInfo
     * for more details.
     */

attribute nsIURI resultPrincipalURI;

[src]

/**
     * URL as stored from nsILoadInfo.resultPrincipalURI.  See nsILoadInfo
     * for more details.
     */

attribute nsIURI resultPrincipalURI;

[src]

/**
     *  This flag remembers whether channel has LOAD_REPLACE set.
     */

attribute boolean loadReplace;

[src]

/**
     *  This flag remembers whether channel has LOAD_REPLACE set.
     */

attribute boolean loadReplace;

[src]

/**
     * A readonly property that returns the title
     * of the current entry.  The object returned
     * is a encoded string
     */

readonly attribute wstring title;

[src]

/**
     * A readonly property that returns a boolean
     * flag which indicates if the entry was created as a
     * result of a subframe navigation. This flag will be
     * 'false' when a frameset page is visited for
     * the first time. This flag will be 'true' for all
     * history entries created as a result of a subframe
     * navigation.
     */

readonly attribute boolean isSubFrame;

[src]

/** URI for the document */

void setURI (in nsIURI aURI);

[src]

/** Referrer URI */

attribute nsIURI referrerURI;

[src]

/** Referrer URI */

attribute nsIURI referrerURI;

[src]

/** Referrer policy, holding one of the values (REFERRER_POLICY_*)
     *  defined in nsIHttpChannel.
     */

attribute unsigned long referrerPolicy;

[src]

/** Referrer policy, holding one of the values (REFERRER_POLICY_*)
     *  defined in nsIHttpChannel.
     */

attribute unsigned long referrerPolicy;

[src]

/** Content viewer, for fast restoration of presentation */

attribute nsIContentViewer contentViewer;

[src]

/** Content viewer, for fast restoration of presentation */

attribute nsIContentViewer contentViewer;

[src]

/** Whether the content viewer is marked "sticky" */

attribute boolean sticky;

[src]

/** Whether the content viewer is marked "sticky" */

attribute boolean sticky;

[src]

/** Saved state of the global window object */

attribute nsISupports windowState;

[src]

/** Saved state of the global window object */

attribute nsISupports windowState;

[src]

/**
     * Saved child docshells corresponding to contentViewer.  The child shells
     * are restored as children of the parent docshell, in this order, when the
     * parent docshell restores a saved presentation.
     */
/** Append a child shell to the end of our list. */

void addChildShell (in nsIDocShellTreeItem shell);

[src]

/**
     * Get the child shell at |index|; returns null if |index| is out of bounds.
     */

nsIDocShellTreeItem childShellAt (in long index);

[src]

/**
     * Clear the child shell list.
     */

void clearChildShells ();

[src]

/** Saved refresh URI list for the content viewer */

attribute nsIMutableArray refreshURIList;

[src]

/** Saved refresh URI list for the content viewer */

attribute nsIMutableArray refreshURIList;

[src]

/**
     * Ensure that the cached presentation members are self-consistent.
     * If either |contentViewer| or |windowState| are null, then all of the
     * following members are cleared/reset:
     *  contentViewer, sticky, windowState, viewerBounds, childShells,
     *  refreshURIList.
     */

void syncPresentationState ();

[src]

/** Title for the document */

void setTitle (in AString aTitle);

[src]

/** Post Data for the document */

attribute nsIInputStream postData;

[src]

/** Post Data for the document */

attribute nsIInputStream postData;

[src]

/** LayoutHistoryState for scroll position and form values */

attribute nsILayoutHistoryState layoutHistoryState;

[src]

/** LayoutHistoryState for scroll position and form values */

attribute nsILayoutHistoryState layoutHistoryState;

[src]

/**
     * Initialises the LayoutHistoryState if it doesn't already exist
     * and returns a reference to it.
     */

nsILayoutHistoryState initLayoutHistoryState ();

[src]

/** parent of this entry */

attribute nsISHEntry parent;

[src]

/** parent of this entry */

attribute nsISHEntry parent;

[src]

/**
     * The loadType for this entry. This is typically loadHistory except
     * when reload is pressed, it has the appropriate reload flag
     */

attribute unsigned long loadType;

[src]

/**
     * The loadType for this entry. This is typically loadHistory except
     * when reload is pressed, it has the appropriate reload flag
     */

attribute unsigned long loadType;

[src]

/**
     * An ID to help identify this entry from others during
     * subframe navigation
     */

attribute unsigned long ID;

[src]

/**
     * An ID to help identify this entry from others during
     * subframe navigation
     */

attribute unsigned long ID;

[src]

/** attribute to set and get the cache key for the entry */

attribute nsISupports cacheKey;

[src]

/** attribute to set and get the cache key for the entry */

attribute nsISupports cacheKey;

[src]

/** attribute to indicate whether layoutHistoryState should be saved */

attribute boolean saveLayoutStateFlag;

[src]

/** attribute to indicate whether layoutHistoryState should be saved */

attribute boolean saveLayoutStateFlag;

[src]

/** attribute to indicate whether the page is already expired in cache */

attribute boolean expirationStatus;

[src]

/** attribute to indicate whether the page is already expired in cache */

attribute boolean expirationStatus;

[src]

/**
     * attribute to indicate the content-type of the document that this
     * is a session history entry for
     */

attribute ACString contentType;

[src]

/**
     * attribute to indicate the content-type of the document that this
     * is a session history entry for
     */

attribute ACString contentType;

[src]

/**
     * If we created this SHEntry via history.pushState or modified it via
     * history.replaceState, and if we changed the SHEntry's URI via the
     * push/replaceState call, and if the SHEntry's new URI differs from its
     * old URI by more than just the hash, then we set this field to true.
     *
     * Additionally, if this SHEntry was created by calling pushState from a
     * SHEntry whose URI was modified, this SHEntry's URIWasModified field is
     * true.
     *
     */

attribute boolean URIWasModified;

[src]

/**
     * If we created this SHEntry via history.pushState or modified it via
     * history.replaceState, and if we changed the SHEntry's URI via the
     * push/replaceState call, and if the SHEntry's new URI differs from its
     * old URI by more than just the hash, then we set this field to true.
     *
     * Additionally, if this SHEntry was created by calling pushState from a
     * SHEntry whose URI was modified, this SHEntry's URIWasModified field is
     * true.
     *
     */

attribute boolean URIWasModified;

[src]

/** Set/Get scrollers' positon in anchored pages */

void setScrollPosition (in long x, in long y);

[src]

void getScrollPosition (out long x, out long y);

[src]

/** Additional ways to create an entry */

[noscript] void create (in nsIURI URI, in AString title, in nsIInputStream inputStream, in nsILayoutHistoryState layoutHistoryState, in nsISupports cacheKey, in ACString contentType, in nsIPrincipal triggeringPrincipal, in nsIPrincipal principalToInherit, in nsIDRef docshellID, in boolean dynamicCreation);

[src]

nsISHEntry clone ();

[src]

/** Attribute that indicates if this entry is for a subframe navigation */

void setIsSubFrame (in boolean aFlag);

[src]

/** Return any content viewer present in or below this node in the
        nsSHEntry tree.  This will differ from contentViewer in the case
        where a child nsSHEntry has the content viewer for this tree. */

nsIContentViewer getAnyContentViewer (out nsISHEntry ownerEntry);

[src]

/**
     * Get the principal, if any, that was associated with the channel
     * that the document that was loaded to create this history entry
     * came from.
     */

attribute nsIPrincipal triggeringPrincipal;

[src]

/**
     * Get the principal, if any, that was associated with the channel
     * that the document that was loaded to create this history entry
     * came from.
     */

attribute nsIPrincipal triggeringPrincipal;

[src]

/**
     * Get the principal, if any, that is used when the inherit flag
     * is set.
     */

attribute nsIPrincipal principalToInherit;

[src]

/**
     * Get the principal, if any, that is used when the inherit flag
     * is set.
     */

attribute nsIPrincipal principalToInherit;

[src]

/**
     * Get/set data associated with this history state via a pushState() call,
     * serialized using structured clone.
     **/

attribute nsIStructuredCloneContainer stateData;

[src]

/**
     * Get/set data associated with this history state via a pushState() call,
     * serialized using structured clone.
     **/

attribute nsIStructuredCloneContainer stateData;

[src]

/** Returns true if this shistory entry is storing a detached editor. */

[noscript,notxpcom] boolean hasDetachedEditor ();

[src]

/**
     * Returns true if the related docshell was added because of
     * dynamic addition of an iframe/frame.
     */

boolean isDynamicallyAdded ();

[src]

/**
     * Returns true if any of the child entries returns true
     * when isDynamicallyAdded is called on it.
     */

boolean hasDynamicallyAddedChild ();

[src]

/**
     * The history ID of the docshell.
     */

attribute nsIDPtr docshellID;

[src]

/**
     * The history ID of the docshell.
     */

attribute nsIDPtr docshellID;

[src]

/**
     * Helper method for accessing this value from C++
     */

[noscript,notxpcom] nsID DocshellID ();

[src]

readonly attribute nsIBFCacheEntry BFCacheEntry;

[src]

/**
     * Does this SHEntry point to the given BFCache entry?  If so, evicting
     * the BFCache entry will evict the SHEntry, since the two entries
     * correspond to the same document.
     */

[noscript,notxpcom] boolean hasBFCacheEntry (in nsIBFCacheEntry aEntry);

[src]

/**
     * Adopt aEntry's BFCacheEntry, so now both this and aEntry point to
     * aEntry's BFCacheEntry.
     */

void adoptBFCacheEntry (in nsISHEntry aEntry);

[src]

/**
     * Create a new BFCache entry and drop our reference to our old one.  This
     * call unlinks this SHEntry from any other SHEntries for its document.
     */

void abandonBFCacheEntry ();

[src]

/**
     * Does this SHEntry correspond to the same document as aEntry?  This is
     * true iff the two SHEntries have the same BFCacheEntry.  So in
     * particular, sharesDocumentWith(aEntry) is guaranteed to return true if
     * it's preceeded by a call to adoptBFCacheEntry(aEntry).
     */

boolean sharesDocumentWith (in nsISHEntry aEntry);

[src]

/**
     * True if this SHEntry corresponds to a document created by a srcdoc iframe.
     * Set when a value is assigned to  srcdocData.
     */

readonly attribute boolean isSrcdocEntry;

[src]

/**
     * Contents of the srcdoc attribute in a srcdoc iframe to be loaded instead
     * of the URI.  Similar to a Data URI, this information is needed to
     * recreate the document at a later stage.
     * Setting this sets isSrcdocEntry to true
     */

attribute AString srcdocData;

[src]

/**
     * Contents of the srcdoc attribute in a srcdoc iframe to be loaded instead
     * of the URI.  Similar to a Data URI, this information is needed to
     * recreate the document at a later stage.
     * Setting this sets isSrcdocEntry to true
     */

attribute AString srcdocData;

[src]

/**
     * When isSrcdocEntry is true, this contains the baseURI of the srcdoc
     * document for use in situations where it cannot otherwise be determined,
     * for example with view-source.
     */

attribute nsIURI baseURI;

[src]

/**
     * When isSrcdocEntry is true, this contains the baseURI of the srcdoc
     * document for use in situations where it cannot otherwise be determined,
     * for example with view-source.
     */

attribute nsIURI baseURI;

[src]

/**
     * Sets/gets the current scroll restoration state,
     * if true == "manual", false == "auto".
     */

attribute boolean scrollRestorationIsManual;

[src]

/**
     * Sets/gets the current scroll restoration state,
     * if true == "manual", false == "auto".
     */

attribute boolean scrollRestorationIsManual;

[src]

/**
     * Flag to indicate that the history entry was originally loaded in the
     * current process. This flag does not survive a browser process switch.
     */

readonly attribute boolean loadedInThisProcess;

[src]

/**
     * The session history it belongs to. It's usually only set on root entries.
     * SHEntry is strictly bound to the SHistory it belongs to; it should not be
     * changed once set to a non-null value.
     */

[noscript] attribute nsISHistory SHistory;

[src]

/**
     * The session history it belongs to. It's usually only set on root entries.
     * SHEntry is strictly bound to the SHistory it belongs to; it should not be
     * changed once set to a non-null value.
     */

[noscript] attribute nsISHistory SHistory;

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

IID: nsIID = nsID(229451448, 41561, 17095, [147, 241, 47, 167, 252, 7, 110, 69])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsISHEntry
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.