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 | 7 |
| 8 #include <map> |
8 #include <string> | 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
12 #include "base/string16.h" | 13 #include "base/string16.h" |
13 #include "base/time.h" | 14 #include "base/time.h" |
14 #include "chrome/browser/sessions/session_id.h" | 15 #include "chrome/browser/sessions/session_id.h" |
15 #include "content/public/common/page_transition_types.h" | 16 #include "content/public/common/page_transition_types.h" |
16 #include "content/public/common/referrer.h" | 17 #include "content/public/common/referrer.h" |
17 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 174 |
174 // If non-empty, this string is used as the user agent whenever the tab's | 175 // If non-empty, this string is used as the user agent whenever the tab's |
175 // NavigationEntries need it overridden. | 176 // NavigationEntries need it overridden. |
176 std::string user_agent_override; | 177 std::string user_agent_override; |
177 | 178 |
178 // Timestamp for when this tab was last modified. | 179 // Timestamp for when this tab was last modified. |
179 base::Time timestamp; | 180 base::Time timestamp; |
180 | 181 |
181 std::vector<TabNavigation> navigations; | 182 std::vector<TabNavigation> navigations; |
182 | 183 |
183 // For reassociating sessionStorage. | 184 // Maps the storage partition id to its session storage persistent id. |
184 std::string session_storage_persistent_id; | 185 std::map<std::string, std::string> session_storage_persistent_id_map; |
185 | 186 |
186 private: | 187 private: |
187 DISALLOW_COPY_AND_ASSIGN(SessionTab); | 188 DISALLOW_COPY_AND_ASSIGN(SessionTab); |
188 }; | 189 }; |
189 | 190 |
190 // SessionWindow ------------------------------------------------------------- | 191 // SessionWindow ------------------------------------------------------------- |
191 | 192 |
192 // Describes a saved window. | 193 // Describes a saved window. |
193 struct SessionWindow { | 194 struct SessionWindow { |
194 SessionWindow(); | 195 SessionWindow(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // Is the window maximized, minimized, or normal? | 230 // Is the window maximized, minimized, or normal? |
230 ui::WindowShowState show_state; | 231 ui::WindowShowState show_state; |
231 | 232 |
232 std::string app_name; | 233 std::string app_name; |
233 | 234 |
234 private: | 235 private: |
235 DISALLOW_COPY_AND_ASSIGN(SessionWindow); | 236 DISALLOW_COPY_AND_ASSIGN(SessionWindow); |
236 }; | 237 }; |
237 | 238 |
238 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 239 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
OLD | NEW |