This source file includes following definitions.
- index_
#include "sync/syncable/scoped_parent_child_index_updater.h"
#include "sync/syncable/parent_child_index.h"
namespace syncer {
namespace syncable {
ScopedParentChildIndexUpdater::ScopedParentChildIndexUpdater(
ScopedKernelLock& proof_of_lock,
EntryKernel* entry,
ParentChildIndex* index) : entry_(entry), index_(index) {
if (ParentChildIndex::ShouldInclude(entry_)) {
index_->Remove(entry_);
}
}
ScopedParentChildIndexUpdater::~ScopedParentChildIndexUpdater() {
if (ParentChildIndex::ShouldInclude(entry_)) {
index_->Insert(entry_);
}
}
}
}