/external/chromium_org/sync/api/ |
D | sync_change.cc | 11 SyncChange::SyncChange() : change_type_(ACTION_INVALID) { in SyncChange() function in syncer::SyncChange 14 SyncChange::SyncChange( in SyncChange() function in syncer::SyncChange 24 SyncChange::~SyncChange() {} in ~SyncChange() 26 bool SyncChange::IsValid() const { in IsValid() 47 SyncChange::SyncChangeType SyncChange::change_type() const { in change_type() 51 SyncData SyncChange::sync_data() const { in sync_data() 55 tracked_objects::Location SyncChange::location() const { in location() 60 std::string SyncChange::ChangeTypeToString(SyncChangeType change_type) { in ChangeTypeToString() 76 std::string SyncChange::ToString() const { in ToString() 82 void PrintTo(const SyncChange& sync_change, std::ostream* os) { in PrintTo()
|
D | sync_change_unittest.cc | 23 typedef std::vector<SyncChange> SyncChangeList; 33 SyncChange::SyncChangeType change_type = SyncChange::ACTION_DELETE; in TEST_F() 35 SyncChange e(FROM_HERE, in TEST_F() 44 SyncChange::SyncChangeType change_type = SyncChange::ACTION_UPDATE; in TEST_F() 50 SyncChange e(FROM_HERE, in TEST_F() 64 SyncChange::SyncChangeType change_type = SyncChange::ACTION_ADD; in TEST_F() 70 SyncChange e(FROM_HERE, in TEST_F() 92 SyncChange(FROM_HERE, in TEST_F() 93 SyncChange::ACTION_UPDATE, in TEST_F() 106 SyncChange(FROM_HERE, in TEST_F() [all …]
|
D | sync_change.h | 23 class SYNC_EXPORT SyncChange { 33 SyncChange(); 35 SyncChange( 39 ~SyncChange(); 74 SYNC_EXPORT void PrintTo(const SyncChange& sync_change, std::ostream* os);
|
/external/chromium_org/components/dom_distiller/core/ |
D | dom_distiller_model.cc | 9 using syncer::SyncChange; 115 SyncChange::SyncChangeType change_type = SyncChange::ACTION_ADD; in CalculateChangesForMerge() 117 change_type = SyncChange::ACTION_UPDATE; in CalculateChangesForMerge() 119 changes_to_apply->push_back(SyncChange(FROM_HERE, change_type, *it)); in CalculateChangesForMerge() 126 changes_missing->push_back(SyncChange( in CalculateChangesForMerge() 127 FROM_HERE, SyncChange::ACTION_ADD, CreateLocalData(it->second))); in CalculateChangesForMerge() 170 const SyncChange& change, in ApplyChangeToModel() 179 if (change.change_type() == SyncChange::ACTION_DELETE) { in ApplyChangeToModel() 183 changes_applied->push_back(SyncChange( in ApplyChangeToModel() 184 change.location(), SyncChange::ACTION_DELETE, change.sync_data())); in ApplyChangeToModel() [all …]
|
D | dom_distiller_store.cc | 18 using syncer::SyncChange; 77 SyncChange(FROM_HERE, SyncChange::ACTION_ADD, CreateLocalData(entry))); in AddEntry() 105 SyncChange(FROM_HERE, SyncChange::ACTION_UPDATE, CreateLocalData(entry))); in UpdateEntry() 135 SyncChange(FROM_HERE, SyncChange::ACTION_DELETE, CreateLocalData(entry))); in RemoveEntry() 212 case SyncChange::ACTION_ADD: in NotifyObservers() 215 case SyncChange::ACTION_UPDATE: in NotifyObservers() 219 case SyncChange::ACTION_DELETE: in NotifyObservers() 223 case SyncChange::ACTION_INVALID: in NotifyObservers() 316 if (it->change_type() == SyncChange::ACTION_DELETE) { in ApplyChangesToDatabase() 350 case SyncChange::ACTION_ADD: in MergeDataWithModel() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/storage/ |
D | settings_sync_util.cc | 80 syncer::SyncChange CreateAdd( in CreateAdd() 85 return syncer::SyncChange( in CreateAdd() 87 syncer::SyncChange::ACTION_ADD, in CreateAdd() 91 syncer::SyncChange CreateUpdate( in CreateUpdate() 96 return syncer::SyncChange( in CreateUpdate() 98 syncer::SyncChange::ACTION_UPDATE, in CreateUpdate() 102 syncer::SyncChange CreateDelete( in CreateDelete() 107 return syncer::SyncChange( in CreateDelete() 109 syncer::SyncChange::ACTION_DELETE, in CreateDelete()
|
D | setting_sync_data.h | 28 explicit SettingSyncData(const syncer::SyncChange& sync_change); 35 syncer::SyncChange::SyncChangeType change_type, 43 syncer::SyncChange::SyncChangeType change_type() const; 60 syncer::SyncChange::SyncChangeType change_type, 65 syncer::SyncChange::SyncChangeType change_type_; 76 void Init(syncer::SyncChange::SyncChangeType change_type, 81 syncer::SyncChange::SyncChangeType change_type,
|
D | setting_sync_data.cc | 17 const syncer::SyncChange& sync_change) { in SettingSyncData() 23 Init(syncer::SyncChange::ACTION_INVALID, sync_data); in SettingSyncData() 27 syncer::SyncChange::SyncChangeType change_type, in Init() 46 syncer::SyncChange::SyncChangeType change_type, in InitFromExtensionSettingSpecifics() 64 syncer::SyncChange::SyncChangeType change_type, in SettingSyncData() 72 syncer::SyncChange::SyncChangeType SettingSyncData::change_type() const { in change_type() 89 syncer::SyncChange::SyncChangeType change_type, in Internal()
|
D | settings_sync_unittest.cc | 143 return SettingSyncData(syncer::SyncChange::ACTION_INVALID, in GetOnlyChange() 340 EXPECT_EQ(syncer::SyncChange::ACTION_UPDATE, change.change_type()); in TEST_F() 369 EXPECT_EQ(syncer::SyncChange::ACTION_ADD, change.change_type()); in TEST_F() 372 EXPECT_EQ(syncer::SyncChange::ACTION_ADD, change.change_type()); in TEST_F() 530 EXPECT_EQ(syncer::SyncChange::ACTION_ADD, change.change_type()); in TEST_F() 533 EXPECT_EQ(syncer::SyncChange::ACTION_ADD, change.change_type()); in TEST_F() 536 EXPECT_EQ(syncer::SyncChange::ACTION_ADD, change.change_type()); in TEST_F() 539 EXPECT_EQ(syncer::SyncChange::ACTION_ADD, change.change_type()); in TEST_F() 552 EXPECT_EQ(syncer::SyncChange::ACTION_UPDATE, change.change_type()); in TEST_F() 555 EXPECT_EQ(syncer::SyncChange::ACTION_UPDATE, change.change_type()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/synced_notifications_private/ |
D | synced_notifications_shim.cc | 19 syncer::SyncChange::SyncChangeType change_type) { in SyncerChangeTypeToJS() 21 case syncer::SyncChange::ACTION_UPDATE: in SyncerChangeTypeToJS() 23 case syncer::SyncChange::ACTION_DELETE: in SyncerChangeTypeToJS() 25 case syncer::SyncChange::ACTION_ADD: in SyncerChangeTypeToJS() 27 case syncer::SyncChange::ACTION_INVALID: in SyncerChangeTypeToJS() 63 syncer::SyncChange* sync_change) { in BuildNewSyncUpdate() 77 *sync_change = syncer::SyncChange( in BuildNewSyncUpdate() 78 from_here, syncer::SyncChange::ACTION_UPDATE, sync_data); in BuildNewSyncUpdate() 82 linked_ptr<synced_notifications_private::SyncChange> BuildNewJSSyncChange( in BuildNewJSSyncChange() 83 const syncer::SyncChange& change) { in BuildNewJSSyncChange() [all …]
|
D | synced_notifications_shim_unittest.cc | 38 syncer::SyncChange BuildChange(syncer::ModelType type, const std::string& key) { in BuildChange() 41 return syncer::SyncChange(FROM_HERE, syncer::SyncChange::ACTION_UPDATE, data); in BuildChange() 64 testing::AssertionResult ChangeSpecificsMatch(const syncer::SyncChange& change, in ChangeSpecificsMatch() 66 if (change.change_type() != syncer::SyncChange::ACTION_UPDATE) in ChangeSpecificsMatch() 182 scoped_ptr<synced_notifications_private::SyncChange> sync_change = in TEST_F() 183 synced_notifications_private::SyncChange::FromValue(*sync_change_value); in TEST_F() 209 scoped_ptr<synced_notifications_private::SyncChange> sync_change = in TEST_F() 210 synced_notifications_private::SyncChange::FromValue(*sync_change_value); in TEST_F() 219 synced_notifications_private::SyncChange::FromValue(*sync_change_value); in TEST_F() 246 scoped_ptr<synced_notifications_private::SyncChange> sync_change = in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/extensions/ |
D | app_sync_bundle.cc | 49 syncer::SyncChange AppSyncBundle::CreateSyncChangeToDelete( in CreateSyncChangeToDelete() 53 return sync_data.GetSyncChange(syncer::SyncChange::ACTION_DELETE); in CreateSyncChangeToDelete() 57 const syncer::SyncChange& sync_change) { in ProcessDeletion() 63 syncer::SyncChange AppSyncBundle::CreateSyncChange( in CreateSyncChange() 67 return syncer::SyncChange(FROM_HERE, in CreateSyncChange() 68 syncer::SyncChange::ACTION_UPDATE, in CreateSyncChange() 72 return syncer::SyncChange(FROM_HERE, in CreateSyncChange() 73 syncer::SyncChange::ACTION_ADD, in CreateSyncChange() 126 syncer::SyncChange::ACTION_UPDATE : syncer::SyncChange::ACTION_ADD)); in SyncChangeIfNeeded()
|
D | extension_sync_bundle.cc | 48 syncer::SyncChange ExtensionSyncBundle::CreateSyncChangeToDelete( in CreateSyncChangeToDelete() 52 return sync_data.GetSyncChange(syncer::SyncChange::ACTION_DELETE); in CreateSyncChangeToDelete() 56 std::string extension_id, const syncer::SyncChange& sync_change) { in ProcessDeletion() 62 syncer::SyncChange ExtensionSyncBundle::CreateSyncChange( in CreateSyncChange() 66 return syncer::SyncChange(FROM_HERE, in CreateSyncChange() 67 syncer::SyncChange::ACTION_UPDATE, in CreateSyncChange() 71 return syncer::SyncChange(FROM_HERE, in CreateSyncChange() 72 syncer::SyncChange::ACTION_ADD, in CreateSyncChange() 127 syncer::SyncChange::ACTION_UPDATE : syncer::SyncChange::ACTION_ADD)); in SyncChangeIfNeeded()
|
D | extension_sync_data.cc | 33 ExtensionSyncData::ExtensionSyncData(const syncer::SyncChange& sync_change) in ExtensionSyncData() 35 syncer::SyncChange::ACTION_DELETE), in ExtensionSyncData() 66 syncer::SyncChange ExtensionSyncData::GetSyncChange( in GetSyncChange() 67 syncer::SyncChange::SyncChangeType change_type) const { in GetSyncChange() 68 return syncer::SyncChange(FROM_HERE, change_type, GetSyncData()); in GetSyncChange()
|
D | app_sync_data.cc | 21 AppSyncData::AppSyncData(const syncer::SyncChange& sync_change) { in AppSyncData() 24 sync_change.change_type() == syncer::SyncChange::ACTION_DELETE); in AppSyncData() 58 syncer::SyncChange AppSyncData::GetSyncChange( in GetSyncChange() 59 syncer::SyncChange::SyncChangeType change_type) const { in GetSyncChange() 60 return syncer::SyncChange(FROM_HERE, change_type, GetSyncData()); in GetSyncChange()
|
/external/chromium_org/chrome/browser/search_engines/ |
D | template_url_service_sync_unittest.cc | 106 syncer::SyncChange change_for_guid(const std::string& guid) const { in change_for_guid() 117 std::map<std::string, syncer::SyncChange> change_map_; 191 syncer::SyncChange CreateTestSyncChange( 192 syncer::SyncChange::SyncChangeType type, 314 syncer::SyncChange TemplateURLServiceSyncTest::CreateTestSyncChange( in CreateTestSyncChange() 315 syncer::SyncChange::SyncChangeType type, in CreateTestSyncChange() 320 return syncer::SyncChange( in CreateTestSyncChange() 527 EXPECT_EQ(syncer::SyncChange::ACTION_UPDATE, changes[0].change_type()); in TEST_F() 550 EXPECT_EQ(syncer::SyncChange::ACTION_UPDATE, changes[0].change_type()); in TEST_F() 567 EXPECT_EQ(syncer::SyncChange::ACTION_UPDATE, changes[0].change_type()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/sync/glue/ |
D | favicon_cache_unittest.cc | 57 syncer::SyncChange change_for_guid(const std::string& guid) const { in change_for_guid() 73 std::map<std::string, syncer::SyncChange> change_map_; 211 const std::vector<syncer::SyncChange::SyncChangeType>& in VerifyChanges() 224 if (change_list[i].change_type() == syncer::SyncChange::ACTION_DELETE) { in VerifyChanges() 242 int GetFaviconId(const syncer::SyncChange change) { in GetFaviconId() 560 std::vector<syncer::SyncChange::SyncChangeType> expected_change_types; in TEST_F() 568 expected_change_types.push_back(syncer::SyncChange::ACTION_ADD); in TEST_F() 680 std::vector<syncer::SyncChange::SyncChangeType> expected_change_types; in TEST_F() 690 expected_change_types.push_back(syncer::SyncChange::ACTION_UPDATE); in TEST_F() 765 std::vector<syncer::SyncChange::SyncChangeType> expected_change_types; in TEST_F() [all …]
|
D | favicon_cache.cc | 286 syncer::SyncChange(FROM_HERE, in MergeDataAndStartSyncing() 287 syncer::SyncChange::ACTION_ADD, in MergeDataAndStartSyncing() 358 if (iter->change_type() == syncer::SyncChange::ACTION_DELETE) { in ProcessSyncChanges() 371 } else if (iter->change_type() == syncer::SyncChange::ACTION_UPDATE || in ProcessSyncChanges() 372 iter->change_type() == syncer::SyncChange::ACTION_ADD) { in ProcessSyncChanges() 425 syncer::SyncChange::ACTION_INVALID, in OnPageFaviconUpdated() 426 syncer::SyncChange::ACTION_UPDATE); in OnPageFaviconUpdated() 474 syncer::SyncChange::ACTION_INVALID, in OnFaviconVisited() 476 syncer::SyncChange::ACTION_UPDATE : in OnFaviconVisited() 477 syncer::SyncChange::ACTION_ADD)); in OnFaviconVisited() [all …]
|
/external/chromium_org/chrome/browser/supervised_user/ |
D | supervised_user_settings_service.cc | 29 using syncer::SyncChange; 122 SyncChange::SyncChangeType change_type = in UploadItem() 123 dict->HasKey(key_suffix) ? SyncChange::ACTION_UPDATE in UploadItem() 124 : SyncChange::ACTION_ADD; in UploadItem() 125 change_list.push_back(SyncChange(FROM_HERE, change_type, data)); in UploadItem() 200 SyncChange::SyncChangeType change_type = in MergeDataAndStartSyncing() 201 dict->HasKey(key_suffix) ? SyncChange::ACTION_UPDATE in MergeDataAndStartSyncing() 202 : SyncChange::ACTION_ADD; in MergeDataAndStartSyncing() 203 change_list.push_back(SyncChange(FROM_HERE, change_type, data)); in MergeDataAndStartSyncing() 260 case SyncChange::ACTION_ADD: in ProcessSyncChanges() [all …]
|
D | supervised_user_shared_settings_service.cc | 25 using syncer::SyncChange; 119 SyncChange::SyncChangeType change_type = in SetValueInternal() 120 has_key ? SyncChange::ACTION_UPDATE : SyncChange::ACTION_ADD; in SetValueInternal() 122 changes.push_back(SyncChange(FROM_HERE, change_type, data)); in SetValueInternal() 251 SyncChange(FROM_HERE, SyncChange::ACTION_ADD, data)); in MergeDataAndStartSyncing() 308 case SyncChange::ACTION_ADD: in ProcessSyncChanges() 309 case SyncChange::ACTION_UPDATE: { in ProcessSyncChanges() 317 DCHECK_EQ(SyncChange::ACTION_UPDATE, it->change_type()); in ProcessSyncChanges() 320 DCHECK_EQ(SyncChange::ACTION_ADD, it->change_type()); in ProcessSyncChanges() 331 case SyncChange::ACTION_DELETE: { in ProcessSyncChanges() [all …]
|
D | supervised_user_sync_service.cc | 31 using syncer::SyncChange; 286 SyncChange(FROM_HERE, in UpdateSupervisedUserImpl() 287 add_user ? SyncChange::ACTION_ADD : SyncChange::ACTION_UPDATE, in UpdateSupervisedUserImpl() 303 change_list.push_back(SyncChange( in DeleteSupervisedUser() 305 SyncChange::ACTION_DELETE, in DeleteSupervisedUser() 368 change_list.push_back(SyncChange( in UpdateSupervisedUserAvatarIfNeeded() 370 SyncChange::ACTION_UPDATE, in UpdateSupervisedUserAvatarIfNeeded() 448 SyncChange(FROM_HERE, in MergeDataAndStartSyncing() 449 SyncChange::ACTION_ADD, in MergeDataAndStartSyncing() 496 case SyncChange::ACTION_ADD: in ProcessSyncChanges() [all …]
|
/external/chromium_org/chrome/browser/sync/sessions/ |
D | sessions_sync_manager_unittest.cc | 37 using syncer::SyncChange; 165 syncer::SyncChange MakeRemoteChange( in MakeRemoteChange() 168 SyncChange::SyncChangeType type) { in MakeRemoteChange() 171 return syncer::SyncChange( in MakeRemoteChange() 184 SyncChange::SyncChangeType type, in AddTabsToChangeList() 191 change_list->push_back(syncer::SyncChange( in AddTabsToChangeList() 300 EXPECT_TRUE(SyncChange::ACTION_ADD == it->change_type() || in FilterOutLocalHeaderChanges() 301 SyncChange::ACTION_UPDATE == it->change_type()); in FilterOutLocalHeaderChanges() 656 EXPECT_EQ(SyncChange::ACTION_ADD, out[0].change_type()); in TEST_F() 669 EXPECT_EQ(SyncChange::ACTION_UPDATE, out[1].change_type()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/webdata/ |
D | autocomplete_syncable_service.cc | 135 std::make_pair(syncer::SyncChange::ACTION_ADD, it); in MergeDataAndStartSyncing() 162 syncer::SyncChange(FROM_HERE, in MergeDataAndStartSyncing() 233 case syncer::SyncChange::ACTION_ADD: in ProcessSyncChanges() 234 case syncer::SyncChange::ACTION_UPDATE: in ProcessSyncChanges() 245 std::make_pair(syncer::SyncChange::ACTION_ADD, it); in ProcessSyncChanges() 251 case syncer::SyncChange::ACTION_DELETE: { in ProcessSyncChanges() 268 syncer::SyncChange::ChangeTypeToString(i->change_type())); in ProcessSyncChanges() 357 it->second.first = syncer::SyncChange::ACTION_UPDATE; in CreateOrUpdateEntry() 407 syncer::SyncChange::SyncChangeType change_type = in ActOnChanges() 409 syncer::SyncChange::ACTION_ADD : in ActOnChanges() [all …]
|
/external/chromium_org/chrome/browser/prefs/ |
D | pref_model_associator.cc | 169 syncer::SyncChange(FROM_HERE, in InitPrefAndAssociate() 170 syncer::SyncChange::ACTION_UPDATE, in InitPrefAndAssociate() 183 syncer::SyncChange(FROM_HERE, in InitPrefAndAssociate() 184 syncer::SyncChange::ACTION_UPDATE, in InitPrefAndAssociate() 204 syncer::SyncChange(FROM_HERE, in InitPrefAndAssociate() 205 syncer::SyncChange::ACTION_ADD, in InitPrefAndAssociate() 286 syncer::SyncChange::SyncChangeType change_type = in MergeDataAndStartSyncing() 288 syncer::SyncChange::ACTION_ADD : in MergeDataAndStartSyncing() 289 syncer::SyncChange::ACTION_UPDATE; in MergeDataAndStartSyncing() 291 syncer::SyncChange(FROM_HERE, change_type, migrated_pref_iter->second)); in MergeDataAndStartSyncing() [all …]
|
/external/chromium_org/components/password_manager/core/browser/ |
D | password_syncable_service.cc | 89 syncer::SyncChange::SyncChangeType GetSyncChangeType( in GetSyncChangeType() 93 return syncer::SyncChange::ACTION_ADD; in GetSyncChangeType() 95 return syncer::SyncChange::ACTION_UPDATE; in GetSyncChangeType() 97 return syncer::SyncChange::ACTION_DELETE; in GetSyncChangeType() 100 return syncer::SyncChange::ACTION_INVALID; in GetSyncChangeType() 181 syncer::SyncChange(FROM_HERE, in MergeDataAndStartSyncing() 182 syncer::SyncChange::ACTION_ADD, in MergeDataAndStartSyncing() 234 case syncer::SyncChange::ACTION_ADD: { in ProcessSyncChanges() 239 case syncer::SyncChange::ACTION_UPDATE: { in ProcessSyncChanges() 245 case syncer::SyncChange::ACTION_DELETE: { in ProcessSyncChanges() [all …]
|