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

Unified 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: Localized changes back sync/glue/ Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698