Lines Matching refs:trans
51 void ConflictResolver::OverwriteServerChanges(WriteTransaction* trans, in OverwriteServerChanges() argument
64 ConflictResolver::ProcessSimpleConflict(WriteTransaction* trans, in ProcessSimpleConflict() argument
66 MutableEntry entry(trans, syncable::GET_BY_ID, id); in ProcessSimpleConflict()
117 OverwriteServerChanges(trans, &entry); in ProcessSimpleConflict()
124 trans->directory()->GetChildHandles(trans, in ProcessSimpleConflict()
141 OverwriteServerChanges(trans, &entry); in ProcessSimpleConflict()
148 SyncerUtil::SplitServerInformationIntoNewEntry(trans, &entry); in ProcessSimpleConflict()
150 MutableEntry server_update(trans, syncable::GET_BY_ID, id); in ProcessSimpleConflict()
175 bool AttemptToFixCircularConflict(WriteTransaction* trans, in AttemptToFixCircularConflict() argument
179 MutableEntry entryi(trans, syncable::GET_BY_ID, *i); in AttemptToFixCircularConflict()
189 Entry parent(trans, syncable::GET_BY_ID, parentid); in AttemptToFixCircularConflict()
197 Entry parent(trans, syncable::GET_BY_ID, parentid); in AttemptToFixCircularConflict()
215 bool AttemptToFixUnsyncedEntryInDeletedServerTree(WriteTransaction* trans, in AttemptToFixUnsyncedEntryInDeletedServerTree() argument
221 MutableEntry parent(trans, syncable::GET_BY_ID, parentid); in AttemptToFixUnsyncedEntryInDeletedServerTree()
235 Entry parent(trans, syncable::GET_BY_ID, id); in AttemptToFixUnsyncedEntryInDeletedServerTree()
244 MutableEntry parent(trans, syncable::GET_BY_ID, id); in AttemptToFixUnsyncedEntryInDeletedServerTree()
249 SyncerUtil::ChangeEntryIDAndUpdateChildren(trans, &parent, in AttemptToFixUnsyncedEntryInDeletedServerTree()
250 trans->directory()->NextId()); in AttemptToFixUnsyncedEntryInDeletedServerTree()
260 bool AttemptToFixUpdateEntryInDeletedLocalTree(WriteTransaction* trans, in AttemptToFixUpdateEntryInDeletedLocalTree() argument
267 MutableEntry parent(trans, syncable::GET_BY_ID, parent_id); in AttemptToFixUpdateEntryInDeletedLocalTree()
284 Entry parent(trans, syncable::GET_BY_ID, id); in AttemptToFixUpdateEntryInDeletedLocalTree()
322 MutableEntry entry(trans, syncable::GET_BY_ID, id); in AttemptToFixUpdateEntryInDeletedLocalTree()
329 parent_id = trans->root_id(); in AttemptToFixUpdateEntryInDeletedLocalTree()
339 bool AttemptToFixRemovedDirectoriesWithContent(WriteTransaction* trans, in AttemptToFixRemovedDirectoriesWithContent() argument
343 Entry entry(trans, syncable::GET_BY_ID, *i); in AttemptToFixRemovedDirectoriesWithContent()
344 if (AttemptToFixUnsyncedEntryInDeletedServerTree(trans, in AttemptToFixRemovedDirectoriesWithContent()
348 if (AttemptToFixUpdateEntryInDeletedLocalTree(trans, conflict_set, entry)) in AttemptToFixRemovedDirectoriesWithContent()
357 bool ConflictResolver::ProcessConflictSet(WriteTransaction* trans, in ProcessConflictSet() argument
378 if (AttemptToFixCircularConflict(trans, conflict_set)) in ProcessConflictSet()
381 if (AttemptToFixRemovedDirectoriesWithContent(trans, conflict_set)) in ProcessConflictSet()
388 BaseTransaction* trans, in LogAndSignalIfConflictStuck() argument
405 Entry e(trans, syncable::GET_BY_ID, *i); in LogAndSignalIfConflictStuck()
422 WriteTransaction trans(dir, syncable::SYNCER, __FILE__, __LINE__); in ResolveSimpleConflicts() local
436 switch (ProcessSimpleConflict(&trans, id)) { in ResolveSimpleConflicts()
440 LogAndSignalIfConflictStuck(&trans, conflict_count, in ResolveSimpleConflicts()
467 WriteTransaction trans(dir, syncable::SYNCER, __FILE__, __LINE__); in ResolveConflicts() local
491 if (ProcessConflictSet(&trans, conflict_set, conflict_count)) { in ResolveConflicts()
494 LogAndSignalIfConflictStuck(&trans, conflict_count, in ResolveConflicts()