| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 SYNC_SYNCABLE_ENTRY_H_ | 5 #ifndef SYNC_SYNCABLE_ENTRY_H_ |
| 6 #define SYNC_SYNCABLE_ENTRY_H_ | 6 #define SYNC_SYNCABLE_ENTRY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "sync/syncable/entry_kernel.h" | 9 #include "sync/syncable/entry_kernel.h" |
| 10 | 10 |
| 11 namespace csync { | 11 namespace syncer { |
| 12 class ReadNode; | 12 class ReadNode; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace syncable { | 15 namespace syncable { |
| 16 | 16 |
| 17 class Directory; | 17 class Directory; |
| 18 class BaseTransaction; | 18 class BaseTransaction; |
| 19 | 19 |
| 20 // A read-only meta entry | 20 // A read-only meta entry |
| 21 // Instead of: | 21 // Instead of: |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 : basetrans_(trans), | 134 : basetrans_(trans), |
| 135 kernel_(NULL) { } | 135 kernel_(NULL) { } |
| 136 | 136 |
| 137 protected: | 137 protected: |
| 138 BaseTransaction* const basetrans_; | 138 BaseTransaction* const basetrans_; |
| 139 | 139 |
| 140 EntryKernel* kernel_; | 140 EntryKernel* kernel_; |
| 141 | 141 |
| 142 private: | 142 private: |
| 143 friend class Directory; | 143 friend class Directory; |
| 144 friend class csync::ReadNode; | 144 friend class syncer::ReadNode; |
| 145 friend std::ostream& operator << (std::ostream& s, const Entry& e); | 145 friend std::ostream& operator << (std::ostream& s, const Entry& e); |
| 146 | 146 |
| 147 DISALLOW_COPY_AND_ASSIGN(Entry); | 147 DISALLOW_COPY_AND_ASSIGN(Entry); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 std::ostream& operator<<(std::ostream& os, const Entry& entry); | 150 std::ostream& operator<<(std::ostream& os, const Entry& entry); |
| 151 | 151 |
| 152 } // namespace syncable | 152 } // namespace syncable |
| 153 | 153 |
| 154 #endif // SYNC_SYNCABLE_ENTRY_H_ | 154 #endif // SYNC_SYNCABLE_ENTRY_H_ |
| OLD | NEW |