Electrolysis/places that need session history: Difference between revisions
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
<br> | <br> | ||
=== Places using | === Places using Session History === | ||
WebNavigation interface || ''attribute'' sessionHistory || | WebNavigation interface || ''attribute'' sessionHistory || | ||
*[http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsIWebNavigation.idl#322 nsIWebNavigation.idl] | *[http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsIWebNavigation.idl#322 nsIWebNavigation.idl] | ||
| Line 86: | Line 86: | ||
*'::restoreHistory()' || [http://mxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/src/nsSessionStore.js#2037 nsSessionStore.js] | *'::restoreHistory()' || [http://mxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/src/nsSessionStore.js#2037 nsSessionStore.js] | ||
fuelApplication.js || .history || | |||
*'::BookmarkFolder()' || [http://mxr.mozilla.org/mozilla-central/source/browser/fuel/src/fuelApplication.js#504 fuelApplication.js] | |||
help.js || .history || | |||
*'::init()' || [http://mxr.mozilla.org/mozilla-central/source/toolkit/components/help/content/help.js#169 help.js] | |||
*'::FillHistoryMenu()' || [http://mxr.mozilla.org/mozilla-central/source/toolkit/components/help/content/help.js#463 help.js] | |||
=== Places using | |||
=== Places using Session History Listener === | |||
SHistoryInternal interface || ''attribute'' listener || | SHistoryInternal interface || ''attribute'' listener || | ||
*[http://mxr.mozilla.org/mozilla-central/source/docshell/shistory/public/nsISHistoryInternal.idl#92 nsISHistoryInternal.idl] | *[http://mxr.mozilla.org/mozilla-central/source/docshell/shistory/public/nsISHistoryInternal.idl#92 nsISHistoryInternal.idl] | ||
| Line 103: | Line 109: | ||
=== Other | === Other places === | ||
FrameLoader || ''nsComPtr'' ourHistory || [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsFrameLoader.cpp#519 nsFrameLoader.cpp] | FrameLoader || ''nsComPtr'' ourHistory || [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsFrameLoader.cpp#519 nsFrameLoader.cpp] | ||
*but it does NOT yet do anything useful with it. [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsFrameLoader.cpp#526 Take a look.] | *but it does NOT yet do anything useful with it. [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsFrameLoader.cpp#526 Take a look.] | ||
Revision as of 20:59, 11 September 2009
Places that need session history
This planning document is preparatory work for task "Session history for remote tabs" in [1]. It lists all the places that need (read / write) session history.
all the following objects make use of session history (or session history listener) in a certain way. For each of them, nsISHistory usage is detailled and links to code are provided.
Places using Session History
WebNavigation interface || attribute sessionHistory ||
CCUncollectableMarker component || nsComPtr history ||
- '::MarkDocShell()' || nsCCUncollectableMarker.cpp
DocShell component || nsComPtr shistory & rootSH ||
- '::GetInterface()' || nsDocShell.cpp
- '::DoAddChildSHEntry()' || nsDocShell.cpp
- '::getCanGoBack()' || nsDocShell.cpp
- '::getCanGoForward()' || nsDocShell.cpp
- '::goBack()' || nsDocShell.cpp
- '::goForward()' || nsDocShell.cpp
- '::gotoIndex()' || nsDocShell.cpp
- '::Reload()' || nsDocShell.cpp
- '::EndPageLoad()' || nsDocShell.cpp
- '::RestoreFromHistory()' || nsDocShell.cpp
- '::OnNewURI()' || nsDocShell.cpp
SHEntry || QI for nsISHistoryInternal ||
- '::Expire()' || nsSHEntry.cpp
EmbedPrivate || public member mSessionHistory ||
- '::Realize()' || EmbedPrivate.cpp
WebBrowser || adds/removes SHistory listeners ||
- '::BindListener()' || nsWebBrowser.cpp
- '::UnBindListener()' || nsWebBrowser.cpp
DocumentViewer || QI for nsISHistoryInternal ||
- '::Show()' || nsDocumentViewer.cpp
broswer-places.js || call .history member ||
- '::PCH_bookmarkPage()' || browser-places.js
browser.js || .sessionHistory & .history ||
- '::prepareForStartup()' || browser.js
- '::gotoHistoryIndex()' || browser.js
- '::BrowserForward()' || browser.js
- '::BrowserBack()' || browser.js
- '::BrowserReloadWithFlags()' || browser.js
- '::gotoHistorFillHistoryMenuyIndex()' || browser.js
- '::getShortcutOrURI()' || browser.js
- '::BrowserSetForcedCharacterSet()' || browser.js
- '::undoCloseTab()' || browser.js
bookmarkProperties.js || .history ||
- '::_getURITitleFromHistory()' || bookmarkProperties.js
- '::_getCreateNewBookmarkTransaction()' || bookmarkProperties.js
controller.js || .history ||
- '::__removeRange()' || controller.js
- '::_removeRowsFromHistory()' || controller.js
- '::_removeHistoryContainer()' || controller.js
editBookmarkOverlay.js || .history ||
- '::_getItemStaticTitle()' || editBookmarkOverlay.js
history-panel.js || .history ||
- '::searchHistory()' || history-panel.js
places.js || .history ||
- '::onPlaceSelected()' || places.js
- '::saveSearch()' || places.js
- '::search()' || places.js
- '::doSearch()' || places.js
utils.js || .history ||
nsPlacesTransactionsService.js || .history ||
- '::doTransaction()' || nsPlacesTransactionsService.js
nsSessionStore.js || .history ||
- '::_collectTabData()' || nsSessionStore.js
- '::_serializeSessionStorage()' || nsSessionStore.js
- '::restoreHistory()' || nsSessionStore.js
fuelApplication.js || .history ||
- '::BookmarkFolder()' || fuelApplication.js
help.js || .history ||
Places using Session History Listener
SHistoryInternal interface || attribute listener ||
DocShell || nsComPtr listener||
- '::Reload()' || nsDocShell.cpp
WebBrowser || QI for nsISHistoryListener ||
- '::bindListener()' || nsWebBrowser.cpp
WebBrowserChrome || derives from nsISHistoryListener ||
Other places
FrameLoader || nsComPtr ourHistory || nsFrameLoader.cpp
- but it does NOT yet do anything useful with it. Take a look.