chromium/components/sync/model/mutable_data_batch.h

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_SYNC_MODEL_MUTABLE_DATA_BATCH_H_
#define COMPONENTS_SYNC_MODEL_MUTABLE_DATA_BATCH_H_

#include <stddef.h>

#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "components/sync/model/data_batch.h"

namespace syncer {

// An implementation of DataBatch that's purpose is to transfer ownership of
// EntityData objects. As soon as this batch recieves the EntityData, it owns
// them until Next() is invoked, when it gives up ownership. Because a vector
// is used internally, this impl is unaware when duplcate storage_keys are used,
// and it is the caller's job to avoid this.
class MutableDataBatch : public DataBatch {};

}  // namespace syncer

#endif  // COMPONENTS_SYNC_MODEL_MUTABLE_DATA_BATCH_H_