| 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_H_ | 5 #ifndef COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ |
| 6 #define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ | 6 #define COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 // Loads the tabs and previous session. This does nothing if the tabs | 176 // Loads the tabs and previous session. This does nothing if the tabs |
| 177 // from the previous session have already been loaded. | 177 // from the previous session have already been loaded. |
| 178 virtual void LoadTabsFromLastSession() = 0; | 178 virtual void LoadTabsFromLastSession() = 0; |
| 179 | 179 |
| 180 // Returns true if the tab entries have been loaded. | 180 // Returns true if the tab entries have been loaded. |
| 181 virtual bool IsLoaded() const = 0; | 181 virtual bool IsLoaded() const = 0; |
| 182 | 182 |
| 183 // Deletes the last session. | 183 // Deletes the last session. |
| 184 virtual void DeleteLastSession() = 0; | 184 virtual void DeleteLastSession() = 0; |
| 185 |
| 186 // Returns true if we're in the process of restoring some entries. |
| 187 virtual bool IsRestoring() const = 0; |
| 185 }; | 188 }; |
| 186 | 189 |
| 187 // A class that is used to associate platform-specific data with | 190 // A class that is used to associate platform-specific data with |
| 188 // TabRestoreService::Tab. See LiveTab::GetPlatformSpecificTabData(). | 191 // TabRestoreService::Tab. See LiveTab::GetPlatformSpecificTabData(). |
| 189 class SESSIONS_EXPORT PlatformSpecificTabData { | 192 class SESSIONS_EXPORT PlatformSpecificTabData { |
| 190 public: | 193 public: |
| 191 virtual ~PlatformSpecificTabData(); | 194 virtual ~PlatformSpecificTabData(); |
| 192 }; | 195 }; |
| 193 | 196 |
| 194 } // namespace sessions | 197 } // namespace sessions |
| 195 | 198 |
| 196 #endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ | 199 #endif // COMPONENTS_SESSIONS_CORE_TAB_RESTORE_SERVICE_H_ |
| OLD | NEW |