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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 const UniquePosition& GetUniquePosition() const { | 203 const UniquePosition& GetUniquePosition() const { |
204 DCHECK(kernel_); | 204 DCHECK(kernel_); |
205 return kernel_->ref(UNIQUE_POSITION); | 205 return kernel_->ref(UNIQUE_POSITION); |
206 } | 206 } |
207 | 207 |
208 const sync_pb::AttachmentMetadata& GetAttachmentMetadata() const { | 208 const sync_pb::AttachmentMetadata& GetAttachmentMetadata() const { |
209 DCHECK(kernel_); | 209 DCHECK(kernel_); |
210 return kernel_->ref(ATTACHMENT_METADATA); | 210 return kernel_->ref(ATTACHMENT_METADATA); |
211 } | 211 } |
212 | 212 |
| 213 const sync_pb::AttachmentMetadata& GetServerAttachmentMetadata() const { |
| 214 DCHECK(kernel_); |
| 215 return kernel_->ref(SERVER_ATTACHMENT_METADATA); |
| 216 } |
| 217 |
213 bool GetSyncing() const { | 218 bool GetSyncing() const { |
214 DCHECK(kernel_); | 219 DCHECK(kernel_); |
215 return kernel_->ref(SYNCING); | 220 return kernel_->ref(SYNCING); |
216 } | 221 } |
217 | 222 |
218 ModelType GetServerModelType() const; | 223 ModelType GetServerModelType() const; |
219 ModelType GetModelType() const; | 224 ModelType GetModelType() const; |
220 | 225 |
221 Id GetPredecessorId() const; | 226 Id GetPredecessorId() const; |
222 Id GetSuccessorId() const; | 227 Id GetSuccessorId() const; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 283 |
279 DISALLOW_COPY_AND_ASSIGN(Entry); | 284 DISALLOW_COPY_AND_ASSIGN(Entry); |
280 }; | 285 }; |
281 | 286 |
282 std::ostream& operator<<(std::ostream& os, const Entry& entry); | 287 std::ostream& operator<<(std::ostream& os, const Entry& entry); |
283 | 288 |
284 } // namespace syncable | 289 } // namespace syncable |
285 } // namespace syncer | 290 } // namespace syncer |
286 | 291 |
287 #endif // SYNC_SYNCABLE_ENTRY_H_ | 292 #endif // SYNC_SYNCABLE_ENTRY_H_ |
OLD | NEW |