| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_TRACKER_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_TRACKER_H_ |
| 6 #define COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_TRACKER_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_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 "components/sessions/core/session_id.h" | 14 #include "components/sessions/core/session_id.h" |
| 15 #include "components/sessions/core/session_types.h" | 15 #include "components/sessions/core/session_types.h" |
| 16 #include "components/sync_driver/glue/synced_session.h" | 16 #include "components/sync_sessions/synced_session.h" |
| 17 #include "components/sync_driver/tab_node_pool.h" | 17 #include "components/sync_sessions/tab_node_pool.h" |
| 18 | 18 |
| 19 namespace sync_sessions { | 19 namespace sync_sessions { |
| 20 class SyncSessionsClient; | 20 class SyncSessionsClient; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace browser_sync { | 23 namespace browser_sync { |
| 24 | 24 |
| 25 // Class to manage synced sessions. The tracker will own all SyncedSession | 25 // Class to manage synced sessions. The tracker will own all SyncedSession |
| 26 // and SyncedSessionTab objects it creates, and deletes them appropriately on | 26 // and SyncedSessionTab objects it creates, and deletes them appropriately on |
| 27 // destruction. | 27 // destruction. |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // The tag for this machine's local session, so we can distinguish the foreign | 254 // The tag for this machine's local session, so we can distinguish the foreign |
| 255 // sessions. | 255 // sessions. |
| 256 std::string local_session_tag_; | 256 std::string local_session_tag_; |
| 257 | 257 |
| 258 DISALLOW_COPY_AND_ASSIGN(SyncedSessionTracker); | 258 DISALLOW_COPY_AND_ASSIGN(SyncedSessionTracker); |
| 259 }; | 259 }; |
| 260 | 260 |
| 261 } // namespace browser_sync | 261 } // namespace browser_sync |
| 262 | 262 |
| 263 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_TRACKER_H_ | 263 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_TRACKER_H_ |
| OLD | NEW |