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]
pub fn coerce<T: nsIGroupedSHistoryCoerce>(&self) -> &T
[src]
Cast this nsIGroupedSHistory
to one of its base interfaces.
impl nsIGroupedSHistory
[src]
pub unsafe fn GetCount(&self) -> uint32_t
[src]
[infallible] readonly attribute unsigned long count;
pub unsafe fn GetActiveFrameLoader(
&self,
aActiveFrameLoader: *mut *const nsIFrameLoader
) -> nsresult
[src]
&self,
aActiveFrameLoader: *mut *const nsIFrameLoader
) -> nsresult
/**
* The currently active frameloader controlled by this nsIGroupedSHistory.
*/
readonly attribute nsIFrameLoader activeFrameLoader;
pub unsafe fn AppendPartialSHistory(
&self,
aPartialHistory: *const nsIPartialSHistory
) -> nsresult
[src]
&self,
aPartialHistory: *const nsIPartialSHistory
) -> nsresult
/**
* 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);
pub unsafe fn HandleSHistoryUpdate(
&self,
aPartialHistory: *const nsIPartialSHistory,
aTruncate: bool
) -> nsresult
[src]
&self,
aPartialHistory: *const nsIPartialSHistory,
aTruncate: bool
) -> nsresult
/**
* 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);
pub unsafe fn GotoIndex(
&self,
aGlobalIndex: uint32_t,
_retval: *mut *const nsIFrameLoader
) -> nsresult
[src]
&self,
aGlobalIndex: uint32_t,
_retval: *mut *const nsIFrameLoader
) -> nsresult
/**
* 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);
pub unsafe fn CloseInactiveFrameLoaderOwners(&self) -> nsresult
[src]
/**
* Close the FrameLoaderOwners of the inactive PartialSHistories in this GlobalSHistory.
* This does not remove the PartialSHistories from the GroupedSHistory.
*/
void closeInactiveFrameLoaderOwners ();
pub unsafe fn AddPrerenderingPartialSHistory(
&self,
aPrerendering: *const nsIPartialSHistory,
aId: int32_t
) -> nsresult
[src]
&self,
aPrerendering: *const nsIPartialSHistory,
aId: int32_t
) -> nsresult
/**
* 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);
pub unsafe fn CancelPrerendering(&self, aId: int32_t) -> nsresult
[src]
/**
* Cancel the prerendering with the given ID.
*/
void cancelPrerendering (in long aId);
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 nsIGroupedSHistory
[src]
const IID: nsIID
IID: nsIID = nsID(2168342925, 29608, 17562, [190, 9, 97, 135, 230, 44, 83, 82])
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 nsIGroupedSHistory
[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 nsIGroupedSHistory
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.