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> |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 bool pinned; | 98 bool pinned; |
99 | 99 |
100 // If non-empty gives the id of the extension for the tab. | 100 // If non-empty gives the id of the extension for the tab. |
101 std::string extension_app_id; | 101 std::string extension_app_id; |
102 | 102 |
103 // The associated session storage namespace (if any). | 103 // The associated session storage namespace (if any). |
104 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace; | 104 scoped_refptr<content::SessionStorageNamespace> session_storage_namespace; |
105 | 105 |
106 // The user agent override used for the tab's navigations (if applicable). | 106 // The user agent override used for the tab's navigations (if applicable). |
107 std::string user_agent_override; | 107 std::string user_agent_override; |
| 108 |
| 109 // Timestamp of the last time the tab was active. |
| 110 base::TimeTicks last_active_time; |
108 }; | 111 }; |
109 | 112 |
110 // Represents a previously open window. | 113 // Represents a previously open window. |
111 struct Window : public Entry { | 114 struct Window : public Entry { |
112 Window(); | 115 Window(); |
113 ~Window() override; | 116 ~Window() override; |
114 | 117 |
115 // The tabs that comprised the window, in order. | 118 // The tabs that comprised the window, in order. |
116 std::vector<Tab> tabs; | 119 std::vector<Tab> tabs; |
117 | 120 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 virtual void LoadTabsFromLastSession() = 0; | 186 virtual void LoadTabsFromLastSession() = 0; |
184 | 187 |
185 // Returns true if the tab entries have been loaded. | 188 // Returns true if the tab entries have been loaded. |
186 virtual bool IsLoaded() const = 0; | 189 virtual bool IsLoaded() const = 0; |
187 | 190 |
188 // Deletes the last session. | 191 // Deletes the last session. |
189 virtual void DeleteLastSession() = 0; | 192 virtual void DeleteLastSession() = 0; |
190 }; | 193 }; |
191 | 194 |
192 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ | 195 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ |
OLD | NEW |