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

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

Issue 8929007: Restore sessionStorage when chrome restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix: cloning storage areas. Created 8 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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>
11 11
12 #include "base/file_path.h"
12 #include "base/stl_util.h" 13 #include "base/stl_util.h"
13 #include "base/string16.h" 14 #include "base/string16.h"
14 #include "base/time.h" 15 #include "base/time.h"
15 #include "chrome/browser/sessions/session_id.h" 16 #include "chrome/browser/sessions/session_id.h"
16 #include "content/public/common/page_transition_types.h" 17 #include "content/public/common/page_transition_types.h"
17 #include "content/public/common/referrer.h" 18 #include "content/public/common/referrer.h"
18 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
19 #include "ui/base/ui_base_types.h" 20 #include "ui/base/ui_base_types.h"
20 #include "ui/gfx/rect.h" 21 #include "ui/gfx/rect.h"
21 22
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool pinned; 147 bool pinned;
147 148
148 // If non-empty, this tab is an app tab and this is the id of the extension. 149 // If non-empty, this tab is an app tab and this is the id of the extension.
149 std::string extension_app_id; 150 std::string extension_app_id;
150 151
151 // Timestamp for when this tab was last modified. 152 // Timestamp for when this tab was last modified.
152 base::Time timestamp; 153 base::Time timestamp;
153 154
154 std::vector<TabNavigation> navigations; 155 std::vector<TabNavigation> navigations;
155 156
157 FilePath session_storage_directory;
158
156 private: 159 private:
157 DISALLOW_COPY_AND_ASSIGN(SessionTab); 160 DISALLOW_COPY_AND_ASSIGN(SessionTab);
158 }; 161 };
159 162
160 // SessionWindow ------------------------------------------------------------- 163 // SessionWindow -------------------------------------------------------------
161 164
162 // Describes a saved window. 165 // Describes a saved window.
163 struct SessionWindow { 166 struct SessionWindow {
164 SessionWindow(); 167 SessionWindow();
165 ~SessionWindow(); 168 ~SessionWindow();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 std::vector<SessionTab*> tabs; 200 std::vector<SessionTab*> tabs;
198 201
199 // Is the window maximized, minimized, or normal? 202 // Is the window maximized, minimized, or normal?
200 ui::WindowShowState show_state; 203 ui::WindowShowState show_state;
201 204
202 private: 205 private:
203 DISALLOW_COPY_AND_ASSIGN(SessionWindow); 206 DISALLOW_COPY_AND_ASSIGN(SessionWindow);
204 }; 207 };
205 208
206 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ 209 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_service.cc ('k') | content/browser/in_process_webkit/dom_storage_area.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698