Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: chrome/browser/sync/glue/synced_session.h

Issue 7740055: Set user-visible machine names and devices types for synced sessions. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix tests Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/session_model_associator_unittest.cc ('k') | chrome/browser/sync/glue/synced_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698