Home | History | Annotate | Download | only in syncable

Lines Matching refs:model_type

5 #include "sync/internal_api/public/base/model_type.h"
137 int GetSpecificsFieldNumberFromModelType(ModelType model_type) {
138 DCHECK(ProtocolTypes().Has(model_type))
140 switch (model_type) {
363 bool IsUserSelectableType(ModelType model_type) {
364 return UserSelectableTypes().Has(model_type);
418 bool IsControlType(ModelType model_type) {
419 return ControlTypes().Has(model_type);
460 const char* ModelTypeToString(ModelType model_type) {
464 switch (model_type) {
540 int ModelTypeToHistogramInt(ModelType model_type) {
541 switch (model_type) {
613 base::StringValue* ModelTypeToValue(ModelType model_type) {
614 if (model_type >= FIRST_REAL_MODEL_TYPE) {
615 return new base::StringValue(ModelTypeToString(model_type));
616 } else if (model_type == TOP_LEVEL_FOLDER) {
618 } else if (model_type == UNSPECIFIED) {
869 bool RealModelTypeToNotificationType(ModelType model_type,
871 switch (model_type) {
967 ModelType* model_type) {
969 *model_type = BOOKMARKS;
972 *model_type = PREFERENCES;
975 *model_type = PASSWORDS;
978 *model_type = AUTOFILL;
981 *model_type = THEMES;
984 *model_type = TYPED_URLS;
987 *model_type = EXTENSIONS;
990 *model_type = NIGORI;
993 *model_type = APPS;
996 *model_type = APP_LIST;
999 *model_type = SEARCH_ENGINES;
1002 *model_type = SESSIONS;
1005 *model_type = AUTOFILL_PROFILE;
1008 *model_type = APP_SETTINGS;
1011 *model_type = EXTENSION_SETTINGS;
1014 *model_type = APP_NOTIFICATIONS;
1017 *model_type = HISTORY_DELETE_DIRECTIVES;
1020 *model_type = SYNCED_NOTIFICATIONS;
1023 *model_type = SYNCED_NOTIFICATION_APP_INFO;
1026 *model_type = DEVICE_INFO;
1029 *model_type = EXPERIMENTS;
1032 *model_type = PRIORITY_PREFERENCES;
1035 *model_type = DICTIONARY;
1038 *model_type = FAVICON_IMAGES;
1041 *model_type = FAVICON_TRACKING;
1044 *model_type = SUPERVISED_USER_SETTINGS;
1047 *model_type = SUPERVISED_USERS;
1051 *model_type = SUPERVISED_USER_SHARED_SETTINGS;
1054 *model_type = ARTICLES;
1057 *model_type = UNSPECIFIED;
1061 bool IsRealDataType(ModelType model_type) {
1062 return model_type >= FIRST_REAL_MODEL_TYPE && model_type < MODEL_TYPE_COUNT;
1065 bool IsProxyType(ModelType model_type) {
1066 return model_type >= FIRST_PROXY_TYPE && model_type <= LAST_PROXY_TYPE;
1069 bool IsActOnceDataType(ModelType model_type) {
1070 return model_type == HISTORY_DELETE_DIRECTIVES;