diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 21:05:47 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 21:05:47 +0000 |
commit | 907cb3fc0d436b8e43321b99c19a2fd456ddc675 (patch) | |
tree | ef6a8c1b9c71982d2d8db70ac8bb05d394531813 /chrome/browser/tab_contents | |
parent | 1da1993813438d81ece87faac5c09cc0d25a6324 (diff) | |
download | chromium_src-907cb3fc0d436b8e43321b99c19a2fd456ddc675.zip chromium_src-907cb3fc0d436b8e43321b99c19a2fd456ddc675.tar.gz chromium_src-907cb3fc0d436b8e43321b99c19a2fd456ddc675.tar.bz2 |
Makes NavigationController:set_max_restored_page_id public. I need to
invoke this when doing match preview to make sure new navigations
don't end up using an ID I might have to merge with.
BUG=54833
TEST=none
Review URL: http://codereview.chromium.org/3325027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59280 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/navigation_controller.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/tab_contents/navigation_controller.h b/chrome/browser/tab_contents/navigation_controller.h index ff1a5a0..ed47492 100644 --- a/chrome/browser/tab_contents/navigation_controller.h +++ b/chrome/browser/tab_contents/navigation_controller.h @@ -386,6 +386,12 @@ class NavigationController { // invoked). This is true for session/tab restore and cloned tabs. bool needs_reload() const { return needs_reload_; } + // Sets the max restored page ID this NavigationController has seen, if it + // was restored from a previous session. + void set_max_restored_page_id(int32 max_id) { + max_restored_page_id_ = max_id; + } + // Returns the largest restored page ID seen in this navigation controller, // if it was restored from a previous session. (-1 otherwise) int32 max_restored_page_id() const { return max_restored_page_id_; } @@ -476,12 +482,6 @@ class NavigationController { void NotifyNavigationEntryCommitted(LoadCommittedDetails* details, int extra_invalidate_flags); - // Sets the max restored page ID this NavigationController has seen, if it - // was restored from a previous session. - void set_max_restored_page_id(int32 max_id) { - max_restored_page_id_ = max_id; - } - // Updates the virtual URL of an entry to match a new URL, for cases where // the real renderer URL is derived from the virtual URL, like view-source: void UpdateVirtualURLToURL(NavigationEntry* entry, const GURL& new_url); |