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

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

Issue 7745040: [Sync] Make P2PNotifier behave more like InvalidationNotifier (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix copyright Created 9 years, 4 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
« no previous file with comments | « chrome/browser/sync/notifier/sync_notifier_factory.cc ('k') | chrome/browser/sync/syncable/model_type.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7a97cdcba59363d7515817bcd738a17ce6926129..b4285e55207d6b048f53a5a188223f197b5f04c8 100644
--- a/chrome/browser/sync/syncable/model_type.h
+++ b/chrome/browser/sync/syncable/model_type.h
@@ -113,6 +113,8 @@ ModelType GetModelTypeFromExtensionFieldNumber(int field_number);
// a model type.
int GetExtensionFieldNumberFromModelType(ModelType model_type);
+// TODO(sync): The functions below badly need some cleanup.
+
// Returns a string that represents the name of |model_type|.
std::string ModelTypeToString(ModelType model_type);
@@ -131,12 +133,6 @@ ModelType ModelTypeFromString(const std::string& model_type_string);
std::string ModelTypeBitSetToString(const ModelTypeBitSet& model_types);
-// Converts a string into a model type bitset. If successful, returns true. If
-// failed to parse string, returns false and model_types is unspecified.
-bool ModelTypeBitSetFromString(
- const std::string& model_type_bitset_string,
- ModelTypeBitSet* model_types);
-
// Convert a ModelTypeSet to a ModelTypeBitSet.
ModelTypeBitSet ModelTypeBitSetFromSet(const ModelTypeSet& set);
@@ -148,6 +144,8 @@ ModelTypeBitSet ModelTypeBitSetFromValue(const base::ListValue& value);
// Caller takes ownership of returned list.
base::ListValue* ModelTypeSetToValue(const ModelTypeSet& model_types);
+ModelTypeSet ModelTypeSetFromValue(const base::ListValue& value);
+
// Returns a string corresponding to the syncable tag for this datatype.
std::string ModelTypeToRootTag(ModelType type);
« no previous file with comments | « chrome/browser/sync/notifier/sync_notifier_factory.cc ('k') | chrome/browser/sync/syncable/model_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698