OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 #include <vector> |
| 11 |
| 12 struct SessionWindow; |
| 13 |
| 14 namespace browser_sync { |
| 15 |
| 16 // Defines a synced session for use by session sync. A synced session is a |
| 17 // list of windows along with a unique session identifer (tag) and meta-data |
| 18 // about the device being synced. |
| 19 struct SyncedSession { |
| 20 // The type of device. |
| 21 enum DeviceType { |
| 22 TYPE_WIN = 1, |
| 23 TYPE_MACOSX = 2, |
| 24 TYPE_LINUX = 3, |
| 25 TYPE_CHROMEOS = 4, |
| 26 TYPE_OTHER = 5 |
| 27 }; |
| 28 |
| 29 SyncedSession(); |
| 30 ~SyncedSession(); |
| 31 |
| 32 // Unique tag for each session. |
| 33 std::string session_tag; |
| 34 // User-visible name |
| 35 std::string session_name; |
| 36 DeviceType device_type; |
| 37 std::vector<SessionWindow*> windows; |
| 38 }; |
| 39 |
| 40 } // namespace browser_sync |
| 41 |
| 42 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_ |
OLD | NEW |