Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: chrome/browser/sessions/session_types.h

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 std::string session_storage_persistent_id;
177
175 private: 178 private:
176 DISALLOW_COPY_AND_ASSIGN(SessionTab); 179 DISALLOW_COPY_AND_ASSIGN(SessionTab);
177 }; 180 };
178 181
179 // SessionWindow ------------------------------------------------------------- 182 // SessionWindow -------------------------------------------------------------
180 183
181 // Describes a saved window. 184 // Describes a saved window.
182 struct SessionWindow { 185 struct SessionWindow {
183 SessionWindow(); 186 SessionWindow();
184 ~SessionWindow(); 187 ~SessionWindow();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // Is the window maximized, minimized, or normal? 221 // Is the window maximized, minimized, or normal?
219 ui::WindowShowState show_state; 222 ui::WindowShowState show_state;
220 223
221 std::string app_name; 224 std::string app_name;
222 225
223 private: 226 private:
224 DISALLOW_COPY_AND_ASSIGN(SessionWindow); 227 DISALLOW_COPY_AND_ASSIGN(SessionWindow);
225 }; 228 };
226 229
227 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ 230 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698