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

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

Issue 480883002: Move session_id.{cc,h} from chrome/browser/sessions to components/sessions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "chrome/browser/sessions/session_id.h"
16 #include "chrome/browser/sessions/session_types.h" 15 #include "chrome/browser/sessions/session_types.h"
17 #include "chrome/browser/sync/glue/synced_session.h" 16 #include "chrome/browser/sync/glue/synced_session.h"
18 #include "chrome/browser/sync/sessions/tab_node_pool.h" 17 #include "chrome/browser/sync/sessions/tab_node_pool.h"
18 #include "components/sessions/session_id.h"
19 19
20 namespace browser_sync { 20 namespace browser_sync {
21 21
22 // Class to manage synced sessions. The tracker will own all SyncedSession 22 // Class to manage synced sessions. The tracker will own all SyncedSession
23 // and SyncedSessionTab objects it creates, and deletes them appropriately on 23 // and SyncedSessionTab objects it creates, and deletes them appropriately on
24 // destruction. 24 // destruction.
25 // Note: SyncedSession objects are created for all synced sessions, including 25 // Note: SyncedSession objects are created for all synced sessions, including
26 // the local session (whose tag we maintain separately). 26 // the local session (whose tag we maintain separately).
27 class SyncedSessionTracker { 27 class SyncedSessionTracker {
28 public: 28 public:
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // The tag for this machine's local session, so we can distinguish the foreign 234 // The tag for this machine's local session, so we can distinguish the foreign
235 // sessions. 235 // sessions.
236 std::string local_session_tag_; 236 std::string local_session_tag_;
237 237
238 DISALLOW_COPY_AND_ASSIGN(SyncedSessionTracker); 238 DISALLOW_COPY_AND_ASSIGN(SyncedSessionTracker);
239 }; 239 };
240 240
241 } // namespace browser_sync 241 } // namespace browser_sync
242 242
243 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_TRACKER_H_ 243 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_TRACKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/synced_session.h ('k') | chrome/browser/sync/glue/synced_tab_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698