OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "chrome/browser/ui/host_desktop.h" | |
15 #include "components/keyed_service/core/keyed_service.h" | 14 #include "components/keyed_service/core/keyed_service.h" |
16 #include "components/sessions/serialized_navigation_entry.h" | 15 #include "components/sessions/serialized_navigation_entry.h" |
17 #include "components/sessions/session_id.h" | 16 #include "components/sessions/session_id.h" |
18 #include "components/sessions/session_types.h" | 17 #include "components/sessions/session_types.h" |
19 #include "content/public/browser/session_storage_namespace.h" | 18 #include "content/public/browser/session_storage_namespace.h" |
20 #include "ui/base/window_open_disposition.h" | 19 #include "ui/base/window_open_disposition.h" |
| 20 #include "ui/gfx/host_desktop_type.h" |
21 | 21 |
22 class TabRestoreServiceDelegate; | 22 class TabRestoreServiceDelegate; |
23 class TabRestoreServiceObserver; | 23 class TabRestoreServiceObserver; |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 class SessionStorageNamespace; | 26 class SessionStorageNamespace; |
27 class WebContents; | 27 class WebContents; |
28 } | 28 } |
29 | 29 |
30 // TabRestoreService is responsible for maintaining the most recently closed | 30 // TabRestoreService is responsible for maintaining the most recently closed |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 virtual void LoadTabsFromLastSession() = 0; | 183 virtual void LoadTabsFromLastSession() = 0; |
184 | 184 |
185 // Returns true if the tab entries have been loaded. | 185 // Returns true if the tab entries have been loaded. |
186 virtual bool IsLoaded() const = 0; | 186 virtual bool IsLoaded() const = 0; |
187 | 187 |
188 // Deletes the last session. | 188 // Deletes the last session. |
189 virtual void DeleteLastSession() = 0; | 189 virtual void DeleteLastSession() = 0; |
190 }; | 190 }; |
191 | 191 |
192 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ | 192 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ |
OLD | NEW |