#ifndef SYNC_SYNCABLE_SYNCABLE_UTIL_H_
#define SYNC_SYNCABLE_SYNCABLE_UTIL_H_
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "sync/base/sync_export.h"
#include "sync/internal_api/public/base/model_type.h"
namespace tracked_objects {
class Location;
}
namespace syncer {
namespace syncable {
class BaseTransaction;
class BaseWriteTransaction;
class ModelNeutralMutableEntry;
class Id;
SYNC_EXPORT_PRIVATE void ChangeEntryIDAndUpdateChildren(
BaseWriteTransaction* trans,
ModelNeutralMutableEntry* entry,
const Id& new_id);
SYNC_EXPORT_PRIVATE bool IsLegalNewParent(BaseTransaction* trans,
const Id& id,
const Id& parentid);
bool SyncAssert(bool condition,
const tracked_objects::Location& location,
const char* msg,
BaseTransaction* trans);
SYNC_EXPORT_PRIVATE int GetUnsyncedEntries(BaseTransaction* trans,
std::vector<int64> *handles);
SYNC_EXPORT_PRIVATE std::string GenerateSyncableHash(
ModelType model_type, const std::string& client_tag);
SYNC_EXPORT_PRIVATE std::string GenerateSyncableBookmarkHash(
const std::string& originator_cache_guid,
const std::string& originator_client_item_id);
}
}
#endif