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

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: Fix tests 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..fcac6ecdda628c1a069116ac62f5f69592062f48
--- /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_SESSION_H_
+#define CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_
+#pragma once
+
+#include <string>
+#include <vector>
+
+struct 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 session_name;
+ DeviceType device_type;
+ std::vector<SessionWindow*> windows;
+};
+
+} // namespace browser_sync
+
+#endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_H_
« 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