| 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 <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "chrome/browser/sessions/base_session_service.h" | 14 #include "chrome/browser/sessions/base_session_service.h" |
| 15 #include "chrome/browser/sessions/session_id.h" | 15 #include "chrome/browser/sessions/session_id.h" |
| 16 #include "chrome/browser/sessions/session_types.h" |
| 16 | 17 |
| 17 class Browser; | 18 class Browser; |
| 18 class NavigationController; | 19 class NavigationController; |
| 19 class Profile; | 20 class Profile; |
| 20 struct SessionWindow; | 21 struct SessionWindow; |
| 21 | 22 |
| 22 // TabRestoreService is responsible for maintaining the most recently closed | 23 // TabRestoreService is responsible for maintaining the most recently closed |
| 23 // tabs and windows. When a tab is closed | 24 // tabs and windows. When a tab is closed |
| 24 // TabRestoreService::CreateHistoricalTab is invoked and a Tab is created to | 25 // TabRestoreService::CreateHistoricalTab is invoked and a Tab is created to |
| 25 // represent the tab. Similarly, when a browser is closed, BrowserClosing is | 26 // represent the tab. Similarly, when a browser is closed, BrowserClosing is |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 // entries_. | 328 // entries_. |
| 328 std::vector<Entry*> staging_entries_; | 329 std::vector<Entry*> staging_entries_; |
| 329 | 330 |
| 330 TimeFactory* time_factory_; | 331 TimeFactory* time_factory_; |
| 331 | 332 |
| 332 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); | 333 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); |
| 333 }; | 334 }; |
| 334 | 335 |
| 335 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ | 336 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ |
| 336 | 337 |
| OLD | NEW |