| 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 |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "base/time.h" | |
| 13 #include "chrome/browser/sessions/base_session_service.h" | 12 #include "chrome/browser/sessions/base_session_service.h" |
| 14 #include "chrome/browser/sessions/session_id.h" | 13 #include "chrome/browser/sessions/session_id.h" |
| 15 #include "chrome/browser/sessions/session_types.h" | 14 #include "chrome/browser/sessions/session_types.h" |
| 16 | 15 |
| 17 class Browser; | 16 class Browser; |
| 18 class NavigationController; | 17 class NavigationController; |
| 19 class Profile; | 18 class Profile; |
| 20 | 19 |
| 21 // TabRestoreService is responsible for maintaining the most recently closed | 20 // TabRestoreService is responsible for maintaining the most recently closed |
| 22 // tabs and windows. When a tab is closed | 21 // tabs and windows. When a tab is closed |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // Results from previously closed tabs/sessions is first added here. When | 275 // Results from previously closed tabs/sessions is first added here. When |
| 277 // the results from both us and the session restore service have finished | 276 // the results from both us and the session restore service have finished |
| 278 // loading LoadStateChanged is invoked, which adds these entries to | 277 // loading LoadStateChanged is invoked, which adds these entries to |
| 279 // entries_. | 278 // entries_. |
| 280 std::vector<Entry*> staging_entries_; | 279 std::vector<Entry*> staging_entries_; |
| 281 | 280 |
| 282 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); | 281 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); |
| 283 }; | 282 }; |
| 284 | 283 |
| 285 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ | 284 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ |
| OLD | NEW |