Struct xpcom::interfaces::nsISessionStartup [] [src]

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

interface nsISessionStartup : nsISupports

/**
 * nsISessionStore keeps track of the current browsing state - i.e.
 * tab history, cookies, scroll state, form data, and window features
 * - and allows to restore everything into one window.
 */

Methods

impl nsISessionStartup
[src]

[src]

Cast this nsISessionStartup to one of its base interfaces.

impl nsISessionStartup
[src]

NO_SESSION: i64 = 0
/**
   * What type of session we're restoring.
   * NO_SESSION       There is no data available from the previous session
   * RECOVER_SESSION  The last session crashed. It will either be restored or
   *                  about:sessionrestore will be shown.
   * RESUME_SESSION   The previous session should be restored at startup
   * DEFER_SESSION    The previous session is fine, but it shouldn't be restored
   *                  without explicit action (with the exception of pinned tabs)
   */

RECOVER_SESSION: i64 = 1

RESUME_SESSION: i64 = 2

DEFER_SESSION: i64 = 3

[src]

/**
   * Determines whether there is a pending session restore. Should only be
   * called after initialization has completed.
   */

boolean doRestore ();

[src]

/**
   * Determines whether automatic session restoration is enabled for this
   * launch of the browser. This does not include crash restoration, and will
   * return false if restoration will only be caused by a crash.
   */

boolean isAutomaticRestoreEnabled ();

[src]

readonly attribute unsigned long sessionType;

[src]

readonly attribute bool previousSessionCrashed;

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

IID: nsIID = nsID(2470877156, 14343, 18424, [182, 201, 108, 170, 141, 131, 204, 209])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsISessionStartup
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.