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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 165 |
165 // 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 |
166 // NavigationEntries need it overridden. | 167 // NavigationEntries need it overridden. |
167 std::string user_agent_override; | 168 std::string user_agent_override; |
168 | 169 |
169 // Timestamp for when this tab was last modified. | 170 // Timestamp for when this tab was last modified. |
170 base::Time timestamp; | 171 base::Time timestamp; |
171 | 172 |
172 std::vector<TabNavigation> navigations; | 173 std::vector<TabNavigation> navigations; |
173 | 174 |
174 // For reassociating sessionStorage. | 175 // Maps the storage partition id to its session storage persistent id. |
175 std::string session_storage_persistent_id; | 176 std::map<std::string, std::string> session_storage_persistent_id_map; |
176 | 177 |
177 private: | 178 private: |
178 DISALLOW_COPY_AND_ASSIGN(SessionTab); | 179 DISALLOW_COPY_AND_ASSIGN(SessionTab); |
179 }; | 180 }; |
180 | 181 |
181 // SessionWindow ------------------------------------------------------------- | 182 // SessionWindow ------------------------------------------------------------- |
182 | 183 |
183 // Describes a saved window. | 184 // Describes a saved window. |
184 struct SessionWindow { | 185 struct SessionWindow { |
185 SessionWindow(); | 186 SessionWindow(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // Is the window maximized, minimized, or normal? | 221 // Is the window maximized, minimized, or normal? |
221 ui::WindowShowState show_state; | 222 ui::WindowShowState show_state; |
222 | 223 |
223 std::string app_name; | 224 std::string app_name; |
224 | 225 |
225 private: | 226 private: |
226 DISALLOW_COPY_AND_ASSIGN(SessionWindow); | 227 DISALLOW_COPY_AND_ASSIGN(SessionWindow); |
227 }; | 228 }; |
228 | 229 |
229 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 230 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
OLD | NEW |