Struct xpcom::interfaces::nsISHistoryInternal [] [src]

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

interface nsISHistoryInternal : nsISupports

Methods

impl nsISHistoryInternal
[src]

[src]

Cast this nsISHistoryInternal to one of its base interfaces.

impl nsISHistoryInternal
[src]

[src]

/**
   * Add a new Entry to the History List
   * @param aEntry - The entry to add
   * @param aPersist - If true this specifies that the entry should persist
   * in the list.  If false, this means that when new entries are added
   * this element will not appear in the session history list.
   */

void addEntry (in nsISHEntry aEntry, in boolean aPersist);

[src]

/**
   * Get the root transaction
   */

readonly attribute nsISHTransaction rootTransaction;

[src]

/**
   * Sets the toplevel docshell object to which this SHistory object belongs to.
   */

void setRootDocShell (in nsIDocShell rootDocShell);

[src]

/**
   * Update the index maintained by sessionHistory
   */

void updateIndex ();

[src]

/**
   * Replace the nsISHEntry at a particular index
   * @param aIndex - The index at which the entry should be replaced
   * @param aReplaceEntry - The replacement entry for the index.
   */

void replaceEntry (in long aIndex, in nsISHEntry aReplaceEntry);

[src]

/**
   * Notifies all registered session history listeners about an impending
   * reload.
   *
   * @param aReloadURI    The URI of the document to be reloaded.
   * @param aReloadFlags  Flags that indicate how the document is to be
   *                      refreshed. See constants on the nsIWebNavigation
   *                      interface.
   * @return              Whether the operation can proceed.
   */

boolean notifyOnHistoryReload (in nsIURI aReloadURI, in unsigned long aReloadFlags);

[src]

/**
    * Evict content viewers which don't lie in the "safe" range around aIndex.
    * In practice, this should leave us with no more than gHistoryMaxViewers
    * viewers associated with this SHistory object.
    *
    * Also make sure that the total number of content viewers in all windows is
    * not greater than our global max; if it is, evict viewers as appropriate.
    *
    * @param aIndex - The index around which the "safe" range is centered.  In
    *   general, if you just navigated the history, aIndex should be the index
    *   history was navigated to.
    */

void evictOutOfRangeContentViewers (in long aIndex);

[src]

/**
    * Evict the content viewer associated with a bfcache entry
    * that has timed out.
    */

void evictExpiredContentViewerForEntry (in nsIBFCacheEntry aEntry);

[src]

/**
    * Evict all the content viewers in this session history
    */

void evictAllContentViewers ();

[src]

/**
    * Add a BFCache entry to expiration tracker so it gets evicted on expiration.
    */

void addToExpirationTracker (in nsIBFCacheEntry aEntry);

[src]

/**
    * Remove a BFCache entry from expiration tracker.
    */

void removeFromExpirationTracker (in nsIBFCacheEntry aEntry);

[src]

/**
    * Remove dynamic entries found at given index.
    *
    * @param aIndex
    *        Index to remove dynamic entries from. It will be passed to
    *        RemoveEntries as aStartIndex.
    * @param aContainer (optional)
    *        The container to start looking for dynamic entries. Only the
    *        dynamic descendants of the container will be removed. If not given,
    *        all dynamic entries at the index will be removed.
    */

[noscript,notxpcom] void RemoveDynEntries (in long aIndex, in nsISHContainer aContainer);

[src]

/**
    * Similar to RemoveDynEntries, but instead of specifying an index, use the
    * given BFCacheEntry to find the index and remove dynamic entries from the
    * index.
    *
    * The method takes no effect if the bfcache entry is not or no longer hold
    * by the SHistory instance.
    *
    * @param aEntry
    *        The bfcache entry to look up for index to remove dynamic entries
    *        from.
    */

[noscript,notxpcom] void RemoveDynEntriesForBFCacheEntry (in nsIBFCacheEntry aEntry);

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

IID: nsIID = nsID(1039871828, 14221, 19772, [169, 249, 149, 221, 38, 115, 36, 140])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsISHistoryInternal
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.