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

Side by Side Diff: components/sync/syncable/syncable_id.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: 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 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_SYNCABLE_SYNCABLE_ID_H_ 5 #ifndef COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_
6 #define COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_ 6 #define COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <limits> 9 #include <limits>
10 #include <memory> 10 #include <memory>
11 #include <sstream> 11 #include <sstream>
12 #include <string> 12 #include <string>
13 13
14 #include "base/containers/hash_tables.h" 14 #include "base/containers/hash_tables.h"
15 15
16 namespace base { 16 namespace base {
17 class StringValue; 17 class StringValue;
18 } // namespace base 18 }
19 19
20 namespace sql { 20 namespace sql {
21 class Statement; 21 class Statement;
22 } // namespace sql 22 }
23 23
24 namespace syncer { 24 namespace syncer {
25 namespace syncable { 25 namespace syncable {
26 26 struct EntryKernel;
27 class Id; 27 class Id;
28 struct EntryKernel;
29 28
30 std::ostream& operator<<(std::ostream& out, const Id& id); 29 std::ostream& operator<<(std::ostream& out, const Id& id);
31 30
32 // For historical reasons, 3 concepts got everloaded into the Id: 31 // For historical reasons, 3 concepts got everloaded into the Id:
33 // 1. A unique, opaque identifier for the object. 32 // 1. A unique, opaque identifier for the object.
34 // 2. Flag specifing whether server know about this object. 33 // 2. Flag specifing whether server know about this object.
35 // 3. Flag for root. 34 // 3. Flag for root.
36 // 35 //
37 // We originally wrapped an integer for this information, but now we use a 36 // We originally wrapped an integer for this information, but now we use a
38 // string. It will have one of three forms: 37 // string. It will have one of three forms:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 friend std::ostream& operator<<(std::ostream& out, const Id& id); 93 friend std::ostream& operator<<(std::ostream& out, const Id& id);
95 friend class SyncableIdTest; 94 friend class SyncableIdTest;
96 95
97 std::string s_; 96 std::string s_;
98 }; 97 };
99 98
100 } // namespace syncable 99 } // namespace syncable
101 } // namespace syncer 100 } // namespace syncer
102 101
103 #endif // COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_ 102 #endif // COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_
OLDNEW
« no previous file with comments | « components/sync/syncable/parent_child_index.cc ('k') | components/sync/syncable/syncable_proto_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698