Chromium Code Reviews| Index: chrome/browser/sync/glue/synced_session.h |
| diff --git a/chrome/browser/sync/glue/synced_session.h b/chrome/browser/sync/glue/synced_session.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7c36c7b4c864ca72c098251575356f4c327d9ffe |
| --- /dev/null |
| +++ b/chrome/browser/sync/glue/synced_session.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSIONS_H_ |
| +#define CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSIONS_H_ |
| +#pragma once |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +class SessionWindow; |
| + |
| +namespace browser_sync { |
| + |
| +// Defines a synced session for use by session sync. A synced session is a |
| +// list of windows along with a unique session identifer (tag) and meta-data |
| +// about the device being synced. |
| +struct SyncedSession { |
| + // The type of device. |
| + enum DeviceType { |
| + TYPE_WIN = 1, |
| + TYPE_MACOSX = 2, |
| + TYPE_LINUX = 3, |
| + TYPE_CHROMEOS = 4, |
| + TYPE_OTHER = 5 |
| + }; |
| + |
| + SyncedSession(); |
| + ~SyncedSession(); |
| + |
| + // Unique tag for each session. |
| + std::string session_tag; |
| + // User-visible name |
| + std::string client_name; |
|
Nicolas Zea
2011/09/01 00:03:36
session_name (may as well have them match)
Yaron
2011/09/01 20:16:17
Done. I'll update the proto to session_name in a f
|
| + DeviceType device_type; |
| + std::vector<SessionWindow*> windows; |
| +}; |
| + |
| +} // namespace browser_sync |
| + |
| +#endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSIONS_H_ |