OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |