/external/chromium/chrome/browser/sync/notifier/ |
D | registration_manager.cc | 20 : model_type(syncable::UNSPECIFIED), in RegistrationStatus() 27 DCHECK_NE(model_type, syncable::UNSPECIFIED); in DoRegister() 33 registration_manager->DoRegisterType(model_type); in DoRegister() 51 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); in RegistrationManager() local 52 RegistrationStatus* status = ®istration_statuses_[model_type]; in RegistrationManager() 53 status->model_type = model_type; in RegistrationManager() 68 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); in SetRegisteredTypes() local 69 if (types.count(model_type) > 0) { in SetRegisteredTypes() 70 if (!IsTypeRegistered(model_type)) { in SetRegisteredTypes() 71 TryRegisterType(model_type, false /* is_retry */); in SetRegisteredTypes() [all …]
|
D | registration_manager.h | 72 void MarkRegistrationLost(syncable::ModelType model_type); 112 syncable::ModelType model_type; member 136 void TryRegisterType(syncable::ModelType model_type, 143 void DoRegisterType(syncable::ModelType model_type); 146 void UnregisterType(syncable::ModelType model_type); 149 bool IsTypeRegistered(syncable::ModelType model_type) const;
|
D | registration_manager_unittest.cc | 25 syncable::ModelType model_type = syncable::UNSPECIFIED; in ObjectIdToModelType() local 26 EXPECT_TRUE(ObjectIdToRealModelType(object_id, &model_type)); in ObjectIdToModelType() 27 return model_type; in ObjectIdToModelType() 63 void LoseRegistration(syncable::ModelType model_type) { in LoseRegistration() argument 64 EXPECT_GT(registered_types_.count(model_type), 0u); in LoseRegistration() 65 registered_types_.erase(model_type); in LoseRegistration() 77 syncable::ModelType model_type = ObjectIdToModelType(oid); in Register() local 78 EXPECT_EQ(0u, registered_types_.count(model_type)); in Register() 79 registered_types_.insert(model_type); in Register() 83 syncable::ModelType model_type = ObjectIdToModelType(oid); in Unregister() local [all …]
|
D | chrome_invalidation_client.cc | 122 syncable::ModelType model_type; in Invalidate() local 123 if (!ObjectIdToRealModelType(invalidation.object_id(), &model_type)) { in Invalidate() 142 max_invalidation_versions_.find(model_type); in Invalidate() 149 max_invalidation_versions_[model_type] = invalidation.version(); in Invalidate() 158 types.insert(model_type); in Invalidate() 201 syncable::ModelType model_type; in RegistrationStateChanged() local 202 if (!ObjectIdToRealModelType(object_id, &model_type)) { in RegistrationStateChanged() 210 registration_manager_->MarkRegistrationLost(model_type); in RegistrationStateChanged()
|
D | invalidation_util.cc | 16 bool RealModelTypeToObjectId(syncable::ModelType model_type, in RealModelTypeToObjectId() argument 20 model_type, ¬ification_type)) { in RealModelTypeToObjectId() 28 syncable::ModelType* model_type) { in ObjectIdToRealModelType() argument 31 object_id.name(), model_type); in ObjectIdToRealModelType()
|
D | invalidation_util.h | 20 bool RealModelTypeToObjectId(syncable::ModelType model_type, 24 syncable::ModelType* model_type);
|
/external/chromium/chrome/browser/sync/syncable/ |
D | model_type.cc | 67 ModelType model_type = ModelTypeFromInt(i); in GetModelTypeFromExtensionFieldNumber() local 68 if (GetExtensionFieldNumberFromModelType(model_type) == field_number) in GetModelTypeFromExtensionFieldNumber() 69 return model_type; in GetModelTypeFromExtensionFieldNumber() 75 int GetExtensionFieldNumberFromModelType(ModelType model_type) { in GetExtensionFieldNumberFromModelType() argument 76 switch (model_type) { in GetExtensionFieldNumberFromModelType() 187 std::string ModelTypeToString(ModelType model_type) { in ModelTypeToString() argument 188 switch (model_type) { in ModelTypeToString() 218 StringValue* ModelTypeToValue(ModelType model_type) { in ModelTypeToValue() argument 219 if (model_type >= syncable::FIRST_REAL_MODEL_TYPE) { in ModelTypeToValue() 220 return Value::CreateStringValue(ModelTypeToString(model_type)); in ModelTypeToValue() [all …]
|
D | model_type.h | 105 int GetExtensionFieldNumberFromModelType(ModelType model_type); 108 std::string ModelTypeToString(ModelType model_type); 113 StringValue* ModelTypeToValue(ModelType model_type); 140 void PostTimeToTypeHistogram(ModelType model_type, base::TimeDelta time); 146 bool RealModelTypeToNotificationType(ModelType model_type, 153 ModelType* model_type);
|
D | model_type_unittest.cc | 32 ModelType model_type = ModelTypeFromInt(i); in TEST_F() local 33 ExpectStringValue(ModelTypeToString(model_type), in TEST_F() 34 ModelTypeToValue(model_type)); in TEST_F()
|
/external/chromium/chrome/browser/sync/ |
D | abstract_profile_sync_service_test.cc | 42 ModelType model_type) { in GetTagForType() argument 43 switch (model_type) { in GetTagForType() 67 ModelType model_type, UserShare* user_share, in CreateRoot() argument 75 std::string tag_name = GetTagForType(model_type); in CreateRoot() 92 syncable::AddDefaultExtensionValue(model_type, &specifics); in CreateRoot() 103 bool AbstractProfileSyncServiceTest::CreateRoot(ModelType model_type) { in CreateRoot() argument 105 model_type, in CreateRoot() 111 AbstractProfileSyncServiceTest* test, ModelType model_type) in CreateRootTask() argument 112 : test_(test), model_type_(model_type), success_(false) { in CreateRootTask()
|
D | abstract_profile_sync_service_test.h | 33 static const std::string GetTagForType(syncable::ModelType model_type); 35 static bool CreateRoot(syncable::ModelType model_type, 45 bool CreateRoot(syncable::ModelType model_type); 58 syncable::ModelType model_type);
|
D | js_sync_manager_observer.cc | 26 syncable::ModelType model_type, in OnChangesApplied() argument 32 syncable::ModelTypeToString(model_type))); in OnChangesApplied() 43 syncable::ModelType model_type) { in OnChangesComplete() argument 46 syncable::ModelTypeToString(model_type))); in OnChangesComplete()
|
D | js_sync_manager_observer.h | 28 syncable::ModelType model_type, 32 virtual void OnChangesComplete(syncable::ModelType model_type);
|
D | profile_sync_service.cc | 887 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); in ChangePreferredDataTypes() local 888 if (!registered_types.count(model_type)) in ChangePreferredDataTypes() 890 const char* pref_name = GetPrefNameForDataType(model_type); in ChangePreferredDataTypes() 894 preferred_types.count(model_type) != 0); in ChangePreferredDataTypes() 895 if (syncable::AUTOFILL == model_type) { in ChangePreferredDataTypes() 897 preferred_types.count(model_type) != 0); in ChangePreferredDataTypes() 918 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); in GetPreferredDataTypes() local 919 if (!registered_types.count(model_type)) in GetPreferredDataTypes() 921 if (model_type == syncable::AUTOFILL_PROFILE) in GetPreferredDataTypes() 923 const char* pref_name = GetPrefNameForDataType(model_type); in GetPreferredDataTypes() [all …]
|
/external/chromium/chrome/browser/sync/engine/ |
D | cleanup_disabled_types_command.cc | 22 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); in ExecuteImpl() local 24 if (session->routing_info().count(model_type)) in ExecuteImpl() 45 if (previous_routing.empty() || previous_routing.count(model_type)) in ExecuteImpl() 46 to_cleanup.insert(model_type); in ExecuteImpl()
|
D | syncapi.h | 150 virtual bool InitByClientTagLookup(syncable::ModelType model_type, 269 static std::string GenerateSyncableHash(syncable::ModelType model_type, 315 virtual bool InitByClientTagLookup(syncable::ModelType model_type, 324 bool InitByCreation(syncable::ModelType model_type, 334 bool InitUniqueByCreation(syncable::ModelType model_type, 421 void PutModelType(syncable::ModelType model_type); 486 virtual bool InitByClientTagLookup(syncable::ModelType model_type, 752 virtual void OnChangesApplied(syncable::ModelType model_type, 768 virtual void OnChangesComplete(syncable::ModelType model_type) = 0;
|
D | syncapi.cc | 187 syncable::ModelType model_type, const std::string& client_tag) { in GenerateSyncableHash() argument 191 syncable::AddDefaultExtensionValue(model_type, &serialized_type); in GenerateSyncableHash() 715 bool WriteNode::InitByClientTagLookup(syncable::ModelType model_type, in InitByClientTagLookup() argument 721 const std::string hash = GenerateSyncableHash(model_type, tag); in InitByClientTagLookup() 739 syncable::ModelType model_type = GetModelType(); in InitByTagLookup() local 740 DCHECK_EQ(syncable::NIGORI, model_type); in InitByTagLookup() 744 void WriteNode::PutModelType(syncable::ModelType model_type) { in PutModelType() argument 747 DCHECK(GetModelType() == model_type || in PutModelType() 751 syncable::AddDefaultExtensionValue(model_type, &specifics); in PutModelType() 753 DCHECK_EQ(model_type, GetModelType()); in PutModelType() [all …]
|
D | apply_updates_command.cc | 53 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); in ModelChangingExecuteImpl() local 56 dir->set_initial_sync_ended_for_type(model_type, true); in ModelChangingExecuteImpl()
|
D | process_commit_response_command_unittest.cc | 72 syncable::ModelType model_type, const Id& parent_id) { in CheckEntry() argument 75 ASSERT_EQ(model_type, e->GetModelType()); in CheckEntry() 89 syncable::ModelType model_type, in CreateUnsyncedItem() argument 106 syncable::AddDefaultExtensionValue(model_type, &default_specifics); in CreateUnsyncedItem() 125 syncable::ModelType model_type) { in CreateUnprocessedCommitResult() argument 129 CreateUnsyncedItem(item_id, parent_id, name, is_folder, model_type, in CreateUnprocessedCommitResult() 134 commit_set_->AddCommitItem(metahandle, item_id, model_type); in CreateUnprocessedCommitResult()
|
D | syncapi_unittest.cc | 81 ModelType model_type, in MakeNode() argument 87 EXPECT_TRUE(node.InitUniqueByCreation(model_type, root_node, client_tag)); in MakeNode() 95 syncable::ModelType model_type, in MakeFolder() argument 101 EXPECT_TRUE(node.InitUniqueByCreation(model_type, root_node, client_tag)); in MakeFolder() 109 ModelType model_type, in MakeNodeWithParent() argument 116 EXPECT_TRUE(node.InitUniqueByCreation(model_type, parent_node, client_tag)); in MakeNodeWithParent() 124 ModelType model_type, in MakeFolderWithParent() argument 131 EXPECT_TRUE(node.InitByCreation(model_type, parent_node, predecessor)); in MakeFolderWithParent() 140 ModelType model_type) { in MakeServerNodeForType() argument 142 syncable::AddDefaultExtensionValue(model_type, &specifics); in MakeServerNodeForType() [all …]
|
D | download_updates_command.cc | 50 syncable::ModelType model_type = syncable::ModelTypeFromInt(i->first); in ExecuteImpl() local 54 dir->GetDownloadProgress(model_type, progress_marker); in ExecuteImpl()
|
D | verify_updates_command.cc | 85 const syncable::ModelType model_type = entry.GetModelType(); in VerifyUpdate() local 119 deleted, is_directory, model_type); in VerifyUpdate()
|
/external/chromium/chrome/browser/sync/glue/ |
D | extension_sync_traits.cc | 18 syncable::ModelType model_type, in ExtensionSyncTraits() argument 26 : model_type(model_type), in ExtensionSyncTraits()
|
D | extension_sync_traits.h | 50 syncable::ModelType model_type, 61 const syncable::ModelType model_type; member
|
D | extension_sync.cc | 214 if (write_node.InitByClientTagLookup(traits.model_type, id)) { in UpdateServer() 223 if (!create_node.InitUniqueByCreation(traits.model_type, root, id)) { in UpdateServer() 300 if (node.InitByClientTagLookup(traits.model_type, id)) { in UpdateServerData() 338 if (write_node.InitByClientTagLookup(traits.model_type, id)) { in RemoveServerData()
|