| 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_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.h" | 13 #include "base/time.h" |
| 14 #include "chrome/browser/profiles/profile_keyed_service.h" | 14 #include "chrome/browser/profiles/profile_keyed_service.h" |
| 15 #include "chrome/browser/sessions/session_id.h" | 15 #include "chrome/browser/sessions/session_id.h" |
| 16 #include "chrome/browser/sessions/session_types.h" | 16 #include "chrome/browser/sessions/session_types.h" |
| 17 #include "chrome/browser/ui/host_desktop.h" | 17 #include "chrome/browser/ui/host_desktop.h" |
| 18 #include "content/public/browser/session_storage_namespace.h" | 18 #include "content/public/browser/session_storage_namespace.h" |
| 19 #include "webkit/glue/window_open_disposition.h" | 19 #include "ui/base/window_open_disposition.h" |
| 20 | 20 |
| 21 class TabRestoreServiceDelegate; | 21 class TabRestoreServiceDelegate; |
| 22 class TabRestoreServiceObserver; | 22 class TabRestoreServiceObserver; |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 class SessionStorageNamespace; | 25 class SessionStorageNamespace; |
| 26 class WebContents; | 26 class WebContents; |
| 27 } | 27 } |
| 28 | 28 |
| 29 // TabRestoreService is responsible for maintaining the most recently closed | 29 // TabRestoreService is responsible for maintaining the most recently closed |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 virtual void LoadTabsFromLastSession() = 0; | 179 virtual void LoadTabsFromLastSession() = 0; |
| 180 | 180 |
| 181 // Returns true if the tab entries have been loaded. | 181 // Returns true if the tab entries have been loaded. |
| 182 virtual bool IsLoaded() const = 0; | 182 virtual bool IsLoaded() const = 0; |
| 183 | 183 |
| 184 // Deletes the last session. | 184 // Deletes the last session. |
| 185 virtual void DeleteLastSession() = 0; | 185 virtual void DeleteLastSession() = 0; |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ | 188 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ |
| OLD | NEW |