diff options
author | blundell <blundell@chromium.org> | 2015-09-18 04:04:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-18 11:04:55 +0000 |
commit | 74001adc667974152b861eda769a750da4242b73 (patch) | |
tree | 6d8a0bf6fb7dc1b4d84db4aae7557074df759ce4 /chrome/browser/jumplist_win.h | |
parent | 45f1240b96fda35aa493bf7a2b200d4cfee0d84b (diff) | |
download | chromium_src-74001adc667974152b861eda769a750da4242b73.zip chromium_src-74001adc667974152b861eda769a750da4242b73.tar.gz chromium_src-74001adc667974152b861eda769a750da4242b73.tar.bz2 |
[sessions] Properly namespace recently-componentized TabRestore code
This CL puts all the core TabRestore code that was recently componentized in
the sessions namespace.
BUG=371476
TBR=sky
Review URL: https://codereview.chromium.org/1350653004
Cr-Commit-Position: refs/heads/master@{#349648}
Diffstat (limited to 'chrome/browser/jumplist_win.h')
-rw-r--r-- | chrome/browser/jumplist_win.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/jumplist_win.h b/chrome/browser/jumplist_win.h index bc75e51..28f751c 100644 --- a/chrome/browser/jumplist_win.h +++ b/chrome/browser/jumplist_win.h @@ -49,7 +49,7 @@ class Profile; // // Note. base::CancelableTaskTracker is not thread safe, so we // always delete JumpList on UI thread (the same thread it got constructed on). -class JumpList : public TabRestoreServiceObserver, +class JumpList : public sessions::TabRestoreServiceObserver, public content::NotificationObserver, public history::TopSitesObserver, public base::RefCountedThreadSafe< @@ -65,11 +65,12 @@ class JumpList : public TabRestoreServiceObserver, // Observer callback for TabRestoreService::Observer to notify when a tab is // added or removed. - void TabRestoreServiceChanged(TabRestoreService* service) override; + void TabRestoreServiceChanged(sessions::TabRestoreService* service) override; // Observer callback to notice when our associated TabRestoreService // is destroyed. - void TabRestoreServiceDestroyed(TabRestoreService* service) override; + void TabRestoreServiceDestroyed( + sessions::TabRestoreService* service) override; // Cancel a pending jumplist update. void CancelPendingUpdate(); @@ -93,10 +94,10 @@ class JumpList : public TabRestoreServiceObserver, // given list. // These functions are copied from the RecentlyClosedTabsHandler class for // compatibility with the new-tab page. - bool AddTab(const TabRestoreService::Tab* tab, + bool AddTab(const sessions::TabRestoreService::Tab* tab, ShellLinkItemList* list, size_t max_items); - void AddWindow(const TabRestoreService::Window* window, + void AddWindow(const sessions::TabRestoreService::Window* window, ShellLinkItemList* list, size_t max_items); |