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_SESSION_RESTORE_H__ | 5 #ifndef CHROME_BROWSER_SESSION_RESTORE_H__ |
6 #define CHROME_BROWSER_SESSION_RESTORE_H__ | 6 #define CHROME_BROWSER_SESSION_RESTORE_H__ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "chrome/browser/history/history.h" | 10 #include "chrome/browser/history/history.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 bool always_create_tabbed_browser, | 35 bool always_create_tabbed_browser, |
36 const std::vector<GURL>& urls_to_open); | 36 const std::vector<GURL>& urls_to_open); |
37 | 37 |
38 // Synchronously restores the last session. At least one tabbed browser is | 38 // Synchronously restores the last session. At least one tabbed browser is |
39 // created, even if there is an error in restoring. | 39 // created, even if there is an error in restoring. |
40 // | 40 // |
41 // If urls_to_open is non-empty, a tab is added for each of the URLs. | 41 // If urls_to_open is non-empty, a tab is added for each of the URLs. |
42 static void RestoreSessionSynchronously( | 42 static void RestoreSessionSynchronously( |
43 Profile* profile, | 43 Profile* profile, |
44 bool use_saved_session, | 44 bool use_saved_session, |
45 int show_command, | |
46 const std::vector<GURL>& urls_to_open); | 45 const std::vector<GURL>& urls_to_open); |
47 | 46 |
48 // The max number of non-selected tabs SessionRestore loads when restoring | 47 // The max number of non-selected tabs SessionRestore loads when restoring |
49 // a session. A value of 0 indicates all tabs are loaded at once. | 48 // a session. A value of 0 indicates all tabs are loaded at once. |
50 static size_t num_tabs_to_load_; | 49 static size_t num_tabs_to_load_; |
51 | 50 |
52 private: | 51 private: |
53 SessionRestore(); | 52 SessionRestore(); |
54 | 53 |
55 DISALLOW_EVIL_CONSTRUCTORS(SessionRestore); | 54 DISALLOW_EVIL_CONSTRUCTORS(SessionRestore); |
56 }; | 55 }; |
57 | 56 |
58 #endif // CHROME_BROWSER_SESSION_RESTORE_H__ | 57 #endif // CHROME_BROWSER_SESSION_RESTORE_H__ |
59 | 58 |
OLD | NEW |