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

Side by Side Diff: components/sync/syncable/entry.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
« 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
18 class Cryptographer; 19 class Cryptographer;
19 class ReadNode; 20 class ReadNode;
20 21
21 namespace syncable { 22 namespace syncable {
22 23
23 class Directory; 24 class Directory;
24 class BaseTransaction; 25 class BaseTransaction;
25 26
26 // A read-only meta entry 27 // A read-only meta entry
27 // Instead of: 28 // Instead of:
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 264
264 inline explicit Entry(BaseTransaction* trans) 265 inline explicit Entry(BaseTransaction* trans)
265 : basetrans_(trans), kernel_(NULL) {} 266 : basetrans_(trans), kernel_(NULL) {}
266 267
267 protected: 268 protected:
268 BaseTransaction* const basetrans_; 269 BaseTransaction* const basetrans_;
269 270
270 EntryKernel* kernel_; 271 EntryKernel* kernel_;
271 272
272 private: 273 private:
273 friend class Directory; 274 friend class syncer::syncable::Directory;
274 friend class syncer::ReadNode; 275 friend class syncer::ReadNode;
275 friend std::ostream& operator<<(std::ostream& s, const Entry& e); 276 friend std::ostream& operator<<(std::ostream& s, const Entry& e);
276 277
277 DISALLOW_COPY_AND_ASSIGN(Entry); 278 DISALLOW_COPY_AND_ASSIGN(Entry);
278 }; 279 };
279 280
280 std::ostream& operator<<(std::ostream& os, const Entry& entry); 281 std::ostream& operator<<(std::ostream& os, const Entry& entry);
281 282
282 } // namespace syncable 283 } // namespace syncable
283 } // namespace syncer 284 } // namespace syncer
284 285
285 #endif // COMPONENTS_SYNC_SYNCABLE_ENTRY_H_ 286 #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