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

Side by Side Diff: components/sync/syncable/entry.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
« no previous file with comments | « components/sync/syncable/directory_unittest.cc ('k') | components/sync/syncable/entry_kernel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ENTRY_H_ 5 #ifndef COMPONENTS_SYNC_SYNCABLE_ENTRY_H_
6 #define COMPONENTS_SYNC_SYNCABLE_ENTRY_H_ 6 #define COMPONENTS_SYNC_SYNCABLE_ENTRY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "components/sync/syncable/entry_kernel.h" 15 #include "components/sync/syncable/entry_kernel.h"
16 16
17 namespace syncer { 17 namespace syncer {
18
19 class Cryptographer; 18 class Cryptographer;
20 class ReadNode; 19 class ReadNode;
21 20
22 namespace syncable { 21 namespace syncable {
23 22
24 class Directory; 23 class Directory;
25 class BaseTransaction; 24 class BaseTransaction;
26 25
27 // A read-only meta entry 26 // A read-only meta entry
28 // Instead of: 27 // Instead of:
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 263
265 inline explicit Entry(BaseTransaction* trans) 264 inline explicit Entry(BaseTransaction* trans)
266 : basetrans_(trans), kernel_(NULL) {} 265 : basetrans_(trans), kernel_(NULL) {}
267 266
268 protected: 267 protected:
269 BaseTransaction* const basetrans_; 268 BaseTransaction* const basetrans_;
270 269
271 EntryKernel* kernel_; 270 EntryKernel* kernel_;
272 271
273 private: 272 private:
274 friend class syncer::syncable::Directory; 273 friend class Directory;
275 friend class syncer::ReadNode; 274 friend class syncer::ReadNode;
276 friend std::ostream& operator<<(std::ostream& s, const Entry& e); 275 friend std::ostream& operator<<(std::ostream& s, const Entry& e);
277 276
278 DISALLOW_COPY_AND_ASSIGN(Entry); 277 DISALLOW_COPY_AND_ASSIGN(Entry);
279 }; 278 };
280 279
281 std::ostream& operator<<(std::ostream& os, const Entry& entry); 280 std::ostream& operator<<(std::ostream& os, const Entry& entry);
282 281
283 } // namespace syncable 282 } // namespace syncable
284 } // namespace syncer 283 } // namespace syncer
285 284
286 #endif // COMPONENTS_SYNC_SYNCABLE_ENTRY_H_ 285 #endif // COMPONENTS_SYNC_SYNCABLE_ENTRY_H_
OLDNEW
« no previous file with comments | « components/sync/syncable/directory_unittest.cc ('k') | components/sync/syncable/entry_kernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698