#ifndef SYNC_ENGINE_PROCESS_UPDATES_UTIL_H_
#define SYNC_ENGINE_PROCESS_UPDATES_UTIL_H_
#include <vector>
#include "sync/internal_api/public/base/model_type.h"
namespace sync_pb {
class SyncEntity;
}
namespace syncer {
namespace sessions {
class StatusController;
}
namespace syncable {
class ModelNeutralWriteTransaction;
class Directory;
}
typedef std::vector<const sync_pb::SyncEntity*> SyncEntityList;
void ProcessDownloadedUpdates(
syncable::Directory* dir,
syncable::ModelNeutralWriteTransaction* trans,
ModelType type,
const SyncEntityList& applicable_updates,
sessions::StatusController* status);
void ExpireEntriesByVersion(syncable::Directory* dir,
syncable::ModelNeutralWriteTransaction* trans,
ModelType type,
int64 version_watermark);
}
#endif