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

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

Issue 7481023: Adding notifications for new sync types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now stores acknowledged types in a ListValue, not a StringValue. 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
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 e15da9eb73177c7286dde4db2f0de968c57b08bd..1ebdeda12ce087e65011cc26fa068ff1159b8e5f 100644
--- a/chrome/browser/sync/syncable/model_type.h
+++ b/chrome/browser/sync/syncable/model_type.h
@@ -20,6 +20,7 @@
namespace base {
class ListValue;
class StringValue;
+class Value;
}
namespace sync_pb {
@@ -120,6 +121,9 @@ std::string ModelTypeToString(ModelType model_type);
// Caller takes ownership of returned value.
base::StringValue* ModelTypeToValue(ModelType model_type);
+// Converts a Value into a ModelType - complement to ModelTypeToValue().
+ModelType ModelTypeFromValue(const base::Value& value);
+
std::string ModelTypeSetToString(const ModelTypeSet& model_types);
// Returns the ModelType corresponding to the name |model_type_string|.
@@ -139,6 +143,8 @@ ModelTypeBitSet ModelTypeBitSetFromSet(const ModelTypeSet& set);
// Caller takes ownership of returned list.
base::ListValue* ModelTypeBitSetToValue(const ModelTypeBitSet& model_types);
+ModelTypeBitSet ModelTypeBitSetFromValue(const base::ListValue& value);
+
// Caller takes ownership of returned list.
base::ListValue* ModelTypeSetToValue(const ModelTypeSet& model_types);

Powered by Google App Engine
This is Rietveld 408576698