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 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/base/sync_export.h" | 8 #include "sync/base/sync_export.h" |
9 #include "sync/syncable/entry_kernel.h" | 9 #include "sync/syncable/entry_kernel.h" |
10 | 10 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 const UniquePosition& GetServerUniquePosition() const { | 189 const UniquePosition& GetServerUniquePosition() const { |
190 DCHECK(kernel_); | 190 DCHECK(kernel_); |
191 return kernel_->ref(SERVER_UNIQUE_POSITION); | 191 return kernel_->ref(SERVER_UNIQUE_POSITION); |
192 } | 192 } |
193 | 193 |
194 const UniquePosition& GetUniquePosition() const { | 194 const UniquePosition& GetUniquePosition() const { |
195 DCHECK(kernel_); | 195 DCHECK(kernel_); |
196 return kernel_->ref(UNIQUE_POSITION); | 196 return kernel_->ref(UNIQUE_POSITION); |
197 } | 197 } |
198 | 198 |
| 199 const sync_pb::AttachmentMetadata& GetAttachmentMetadata() const { |
| 200 DCHECK(kernel_); |
| 201 return kernel_->ref(ATTACHMENT_METADATA); |
| 202 } |
| 203 |
199 bool GetSyncing() const { | 204 bool GetSyncing() const { |
200 DCHECK(kernel_); | 205 DCHECK(kernel_); |
201 return kernel_->ref(SYNCING); | 206 return kernel_->ref(SYNCING); |
202 } | 207 } |
203 | 208 |
204 ModelType GetServerModelType() const; | 209 ModelType GetServerModelType() const; |
205 ModelType GetModelType() const; | 210 ModelType GetModelType() const; |
206 | 211 |
207 Id GetPredecessorId() const; | 212 Id GetPredecessorId() const; |
208 Id GetSuccessorId() const; | 213 Id GetSuccessorId() const; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 265 |
261 DISALLOW_COPY_AND_ASSIGN(Entry); | 266 DISALLOW_COPY_AND_ASSIGN(Entry); |
262 }; | 267 }; |
263 | 268 |
264 std::ostream& operator<<(std::ostream& os, const Entry& entry); | 269 std::ostream& operator<<(std::ostream& os, const Entry& entry); |
265 | 270 |
266 } // namespace syncable | 271 } // namespace syncable |
267 } // namespace syncer | 272 } // namespace syncer |
268 | 273 |
269 #endif // SYNC_SYNCABLE_ENTRY_H_ | 274 #endif // SYNC_SYNCABLE_ENTRY_H_ |
OLD | NEW |