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

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

Issue 211523002: Add AttachmentMetadata to Sync's EntryKernel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot about using META_PROTO_TIMES_VALS in the test. Created 6 years, 8 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
« no previous file with comments | « sync/syncable/directory_backing_store_unittest.cc ('k') | sync/syncable/entry.cc » ('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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « sync/syncable/directory_backing_store_unittest.cc ('k') | sync/syncable/entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698