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

Side by Side Diff: components/sync_sessions/tab_node_pool.h

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. Created 4 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TAB_NODE_POOL_H_ 5 #ifndef COMPONENTS_SYNC_SESSIONS_TAB_NODE_POOL_H_
6 #define COMPONENTS_SYNC_SESSIONS_TAB_NODE_POOL_H_ 6 #define COMPONENTS_SYNC_SESSIONS_TAB_NODE_POOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "components/sessions/core/session_id.h" 15 #include "components/sessions/core/session_id.h"
16 #include "components/sync/api/sync_change_processor.h" 16 #include "components/sync/api/sync_change_processor.h"
17 17
18 namespace syncer { 18 namespace syncer {
19 class SyncChangeProcessor; 19 class SyncChangeProcessor;
20 } 20 } // namespace syncer
21 21
22 namespace sync_sessions { 22 namespace sync_sessions {
23 23
24 // A pool for managing free/used tab sync nodes for the *local* session. 24 // A pool for managing free/used tab sync nodes for the *local* session.
25 // Performs lazy creation of sync nodes when necessary. 25 // Performs lazy creation of sync nodes when necessary.
26 // Note: We make use of the following "id's" 26 // Note: We make use of the following "id's"
27 // - a tab_id: created by session service, unique to this client 27 // - a tab_id: created by session service, unique to this client
28 // - a tab_node_id: the id for a particular sync tab node. This is used 28 // - a tab_node_id: the id for a particular sync tab node. This is used
29 // to generate the sync tab node tag through: 29 // to generate the sync tab node tag through:
30 // tab_tag = StringPrintf("%s_%ui", local_session_tag, tab_node_id); 30 // tab_tag = StringPrintf("%s_%ui", local_session_tag, tab_node_id);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // The machine tag associated with this tab pool. Used in the title of new 155 // The machine tag associated with this tab pool. Used in the title of new
156 // sync nodes. 156 // sync nodes.
157 std::string machine_tag_; 157 std::string machine_tag_;
158 158
159 DISALLOW_COPY_AND_ASSIGN(TabNodePool); 159 DISALLOW_COPY_AND_ASSIGN(TabNodePool);
160 }; 160 };
161 161
162 } // namespace sync_sessions 162 } // namespace sync_sessions
163 163
164 #endif // COMPONENTS_SYNC_SESSIONS_TAB_NODE_POOL_H_ 164 #endif // COMPONENTS_SYNC_SESSIONS_TAB_NODE_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698