| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ | 6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 // Unique id for this entry. The id is guaranteed to be unique for a | 64 // Unique id for this entry. The id is guaranteed to be unique for a |
| 65 // session. | 65 // session. |
| 66 SessionID::id_type id; | 66 SessionID::id_type id; |
| 67 | 67 |
| 68 // The type of the entry. | 68 // The type of the entry. |
| 69 Type type; | 69 Type type; |
| 70 | 70 |
| 71 // The time when the window or tab was closed. | 71 // The time when the window or tab was closed. |
| 72 base::Time timestamp; | 72 base::Time timestamp; |
| 73 |
| 74 // Is this entry from the last session? This is set to true for entries that |
| 75 // were closed during the last session, and false for entries that were |
| 76 // closed during this session. |
| 77 bool from_last_session; |
| 73 }; | 78 }; |
| 74 | 79 |
| 75 // Represents a previously open tab. | 80 // Represents a previously open tab. |
| 76 struct Tab : public Entry { | 81 struct Tab : public Entry { |
| 77 Tab() | 82 Tab() |
| 78 : Entry(TAB), | 83 : Entry(TAB), |
| 79 current_navigation_index(-1), | 84 current_navigation_index(-1), |
| 80 browser_id(0), | 85 browser_id(0), |
| 81 tabstrip_index(-1), | 86 tabstrip_index(-1), |
| 82 pinned(false) {} | 87 pinned(false) {} |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 // entries_. | 328 // entries_. |
| 324 std::vector<Entry*> staging_entries_; | 329 std::vector<Entry*> staging_entries_; |
| 325 | 330 |
| 326 TimeFactory* time_factory_; | 331 TimeFactory* time_factory_; |
| 327 | 332 |
| 328 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); | 333 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); |
| 329 }; | 334 }; |
| 330 | 335 |
| 331 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ | 336 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ |
| 332 | 337 |
| OLD | NEW |