| 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 "base/callback_list.h" | 11 #include "base/callback_list.h" |
| 12 #include "chrome/browser/ui/host_desktop.h" | 12 #include "chrome/browser/ui/host_desktop.h" |
| 13 #include "components/history/core/browser/history_service.h" | 13 #include "components/history/core/browser/history_service.h" |
| 14 #include "components/sessions/session_types.h" | 14 #include "components/sessions/core/session_types.h" |
| 15 #include "ui/base/window_open_disposition.h" | 15 #include "ui/base/window_open_disposition.h" |
| 16 | 16 |
| 17 class Browser; | 17 class Browser; |
| 18 class Profile; | 18 class Profile; |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 class WebContents; | 21 class WebContents; |
| 22 } | 22 } |
| 23 | 23 |
| 24 // SessionRestore handles restoring either the last or saved session. Session | 24 // SessionRestore handles restoring either the last or saved session. Session |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 return on_session_restored_callbacks_; | 119 return on_session_restored_callbacks_; |
| 120 } | 120 } |
| 121 | 121 |
| 122 // Contains all registered callbacks for session restore notifications. | 122 // Contains all registered callbacks for session restore notifications. |
| 123 static CallbackList* on_session_restored_callbacks_; | 123 static CallbackList* on_session_restored_callbacks_; |
| 124 | 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(SessionRestore); | 125 DISALLOW_COPY_AND_ASSIGN(SessionRestore); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 #endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_H_ | 128 #endif // CHROME_BROWSER_SESSIONS_SESSION_RESTORE_H_ |
| OLD | NEW |