nsISHistoryInternal
| IID: | 9c47c121-1c6e-4d8f-b904-3ac968116e88 |
| Inherits From: | nsISupports |
This interface is implemented by the following components:
Properties
readonly nsISHistoryListener listener
Get handle to the history listener
nsIDocShell rootDocShell
The toplevel docshell object to which this SHistory object belongs to.
readonly nsISHTransaction rootTransaction
Get the root transaction
Methods
void addEntry ( nsISHEntry entry , PRBool persist )
void evictContentViewers ( PRInt32 previousIndex , PRInt32 index )
void evictExpiredContentViewerForEntry ( nsISHEntry entry )
void replaceEntry ( PRInt32 index , nsISHEntry replaceEntry )
void updateIndex ( )
void addEntry ( nsISHEntry entry , PRBool persist )
Add a new Entry to the History List
- Arguments:
- entry: - The entry to add
- persist: - 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 evictContentViewers ( PRInt32 previousIndex , PRInt32 index )
Evict content viewers until the number of content viewers per tab is no more than gHistoryMaxViewers. Also, count total number of content viewers globally and evict one if we are over our total max. This is always called in Show(), after we destroy the previous viewer.
- Arguments:
- previousIndex
- index
void evictExpiredContentViewerForEntry ( nsISHEntry entry )
Evict the content viewer associated with a session history entry that has timed out.
- Arguments:
- entry
void replaceEntry ( PRInt32 index , nsISHEntry replaceEntry )
Replace the nsISHEntry at a particular index
- Arguments:
- index: - The index at which the entry shoud be replaced
- replaceEntry: - The replacement entry for the index.
Reference documentation is generated from Mozilla's source.
