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

Side by Side Diff: components/sync/syncable/syncable_id.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 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 } 18 } // namespace base
19 19
20 namespace sql { 20 namespace sql {
21 class Statement; 21 class Statement;
22 } 22 } // namespace sql
23 23
24 namespace syncer { 24 namespace syncer {
25 namespace syncable { 25 namespace syncable {
26
27 class Id;
26 struct EntryKernel; 28 struct EntryKernel;
27 class Id;
28 29
29 std::ostream& operator<<(std::ostream& out, const Id& id); 30 std::ostream& operator<<(std::ostream& out, const Id& id);
30 31
31 // For historical reasons, 3 concepts got everloaded into the Id: 32 // For historical reasons, 3 concepts got everloaded into the Id:
32 // 1. A unique, opaque identifier for the object. 33 // 1. A unique, opaque identifier for the object.
33 // 2. Flag specifing whether server know about this object. 34 // 2. Flag specifing whether server know about this object.
34 // 3. Flag for root. 35 // 3. Flag for root.
35 // 36 //
36 // We originally wrapped an integer for this information, but now we use a 37 // We originally wrapped an integer for this information, but now we use a
37 // string. It will have one of three forms: 38 // string. It will have one of three forms:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 friend std::ostream& operator<<(std::ostream& out, const Id& id); 94 friend std::ostream& operator<<(std::ostream& out, const Id& id);
94 friend class SyncableIdTest; 95 friend class SyncableIdTest;
95 96
96 std::string s_; 97 std::string s_;
97 }; 98 };
98 99
99 } // namespace syncable 100 } // namespace syncable
100 } // namespace syncer 101 } // namespace syncer
101 102
102 #endif // COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ID_H_ 103 #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