| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // Represents a previously open window. | 109 // Represents a previously open window. |
| 110 struct Window : public Entry { | 110 struct Window : public Entry { |
| 111 Window(); | 111 Window(); |
| 112 virtual ~Window(); | 112 virtual ~Window(); |
| 113 | 113 |
| 114 // The tabs that comprised the window, in order. | 114 // The tabs that comprised the window, in order. |
| 115 std::vector<Tab> tabs; | 115 std::vector<Tab> tabs; |
| 116 | 116 |
| 117 // Index of the selected tab. | 117 // Index of the selected tab. |
| 118 int selected_tab_index; | 118 int selected_tab_index; |
| 119 |
| 120 // If an application window, the name of the app. |
| 121 std::string app_name; |
| 119 }; | 122 }; |
| 120 | 123 |
| 121 typedef std::list<Entry*> Entries; | 124 typedef std::list<Entry*> Entries; |
| 122 | 125 |
| 123 // Creates a new TabRestoreService and provides an object that provides the | 126 // Creates a new TabRestoreService and provides an object that provides the |
| 124 // current time. The TabRestoreService does not take ownership of the | 127 // current time. The TabRestoreService does not take ownership of the |
| 125 // |time_factory_|. | 128 // |time_factory_|. |
| 126 TabRestoreService(Profile* profile, TimeFactory* time_factory_ = NULL); | 129 TabRestoreService(Profile* profile, TimeFactory* time_factory_ = NULL); |
| 127 | 130 |
| 128 virtual ~TabRestoreService(); | 131 virtual ~TabRestoreService(); |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 // loading LoadStateChanged is invoked, which adds these entries to | 369 // loading LoadStateChanged is invoked, which adds these entries to |
| 367 // entries_. | 370 // entries_. |
| 368 std::vector<Entry*> staging_entries_; | 371 std::vector<Entry*> staging_entries_; |
| 369 | 372 |
| 370 TimeFactory* time_factory_; | 373 TimeFactory* time_factory_; |
| 371 | 374 |
| 372 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); | 375 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); |
| 373 }; | 376 }; |
| 374 | 377 |
| 375 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ | 378 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ |
| OLD | NEW |