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

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: Created 9 years 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 bool pinned; 143 bool pinned;
143 144
144 // If non-empty, this tab is an app tab and this is the id of the extension. 145 // If non-empty, this tab is an app tab and this is the id of the extension.
145 std::string extension_app_id; 146 std::string extension_app_id;
146 147
147 // Timestamp for when this tab was last modified. 148 // Timestamp for when this tab was last modified.
148 base::Time timestamp; 149 base::Time timestamp;
149 150
150 std::vector<TabNavigation> navigations; 151 std::vector<TabNavigation> navigations;
151 152
153 FilePath session_storage_directory;
154
152 private: 155 private:
153 DISALLOW_COPY_AND_ASSIGN(SessionTab); 156 DISALLOW_COPY_AND_ASSIGN(SessionTab);
154 }; 157 };
155 158
156 // SessionWindow ------------------------------------------------------------- 159 // SessionWindow -------------------------------------------------------------
157 160
158 // Describes a saved window. 161 // Describes a saved window.
159 struct SessionWindow { 162 struct SessionWindow {
160 SessionWindow(); 163 SessionWindow();
161 ~SessionWindow(); 164 ~SessionWindow();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 std::vector<SessionTab*> tabs; 196 std::vector<SessionTab*> tabs;
194 197
195 // Is the window maximized, minimized, or normal? 198 // Is the window maximized, minimized, or normal?
196 ui::WindowShowState show_state; 199 ui::WindowShowState show_state;
197 200
198 private: 201 private:
199 DISALLOW_COPY_AND_ASSIGN(SessionWindow); 202 DISALLOW_COPY_AND_ASSIGN(SessionWindow);
200 }; 203 };
201 204
202 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ 205 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698