Home | History | Annotate | Download | only in notifier

Lines Matching defs:model_type

13 #include "chrome/browser/sync/syncable/model_type.h"
20 : model_type(syncable::UNSPECIFIED),
27 DCHECK_NE(model_type, syncable::UNSPECIFIED);
33 registration_manager->DoRegisterType(model_type);
51 syncable::ModelType model_type = syncable::ModelTypeFromInt(i);
52 RegistrationStatus* status = &registration_statuses_[model_type];
53 status->model_type = model_type;
68 syncable::ModelType model_type = syncable::ModelTypeFromInt(i);
69 if (types.count(model_type) > 0) {
70 if (!IsTypeRegistered(model_type)) {
71 TryRegisterType(model_type, false /* is_retry */);
74 if (IsTypeRegistered(model_type)) {
75 UnregisterType(model_type);
82 syncable::ModelType model_type) {
84 registration_statuses_[model_type].state =
86 TryRegisterType(model_type, true /* is_retry */);
93 syncable::ModelType model_type = syncable::ModelTypeFromInt(i);
94 if (IsTypeRegistered(model_type)) {
95 MarkRegistrationLost(model_type);
105 syncable::ModelType model_type = syncable::ModelTypeFromInt(i);
106 if (IsTypeRegistered(model_type)) {
107 registered_types.insert(model_type);
119 syncable::ModelType model_type = syncable::ModelTypeFromInt(i);
120 const RegistrationStatus& status = registration_statuses_[model_type];
122 pending_registrations[model_type].last_registration_request =
124 pending_registrations[model_type].registration_attempt =
126 pending_registrations[model_type].delay = status.delay;
127 pending_registrations[model_type].actual_delay =
138 syncable::ModelType model_type = syncable::ModelTypeFromInt(i);
139 RegistrationStatus* status = &registration_statuses_[model_type];
173 void RegistrationManager::TryRegisterType(syncable::ModelType model_type,
176 RegistrationStatus* status = &registration_statuses_[model_type];
190 << syncable::ModelTypeToString(model_type) << " in "
206 << syncable::ModelTypeToString(model_type) << " is "
210 << syncable::ModelTypeToString(model_type) << " immediately";
217 void RegistrationManager::DoRegisterType(syncable::ModelType model_type) {
220 if (!RealModelTypeToObjectId(model_type, &object_id)) {
221 LOG(DFATAL) << "Invalid model type: " << model_type;
225 RegistrationStatus* status = &registration_statuses_[model_type];
230 void RegistrationManager::UnregisterType(syncable::ModelType model_type) {
233 if (!RealModelTypeToObjectId(model_type, &object_id)) {
234 LOG(DFATAL) << "Invalid model type: " << model_type;
238 RegistrationStatus* status = &registration_statuses_[model_type];
243 syncable::ModelType model_type) const {
245 return registration_statuses_[model_type].state ==