This source file includes following definitions.
- TrackChangesTo
#include "sync/syncable/syncable_model_neutral_write_transaction.h"
#include "sync/syncable/directory.h"
namespace syncer {
namespace syncable {
ModelNeutralWriteTransaction::ModelNeutralWriteTransaction(
const tracked_objects::Location& location,
WriterTag writer, Directory* directory)
: BaseWriteTransaction(location,
"ModelNeutralWriteTransaction",
writer,
directory) {
Lock();
}
ModelNeutralWriteTransaction::~ModelNeutralWriteTransaction() {
directory()->CheckInvariantsOnTransactionClose(this, modified_handles_);
HandleUnrecoverableErrorIfSet();
Unlock();
}
void ModelNeutralWriteTransaction::TrackChangesTo(const EntryKernel* entry) {
modified_handles_.insert(entry->ref(META_HANDLE));
}
}
}