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

Unified Diff: chrome/browser/sync/syncable/model_type.h

Issue 6104003: sync: use progress markers instead of timestamps during GetUpdates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tim's fixes Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/syncable/model_type.h
diff --git a/chrome/browser/sync/syncable/model_type.h b/chrome/browser/sync/syncable/model_type.h
index 2760fbea4f8c25bf0ee8f3b3d49d1bef0360f98c..308f51677463013ed9c67f28e5544a69a055b751 100644
--- a/chrome/browser/sync/syncable/model_type.h
+++ b/chrome/browser/sync/syncable/model_type.h
@@ -93,6 +93,14 @@ ModelType GetModelType(const sync_pb::SyncEntity& sync_entity);
// prefer using GetModelType where possible.
ModelType GetModelTypeFromSpecifics(const sync_pb::EntitySpecifics& specifics);
+// Determine a model type from the field number of its associated
+// EntitySpecifics extension.
+ModelType GetModelTypeFromExtensionFieldNumber(int field_number);
+
+// Return the field number of the EntitySpecifics extension associated with
+// a model type.
+int GetExtensionFieldNumberFromModelType(ModelType model_type);
+
// Returns a string that represents the name of |model_type|.
std::string ModelTypeToString(ModelType model_type);
« no previous file with comments | « chrome/browser/sync/syncable/directory_backing_store_unittest.cc ('k') | chrome/browser/sync/syncable/model_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698