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

Unified Diff: sync/syncable/entry.h

Issue 11636006: WIP: The Bookmark Position Megapatch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Various updates, including switch suffix to unique_client_tag style Created 8 years 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/entry.h
diff --git a/sync/syncable/entry.h b/sync/syncable/entry.h
index eec8051b51530b697de30d01acf54cbffa27e881..1055cc455b96080c8dfdebe5f58912d7bb1c2d7d 100644
--- a/sync/syncable/entry.h
+++ b/sync/syncable/entry.h
@@ -92,10 +92,11 @@ class Entry {
DCHECK(kernel_);
return kernel_->ref(field);
}
- inline const NodeOrdinal& Get(OrdinalField field) const {
+ inline const UniquePosition& Get(UniquePositionField field) const {
DCHECK(kernel_);
return kernel_->ref(field);
}
+ const std::string& Get(BytesField field) const;
inline bool Get(BitTemp field) const {
DCHECK(kernel_);
return kernel_->ref(field);
@@ -104,6 +105,10 @@ class Entry {
ModelType GetServerModelType() const;
ModelType GetModelType() const;
+ Id GetPredecessorId() const;
+ Id GetSuccessorId() const;
+ Id GetFirstChildId() const;
+
inline bool ExistsOnClientBecauseNameIsNonEmpty() const {
DCHECK(kernel_);
return !kernel_->ref(NON_UNIQUE_NAME).empty();
@@ -120,12 +125,6 @@ class Entry {
return *kernel_;
}
- // Compute a local predecessor position for |update_item|, based on its
- // absolute server position. The returned ID will be a valid predecessor
- // under SERVER_PARENT_ID that is consistent with the
- // SERVER_POSITION_IN_PARENT ordering.
- Id ComputePrevIdFromServerPosition(const Id& parent_id) const;
-
// Dumps all entry info into a DictionaryValue and returns it.
// Transfers ownership of the DictionaryValue to the caller.
base::DictionaryValue* ToValue(Cryptographer* cryptographer) const;
« 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