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

Side by Side Diff: chrome/browser/sessions/session_types.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: Split off platform-specific code to various util files, addressed comments 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
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
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 {
sky 2011/08/31 03:35:16 enum before constructor.
Yaron 2011/08/31 23:23:22 Done.
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;
sky 2011/08/31 03:35:16 If this isn't used in chrome/browser/sessions, I d
Yaron 2011/08/31 23:23:22 Well it composes SessionWindows and is related to
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698