chromium/components/sync/model/sync_change.h

// Copyright 2012 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_SYNC_CHANGE_H_
#define COMPONENTS_SYNC_MODEL_SYNC_CHANGE_H_

#include <iosfwd>
#include <string>
#include <vector>

#include "base/location.h"
#include "components/sync/model/sync_data.h"

namespace syncer {

// A SyncChange object reflects a change to a sync entity (unit of sync data),
// which can be either a delete, add, or an update. Specifically, it is used
// in the SyncableService API, as opposed to the analogous class EntityChange
// used in the more modern equivalent DataTypeSyncBridge API.
//
// Note: it is safe and cheap to pass these by value or make copies, as they do
// not create deep copies of their internal data.
class SyncChange {};

// gmock printer helper.
void PrintTo(const SyncChange& sync_change, std::ostream* os);

SyncChangeList;

}  // namespace syncer

#endif  // COMPONENTS_SYNC_MODEL_SYNC_CHANGE_H_