summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sessions/session_service.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 20:20:09 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 20:20:09 +0000
commit5c0e648d6f4ea988be36e74cae045ba5f041e5cb (patch)
treef0fb62cf06be0ef7afa2b74babb0fe0ee7c1bc02 /chrome/browser/sessions/session_service.h
parent2e7054c0c76fe1c9a12de5925b7ad1a7aff94e45 (diff)
downloadchromium_src-5c0e648d6f4ea988be36e74cae045ba5f041e5cb.zip
chromium_src-5c0e648d6f4ea988be36e74cae045ba5f041e5cb.tar.gz
chromium_src-5c0e648d6f4ea988be36e74cae045ba5f041e5cb.tar.bz2
Wires up restoring pinned tabs for session and tab restore
services. And turns on pinned tabs by default on linux. BUG=16634 TEST=Currently this linux only. Try tab pinning and make sure it works. Review URL: http://codereview.chromium.org/149621 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions/session_service.h')
-rw-r--r--chrome/browser/sessions/session_service.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome/browser/sessions/session_service.h b/chrome/browser/sessions/session_service.h
index 577981d..b3daf22 100644
--- a/chrome/browser/sessions/session_service.h
+++ b/chrome/browser/sessions/session_service.h
@@ -75,6 +75,11 @@ class SessionService : public BaseSessionService,
const SessionID& tab_id,
int new_index);
+ // Sets the pinned state of the tab.
+ void SetPinnedState(const SessionID& window_id,
+ const SessionID& tab_id,
+ bool is_pinned);
+
// Notification that a tab has been closed.
//
// Note: this is invoked from the NavigationController's destructor, which is
@@ -112,7 +117,8 @@ class SessionService : public BaseSessionService,
// Notification that a tab has restored its entries or a closed tab is being
// reused.
- void TabRestored(NavigationController* controller);
+ void TabRestored(NavigationController* controller,
+ bool pinned);
// Sets the index of the selected entry in the navigation controller for the
// specified tab.
@@ -179,6 +185,9 @@ class SessionService : public BaseSessionService,
SessionCommand* CreateSetWindowTypeCommand(const SessionID& window_id,
Browser::Type type);
+ SessionCommand* CreatePinnedStateCommand(const SessionID& tab_id,
+ bool is_pinned);
+
// Callback form the backend for getting the commands from the previous
// or save file. Converts the commands in SessionWindows and notifies
// the real callback.
@@ -253,6 +262,7 @@ class SessionService : public BaseSessionService,
const SessionID& window_id,
NavigationController* controller,
int index_in_window,
+ bool is_pinned,
std::vector<SessionCommand*>* commands,
IdToRange* tab_to_available_range);