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

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

Issue 10989063: Changed DB to store node positions as Ordinals. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed memory leak error in unittest Created 8 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/syncable/entry_kernel.h" 8 #include "sync/syncable/entry_kernel.h"
9 9
10 namespace syncer { 10 namespace syncer {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 inline bool Get(BitField field) const { 85 inline bool Get(BitField field) const {
86 DCHECK(kernel_); 86 DCHECK(kernel_);
87 return kernel_->ref(field); 87 return kernel_->ref(field);
88 } 88 }
89 const std::string& Get(StringField field) const; 89 const std::string& Get(StringField field) const;
90 inline const sync_pb::EntitySpecifics& Get(ProtoField field) const { 90 inline const sync_pb::EntitySpecifics& Get(ProtoField field) const {
91 DCHECK(kernel_); 91 DCHECK(kernel_);
92 return kernel_->ref(field); 92 return kernel_->ref(field);
93 } 93 }
94 inline const NodeOrdinal& Get(OrdinalField field) const {
95 DCHECK(kernel_);
96 return kernel_->ref(field);
97 }
94 inline bool Get(BitTemp field) const { 98 inline bool Get(BitTemp field) const {
95 DCHECK(kernel_); 99 DCHECK(kernel_);
96 return kernel_->ref(field); 100 return kernel_->ref(field);
97 } 101 }
98 102
99 ModelType GetServerModelType() const; 103 ModelType GetServerModelType() const;
100 ModelType GetModelType() const; 104 ModelType GetModelType() const;
101 105
102 inline bool ExistsOnClientBecauseNameIsNonEmpty() const { 106 inline bool ExistsOnClientBecauseNameIsNonEmpty() const {
103 DCHECK(kernel_); 107 DCHECK(kernel_);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 148
145 DISALLOW_COPY_AND_ASSIGN(Entry); 149 DISALLOW_COPY_AND_ASSIGN(Entry);
146 }; 150 };
147 151
148 std::ostream& operator<<(std::ostream& os, const Entry& entry); 152 std::ostream& operator<<(std::ostream& os, const Entry& entry);
149 153
150 } // namespace syncable 154 } // namespace syncable
151 } // namespace syncer 155 } // namespace syncer
152 156
153 #endif // SYNC_SYNCABLE_ENTRY_H_ 157 #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