Struct xpcom::interfaces::nsIGroupedSHistory [] [src]

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

interface nsIGroupedSHistory : nsISupports

/**
 * nsIGroupedSHistory represent a combined session history across multiple
 * root docshells (usually browser tabs). The participating nsISHistory can
 * either be in chrome process or in content process, but nsIGroupedSHistory
 * itself lives in chrome process. The communication is proxyed through
 * nsIPartialSHistory.
 */

Methods

impl nsIGroupedSHistory
[src]

[src]

Cast this nsIGroupedSHistory to one of its base interfaces.

impl nsIGroupedSHistory
[src]

[src]

[infallible] readonly attribute unsigned long count;

[src]

/**
   * The currently active frameloader controlled by this nsIGroupedSHistory.
   */

readonly attribute nsIFrameLoader activeFrameLoader;

[src]

/**
   * Remove all partial histories after currently active one (if any) and then
   * append the given partial session history to the end of the list.
   */

void appendPartialSHistory (in nsIPartialSHistory aPartialHistory);

[src]

/**
   * Notify the grouped session history that the active partial session history
   * has been modified.
   *
   * @param aPartialHistory The partial history which was updated
   * @param aTruncate If this parameter is true, all partial session histories
   *                  after this one will be removed.
   */

void handleSHistoryUpdate (in nsIPartialSHistory aPartialHistory, in boolean aTruncate);

[src]

/**
   * Find the proper partial session history and navigate to the entry
   * corresponding to the given global index. Note it doesn't swap frameloaders,
   * but rather return the target loader for the caller to swap.
   *
   * This function may throw NS_ERROR_NOT_AVAILABLE if the frameloader to swap
   * to is dead.
   *
   * @param  aGlobalIndex
   *         The global index to navigate to.
   * @return The frameloader which needs to be swapped in, or null if no
   *         frameloader needs to be swapped.
   */

nsIFrameLoader gotoIndex (in unsigned long aGlobalIndex);

[src]

/**
   * Close the FrameLoaderOwners of the inactive PartialSHistories in this GlobalSHistory.
   * This does not remove the PartialSHistories from the GroupedSHistory.
   */

void closeInactiveFrameLoaderOwners ();

[src]

/**
   * Add a partialSHistory as a "prerendering" partialSHistory. This
   * partialSHistory's tab will have its lifetime managed by the
   * GroupedSHistory, and will be closed when closeInactiveFrameLoaderOwners is
   * called, or whenever a SHistory update is received.
   */

void addPrerenderingPartialSHistory (in nsIPartialSHistory aPrerendering, in long aId);

[src]

/**
   * Cancel the prerendering with the given ID.
   */

void cancelPrerendering (in long aId);

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

IID: nsIID = nsID(2168342925, 29608, 17562, [190, 9, 97, 135, 230, 44, 83, 82])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIGroupedSHistory
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.