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

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

Issue 11637053: sync: Start moving away from PREV_ID and NEXT_ID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 11 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/internal_api/write_node.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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 return kernel_->ref(field); 98 return kernel_->ref(field);
99 } 99 }
100 inline bool Get(BitTemp field) const { 100 inline bool Get(BitTemp field) const {
101 DCHECK(kernel_); 101 DCHECK(kernel_);
102 return kernel_->ref(field); 102 return kernel_->ref(field);
103 } 103 }
104 104
105 ModelType GetServerModelType() const; 105 ModelType GetServerModelType() const;
106 ModelType GetModelType() const; 106 ModelType GetModelType() const;
107 107
108 Id GetPredecessorId() const;
109 Id GetSuccessorId() const;
110
108 inline bool ExistsOnClientBecauseNameIsNonEmpty() const { 111 inline bool ExistsOnClientBecauseNameIsNonEmpty() const {
109 DCHECK(kernel_); 112 DCHECK(kernel_);
110 return !kernel_->ref(NON_UNIQUE_NAME).empty(); 113 return !kernel_->ref(NON_UNIQUE_NAME).empty();
111 } 114 }
112 115
113 inline bool IsRoot() const { 116 inline bool IsRoot() const {
114 DCHECK(kernel_); 117 DCHECK(kernel_);
115 return kernel_->ref(ID).IsRoot(); 118 return kernel_->ref(ID).IsRoot();
116 } 119 }
117 120
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 153
151 DISALLOW_COPY_AND_ASSIGN(Entry); 154 DISALLOW_COPY_AND_ASSIGN(Entry);
152 }; 155 };
153 156
154 std::ostream& operator<<(std::ostream& os, const Entry& entry); 157 std::ostream& operator<<(std::ostream& os, const Entry& entry);
155 158
156 } // namespace syncable 159 } // namespace syncable
157 } // namespace syncer 160 } // namespace syncer
158 161
159 #endif // SYNC_SYNCABLE_ENTRY_H_ 162 #endif // SYNC_SYNCABLE_ENTRY_H_
OLDNEW
« no previous file with comments | « sync/internal_api/write_node.cc ('k') | sync/syncable/entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698