| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_HELPER_H_ | 5 #ifndef COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_HELPER_H_ |
| 6 #define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_HELPER_H_ | 6 #define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_HELPER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 void CreateHistoricalTab(LiveTab* live_tab, int index); | 75 void CreateHistoricalTab(LiveTab* live_tab, int index); |
| 76 void BrowserClosing(LiveTabContext* context); | 76 void BrowserClosing(LiveTabContext* context); |
| 77 void BrowserClosed(LiveTabContext* context); | 77 void BrowserClosed(LiveTabContext* context); |
| 78 void ClearEntries(); | 78 void ClearEntries(); |
| 79 const Entries& entries() const; | 79 const Entries& entries() const; |
| 80 std::vector<LiveTab*> RestoreMostRecentEntry(LiveTabContext* context); | 80 std::vector<LiveTab*> RestoreMostRecentEntry(LiveTabContext* context); |
| 81 std::unique_ptr<Tab> RemoveTabEntryById(SessionID::id_type id); | 81 std::unique_ptr<Tab> RemoveTabEntryById(SessionID::id_type id); |
| 82 std::vector<LiveTab*> RestoreEntryById(LiveTabContext* context, | 82 std::vector<LiveTab*> RestoreEntryById(LiveTabContext* context, |
| 83 SessionID::id_type id, | 83 SessionID::id_type id, |
| 84 WindowOpenDisposition disposition); | 84 WindowOpenDisposition disposition); |
| 85 bool IsRestoring() const; |
| 85 | 86 |
| 86 // Notifies observers the tabs have changed. | 87 // Notifies observers the tabs have changed. |
| 87 void NotifyTabsChanged(); | 88 void NotifyTabsChanged(); |
| 88 | 89 |
| 89 // Notifies observers the service has loaded. | 90 // Notifies observers the service has loaded. |
| 90 void NotifyLoaded(); | 91 void NotifyLoaded(); |
| 91 | 92 |
| 92 // Adds |entry| to the list of entries. If |prune| is true |PruneAndNotify| is | 93 // Adds |entry| to the list of entries. If |prune| is true |PruneAndNotify| is |
| 93 // invoked. If |to_front| is true the entry is added to the front, otherwise | 94 // invoked. If |to_front| is true the entry is added to the front, otherwise |
| 94 // the back. Normal closes go to the front, but tab/window closes from the | 95 // the back. Normal closes go to the front, but tab/window closes from the |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 std::set<LiveTabContext*> closing_contexts_; | 176 std::set<LiveTabContext*> closing_contexts_; |
| 176 | 177 |
| 177 TimeFactory* const time_factory_; | 178 TimeFactory* const time_factory_; |
| 178 | 179 |
| 179 DISALLOW_COPY_AND_ASSIGN(TabRestoreServiceHelper); | 180 DISALLOW_COPY_AND_ASSIGN(TabRestoreServiceHelper); |
| 180 }; | 181 }; |
| 181 | 182 |
| 182 } // namespace sessions | 183 } // namespace sessions |
| 183 | 184 |
| 184 #endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_HELPER_H_ | 185 #endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_HELPER_H_ |
| OLD | NEW |