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 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" | |
15 #include "components/sessions/session_id.h" | 14 #include "components/sessions/session_id.h" |
16 #include "components/sessions/session_types.h" | 15 #include "components/sessions/session_types.h" |
17 #include "components/sync_driver/glue/synced_session.h" | 16 #include "components/sync_driver/glue/synced_session.h" |
18 #include "components/sync_driver/tab_node_pool.h" | 17 #include "components/sync_driver/tab_node_pool.h" |
19 | 18 |
20 namespace browser_sync { | 19 namespace browser_sync { |
21 | 20 |
22 // Class to manage synced sessions. The tracker will own all SyncedSession | 21 // Class to manage synced sessions. The tracker will own all SyncedSession |
23 // and SyncedSessionTab objects it creates, and deletes them appropriately on | 22 // and SyncedSessionTab objects it creates, and deletes them appropriately on |
24 // destruction. | 23 // destruction. |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // The tag for this machine's local session, so we can distinguish the foreign | 236 // The tag for this machine's local session, so we can distinguish the foreign |
238 // sessions. | 237 // sessions. |
239 std::string local_session_tag_; | 238 std::string local_session_tag_; |
240 | 239 |
241 DISALLOW_COPY_AND_ASSIGN(SyncedSessionTracker); | 240 DISALLOW_COPY_AND_ASSIGN(SyncedSessionTracker); |
242 }; | 241 }; |
243 | 242 |
244 } // namespace browser_sync | 243 } // namespace browser_sync |
245 | 244 |
246 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_TRACKER_H_ | 245 #endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_SESSION_TRACKER_H_ |
OLD | NEW |