| 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 | 7 |
| 8 #include "sync/syncable/entry_kernel.h" | 8 #include "sync/syncable/entry_kernel.h" |
| 9 | 9 |
| 10 namespace syncer { | 10 namespace syncer { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 inline bool Get(BitField field) const { | 85 inline bool Get(BitField field) const { |
| 86 DCHECK(kernel_); | 86 DCHECK(kernel_); |
| 87 return kernel_->ref(field); | 87 return kernel_->ref(field); |
| 88 } | 88 } |
| 89 const std::string& Get(StringField field) const; | 89 const std::string& Get(StringField field) const; |
| 90 inline const sync_pb::EntitySpecifics& Get(ProtoField field) const { | 90 inline const sync_pb::EntitySpecifics& Get(ProtoField field) const { |
| 91 DCHECK(kernel_); | 91 DCHECK(kernel_); |
| 92 return kernel_->ref(field); | 92 return kernel_->ref(field); |
| 93 } | 93 } |
| 94 inline const NodeOrdinal& Get(OrdinalField field) const { |
| 95 DCHECK(kernel_); |
| 96 return kernel_->ref(field); |
| 97 } |
| 94 inline bool Get(BitTemp field) const { | 98 inline bool Get(BitTemp field) const { |
| 95 DCHECK(kernel_); | 99 DCHECK(kernel_); |
| 96 return kernel_->ref(field); | 100 return kernel_->ref(field); |
| 97 } | 101 } |
| 98 | 102 |
| 99 ModelType GetServerModelType() const; | 103 ModelType GetServerModelType() const; |
| 100 ModelType GetModelType() const; | 104 ModelType GetModelType() const; |
| 101 | 105 |
| 102 inline bool ExistsOnClientBecauseNameIsNonEmpty() const { | 106 inline bool ExistsOnClientBecauseNameIsNonEmpty() const { |
| 103 DCHECK(kernel_); | 107 DCHECK(kernel_); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 148 |
| 145 DISALLOW_COPY_AND_ASSIGN(Entry); | 149 DISALLOW_COPY_AND_ASSIGN(Entry); |
| 146 }; | 150 }; |
| 147 | 151 |
| 148 std::ostream& operator<<(std::ostream& os, const Entry& entry); | 152 std::ostream& operator<<(std::ostream& os, const Entry& entry); |
| 149 | 153 |
| 150 } // namespace syncable | 154 } // namespace syncable |
| 151 } // namespace syncer | 155 } // namespace syncer |
| 152 | 156 |
| 153 #endif // SYNC_SYNCABLE_ENTRY_H_ | 157 #endif // SYNC_SYNCABLE_ENTRY_H_ |
| OLD | NEW |