blob: 3caa10ea3fb28398ea7a3c9ed31737d082fef200 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sync/base/sync_export.h"
#include "sync/syncable/metahandle_set.h"
#include "sync/syncable/syncable_base_write_transaction.h"
namespace syncer {
namespace syncable {
// A transaction used to instantiate Entries or ModelNeutralMutableEntries.
// This allows it to be used when making changes to sync entity properties that
// do not need to be kept in sync with the associated native model.
// This class differs internally from WriteTransactions in that it does a less
// good job of tracking and reporting on changes to the entries modified within
// its scope. This is because its changes do not need to be reported to the
// DirectoryChangeDelegate.
class SYNC_EXPORT_PRIVATE ModelNeutralWriteTransaction
: public BaseWriteTransaction {
const tracked_objects::Location& location,
WriterTag writer,
Directory* directory);
~ModelNeutralWriteTransaction() override;
void TrackChangesTo(const EntryKernel* entry) override;
MetahandleSet modified_handles_;
} // namespace syncable
} // namespace syncer