| 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_TYPES_H_ | 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
| 6 #define CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 6 #define CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 // If non-empty, this string is used as the user agent whenever the tab's | 166 // If non-empty, this string is used as the user agent whenever the tab's |
| 167 // NavigationEntries need it overridden. | 167 // NavigationEntries need it overridden. |
| 168 std::string user_agent_override; | 168 std::string user_agent_override; |
| 169 | 169 |
| 170 // Timestamp for when this tab was last modified. | 170 // Timestamp for when this tab was last modified. |
| 171 base::Time timestamp; | 171 base::Time timestamp; |
| 172 | 172 |
| 173 std::vector<TabNavigation> navigations; | 173 std::vector<TabNavigation> navigations; |
| 174 | 174 |
| 175 // For reassociating sessionStorage. |
| 176 int64 session_storage_real_id; |
| 177 bool session_storage_real_id_associated; |
| 178 |
| 175 private: | 179 private: |
| 176 DISALLOW_COPY_AND_ASSIGN(SessionTab); | 180 DISALLOW_COPY_AND_ASSIGN(SessionTab); |
| 177 }; | 181 }; |
| 178 | 182 |
| 179 // SessionWindow ------------------------------------------------------------- | 183 // SessionWindow ------------------------------------------------------------- |
| 180 | 184 |
| 181 // Describes a saved window. | 185 // Describes a saved window. |
| 182 struct SessionWindow { | 186 struct SessionWindow { |
| 183 SessionWindow(); | 187 SessionWindow(); |
| 184 ~SessionWindow(); | 188 ~SessionWindow(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 // Is the window maximized, minimized, or normal? | 222 // Is the window maximized, minimized, or normal? |
| 219 ui::WindowShowState show_state; | 223 ui::WindowShowState show_state; |
| 220 | 224 |
| 221 std::string app_name; | 225 std::string app_name; |
| 222 | 226 |
| 223 private: | 227 private: |
| 224 DISALLOW_COPY_AND_ASSIGN(SessionWindow); | 228 DISALLOW_COPY_AND_ASSIGN(SessionWindow); |
| 225 }; | 229 }; |
| 226 | 230 |
| 227 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 231 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
| OLD | NEW |