@mozilla.org/browser/shistory;1
This component implements the following interfaces:
Constants
Properties
readonly PRBool nsIWebNavigation.canGoBack
Indicates if the object can go back. If true this indicates that there is back session history available for navigation.
readonly PRBool nsIWebNavigation.canGoForward
Indicates if the object can go forward. If true this indicates that there is forward session history available for navigation
readonly PRInt32 nsISHistory.count
A readonly property of the interface that returns the number of toplevel documents currently available in session history.
readonly nsIURI nsIWebNavigation.currentURI
The currently loaded URI or null.
readonly nsIDOMDocument nsIWebNavigation.document
Retrieves the current DOM document for the frame, or lazily creates a blank document if there is none. This attribute never returns null except for unexpected error situations.
readonly PRInt32 nsISHistory.index
A readonly property of the interface that returns the index of the current document in session history.
readonly nsISHistoryListener nsISHistoryInternal.listener
Get handle to the history listener
PRInt32 nsISHistory.maxLength
A read/write property of the interface, used to Get/Set the maximum number of toplevel documents, session history can hold for each instance.
readonly nsIURI nsIWebNavigation.referringURI
The referring URI for the currently loaded URI or null.
readonly PRInt32 nsISHistory.requestedIndex
A readonly property of the interface that returns the index of the last document that started to load.
nsIDocShell nsISHistoryInternal.rootDocShell
The toplevel docshell object to which this SHistory object belongs to.
readonly nsISHTransaction nsISHistoryInternal.rootTransaction
Get the root transaction
nsISHistory nsIWebNavigation.sessionHistory
The session history object used by this web navigation instance.
readonly nsISimpleEnumerator nsISHistory.SHistoryEnumerator
Called to obtain a enumerator for all the documents stored in session history. The enumerator object thus returned by this method can be traversed using nsISimpleEnumerator.
Methods
| Interface | Method |
|---|---|
| nsISHistoryInternal |
void addEntry ( nsISHEntry entry , PRBool persist )
|
| nsISHistory |
void addSHistoryListener ( nsISHistoryListener listener )
|
| nsISHistoryInternal |
void evictContentViewers ( PRInt32 previousIndex , PRInt32 index )
|
| nsISHistoryInternal |
void evictExpiredContentViewerForEntry ( nsISHEntry entry )
|
| nsISHistory |
nsIHistoryEntry getEntryAtIndex ( PRInt32 index , PRBool modifyIndex )
|
| nsIWebNavigation |
void goBack ( )
|
| nsIWebNavigation |
void goForward ( )
|
| nsIWebNavigation |
void gotoIndex ( PRInt32 index )
|
| nsIWebNavigation |
void loadURI ( PRUnichar* URI , PRUint32 loadFlags , nsIURI referrer , nsIInputStream postData , nsIInputStream headers )
|
| nsISHistory |
void PurgeHistory ( PRInt32 numEntries )
|
| nsIWebNavigation |
void reload ( PRUint32 reloadFlags )
|
| nsISHistory |
void removeSHistoryListener ( nsISHistoryListener listener )
|
| nsISHistoryInternal |
void replaceEntry ( PRInt32 index , nsISHEntry replaceEntry )
|
| nsIWebNavigation |
void stop ( PRUint32 stopFlags )
|
| nsISHistoryInternal |
void updateIndex ( )
|
Reference documentation is generated from Mozilla's source.
