Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(926)

Side by Side Diff: sync/syncable/entry.h

Issue 395913003: Add server_attachment_metadata field to EntryKernel and sync database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/syncable/directory_backing_store_unittest.cc ('k') | sync/syncable/entry_kernel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « sync/syncable/directory_backing_store_unittest.cc ('k') | sync/syncable/entry_kernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698