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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 }; | 198 }; |
199 | 199 |
200 // Defines a synced session for use by session sync. A synced session is a | 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). | 201 // list of windows along with a unique session identifer (tag). |
202 struct SyncedSession { | 202 struct SyncedSession { |
203 SyncedSession(); | 203 SyncedSession(); |
204 ~SyncedSession(); | 204 ~SyncedSession(); |
205 | 205 |
206 // Unique tag for each session. | 206 // Unique tag for each session. |
207 std::string session_tag; | 207 std::string session_tag; |
| 208 // User-visible name |
| 209 std::string client_name; |
| 210 // The type of device. |
| 211 enum DeviceType { |
| 212 TYPE_WIN = 1, |
| 213 TYPE_MAC = 2, |
| 214 TYPE_LINUX = 3, |
| 215 TYPE_CROS = 4, |
| 216 TYPE_OTHER = 5 |
| 217 }; |
| 218 DeviceType device_type; |
208 std::vector<SessionWindow*> windows; | 219 std::vector<SessionWindow*> windows; |
209 }; | 220 }; |
210 | 221 |
211 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ | 222 #endif // CHROME_BROWSER_SESSIONS_SESSION_TYPES_H_ |
OLD | NEW |