Home
last modified time | relevance | path

Searched refs:SyncChange (Results 1 – 25 of 81) sorted by relevance

1234

/external/chromium_org/sync/api/
Dsync_change.cc11 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()
Dsync_change_unittest.cc23 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 …]
Dsync_change.h23 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/
Ddom_distiller_model.cc9 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 …]
Ddom_distiller_store.cc18 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/
Dsettings_sync_util.cc80 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()
Dsetting_sync_data.h28 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,
Dsetting_sync_data.cc17 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()
Dsettings_sync_unittest.cc143 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/
Dsynced_notifications_shim.cc19 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 …]
Dsynced_notifications_shim_unittest.cc38 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/
Dapp_sync_bundle.cc49 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()
Dextension_sync_bundle.cc48 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()
Dextension_sync_data.cc33 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()
Dapp_sync_data.cc21 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/
Dtemplate_url_service_sync_unittest.cc106 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/
Dfavicon_cache_unittest.cc57 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 …]
Dfavicon_cache.cc286 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/
Dsupervised_user_settings_service.cc29 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 …]
Dsupervised_user_shared_settings_service.cc25 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 …]
Dsupervised_user_sync_service.cc31 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/
Dsessions_sync_manager_unittest.cc37 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/
Dautocomplete_syncable_service.cc135 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/
Dpref_model_associator.cc169 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/
Dpassword_syncable_service.cc89 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 …]

1234