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

Side by Side Diff: chrome/browser/sync/glue/synced_session_tracker.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
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_SYNC_GLUE_SYNCED_SESSION_TRACKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_TRACKER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_TRACKER_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_TRACKER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "chrome/browser/sessions/session_id.h" 16 #include "chrome/browser/sessions/session_id.h"
17 #include "chrome/browser/sessions/session_types.h" 17 #include "chrome/browser/sessions/session_types.h"
18 #include "chrome/browser/sync/glue/synced_session.h"
18 19
19 namespace browser_sync { 20 namespace browser_sync {
20 21
21 // Class to manage synced sessions. The tracker will own all SyncedSession 22 // Class to manage synced sessions. The tracker will own all SyncedSession
22 // and SessionTab objects it creates, and deletes them appropriately on 23 // and SessionTab objects it creates, and deletes them appropriately on
23 // destruction. 24 // destruction.
24 // Note: SyncedSession objects are created for all synced sessions, including 25 // Note: SyncedSession objects are created for all synced sessions, including
25 // the local session (whose tag we maintain separately). 26 // the local session (whose tag we maintain separately).
26 class SyncedSessionTracker { 27 class SyncedSessionTracker {
27 public: 28 public:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // The tag for this machine's local session, so we can distinguish the foreign 117 // The tag for this machine's local session, so we can distinguish the foreign
117 // sessions. 118 // sessions.
118 std::string local_session_tag_; 119 std::string local_session_tag_;
119 120
120 DISALLOW_COPY_AND_ASSIGN(SyncedSessionTracker); 121 DISALLOW_COPY_AND_ASSIGN(SyncedSessionTracker);
121 }; 122 };
122 123
123 } // namespace browser_sync 124 } // namespace browser_sync
124 125
125 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_TRACKER_H_ 126 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_TRACKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/synced_session.cc ('k') | chrome/browser/sync/profile_sync_service_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698