1// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_
6#define CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_
7#pragma once
8
9// Keep this file in sync with syncable.h.
10
11#include "chrome/browser/sync/syncable/syncable.h"
12
13// Utility functions to get the string equivalent for some syncable
14// enums.
15
16namespace syncable {
17
18// The returned strings (which don't have to be freed) are in ASCII.
19// The result of passing in an invalid enum value is undefined.
20
21const char* GetMetahandleFieldString(MetahandleField metahandle_field);
22
23const char* GetBaseVersionString(BaseVersion base_version);
24
25const char* GetInt64FieldString(Int64Field int64_field);
26
27const char* GetIdFieldString(IdField id_field);
28
29const char* GetIndexedBitFieldString(IndexedBitField indexed_bit_field);
30
31const char* GetIsDelFieldString(IsDelField is_del_field);
32
33const char* GetBitFieldString(BitField bit_field);
34
35const char* GetStringFieldString(StringField string_field);
36
37const char* GetProtoFieldString(ProtoField proto_field);
38
39const char* GetBitTempString(BitTemp bit_temp);
40
41}  // namespace syncable
42
43#endif  // CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_
44