| 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_RESTORE_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_RESTORE_H_ |
| 6 #define CHROME_BROWSER_SESSIONS_SESSION_RESTORE_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_RESTORE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "chrome/browser/history/history.h" | 11 #include "chrome/browser/history/history.h" |
| 12 #include "chrome/browser/sessions/session_types.h" | 12 #include "chrome/browser/sessions/session_types.h" |
| 13 #include "chrome/browser/ui/host_desktop.h" | 13 #include "chrome/browser/ui/host_desktop.h" |
| 14 #include "webkit/glue/window_open_disposition.h" | 14 #include "ui/base/window_open_disposition.h" |
| 15 | 15 |
| 16 class Browser; | 16 class Browser; |
| 17 class Profile; | 17 class Profile; |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 class WebContents; | 20 class WebContents; |
| 21 } | 21 } |
| 22 | 22 |
| 23 // SessionRestore handles restoring either the last or saved session. Session | 23 // SessionRestore handles restoring either the last or saved session. Session |
| 24 // restore come in two variants, asynchronous or synchronous. The synchronous | 24 // restore come in two variants, asynchronous or synchronous. The synchronous |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // a session. A value of 0 indicates all tabs are loaded at once. | 76 // a session. A value of 0 indicates all tabs are loaded at once. |
| 77 static size_t num_tabs_to_load_; | 77 static size_t num_tabs_to_load_; |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 SessionRestore(); | 80 SessionRestore(); |
| 81 | 81 |
| 82 DISALLOW_COPY_AND_ASSIGN(SessionRestore); | 82 DISALLOW_COPY_AND_ASSIGN(SessionRestore); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 #endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_H_ | 85 #endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_H_ |
| OLD | NEW |