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> |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // The tabs, ordered by visual order. | 190 // The tabs, ordered by visual order. |
191 std::vector<SessionTab*> tabs; | 191 std::vector<SessionTab*> tabs; |
192 | 192 |
193 // Is the window maximized, minimized, or normal? | 193 // Is the window maximized, minimized, or normal? |
194 ui::WindowShowState show_state; | 194 ui::WindowShowState show_state; |
195 | 195 |
196 private: | 196 private: |
197 DISALLOW_COPY_AND_ASSIGN(SessionWindow); | 197 DISALLOW_COPY_AND_ASSIGN(SessionWindow); |
198 }; | 198 }; |
199 | 199 |
200 // Defines a synced session for use by session sync. A synced session is a | |
201 // list of windows along with a unique session identifer (tag). | |
202 struct SyncedSession { | |
203 SyncedSession(); | |
204 ~SyncedSession(); | |
205 | |
206 // Unique tag for each session. | |
207 std::string session_tag; | |
208 std::vector<SessionWindow*> windows; | |
209 }; | |
210 | |
211 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 200 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
OLD | NEW |