OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 class Profile; | 23 class Profile; |
24 class SessionCommand; | 24 class SessionCommand; |
25 class TabContents; | 25 class TabContents; |
26 struct SessionTab; | 26 struct SessionTab; |
27 struct SessionWindow; | 27 struct SessionWindow; |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 class NavigationEntry; | 30 class NavigationEntry; |
31 } | 31 } |
32 | 32 |
| 33 namespace performance_monitor { |
| 34 class PerformanceMonitorSessionRestoreBrowserTest; |
| 35 } |
| 36 |
33 // SessionService ------------------------------------------------------------ | 37 // SessionService ------------------------------------------------------------ |
34 | 38 |
35 // SessionService is responsible for maintaining the state of open windows | 39 // SessionService is responsible for maintaining the state of open windows |
36 // and tabs so that they can be restored at a later date. The state of the | 40 // and tabs so that they can be restored at a later date. The state of the |
37 // currently open browsers is referred to as the current session. | 41 // currently open browsers is referred to as the current session. |
38 // | 42 // |
39 // SessionService supports restoring from the last session. The last session | 43 // SessionService supports restoring from the last session. The last session |
40 // typically corresponds to the last run of the browser, but not always. For | 44 // typically corresponds to the last run of the browser, but not always. For |
41 // example, if the user has a tabbed browser and app window running, closes the | 45 // example, if the user has a tabbed browser and app window running, closes the |
42 // tabbed browser, then creates a new tabbed browser the current session is made | 46 // tabbed browser, then creates a new tabbed browser the current session is made |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 const base::TimeDelta save_delay_in_hrs_; | 477 const base::TimeDelta save_delay_in_hrs_; |
474 | 478 |
475 // For browser_tests, since we want to simulate the browser shutting down | 479 // For browser_tests, since we want to simulate the browser shutting down |
476 // without quitting. | 480 // without quitting. |
477 bool force_browser_not_alive_with_no_windows_; | 481 bool force_browser_not_alive_with_no_windows_; |
478 | 482 |
479 DISALLOW_COPY_AND_ASSIGN(SessionService); | 483 DISALLOW_COPY_AND_ASSIGN(SessionService); |
480 }; | 484 }; |
481 | 485 |
482 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ | 486 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_ |
OLD | NEW |