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]
pub fn coerce<T: nsISessionStartupCoerce>(&self) -> &T
[src]
Cast this nsISessionStartup
to one of its base interfaces.
impl nsISessionStartup
[src]
pub const NO_SESSION: i64
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)
*/
pub const RECOVER_SESSION: i64
RECOVER_SESSION: i64 = 1
pub const RESUME_SESSION: i64
RESUME_SESSION: i64 = 2
pub const DEFER_SESSION: i64
DEFER_SESSION: i64 = 3
pub unsafe fn DoRestore(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Determines whether there is a pending session restore. Should only be
* called after initialization has completed.
*/
boolean doRestore ();
pub unsafe fn IsAutomaticRestoreEnabled(&self, _retval: *mut bool) -> nsresult
[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 ();
pub unsafe fn GetSessionType(&self, aSessionType: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long sessionType;
pub unsafe fn GetPreviousSessionCrashed(
&self,
aPreviousSessionCrashed: *mut bool
) -> nsresult
[src]
&self,
aPreviousSessionCrashed: *mut bool
) -> nsresult
readonly attribute bool previousSessionCrashed;
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsISessionStartup
[src]
const IID: nsIID
IID: nsIID = nsID(2470877156, 14343, 18424, [182, 201, 108, 170, 141, 131, 204, 209])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsISessionStartup
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.