OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |