OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ | 5 #ifndef SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ |
6 #define CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ | 6 #define SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // Keep this file in sync with syncable.h. | 9 // Keep this file in sync with syncable.h. |
10 | 10 |
11 #include "chrome/browser/sync/syncable/syncable.h" | 11 #include "sync/syncable/syncable.h" |
12 | 12 |
13 // Utility functions to get the string equivalent for some syncable | 13 // Utility functions to get the string equivalent for some syncable |
14 // enums. | 14 // enums. |
15 | 15 |
16 namespace syncable { | 16 namespace syncable { |
17 | 17 |
18 // The returned strings (which don't have to be freed) are in ASCII. | 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. | 19 // The result of passing in an invalid enum value is undefined. |
20 | 20 |
21 const char* GetMetahandleFieldString(MetahandleField metahandle_field); | 21 const char* GetMetahandleFieldString(MetahandleField metahandle_field); |
(...skipping 13 matching lines...) Expand all Loading... |
35 const char* GetBitFieldString(BitField bit_field); | 35 const char* GetBitFieldString(BitField bit_field); |
36 | 36 |
37 const char* GetStringFieldString(StringField string_field); | 37 const char* GetStringFieldString(StringField string_field); |
38 | 38 |
39 const char* GetProtoFieldString(ProtoField proto_field); | 39 const char* GetProtoFieldString(ProtoField proto_field); |
40 | 40 |
41 const char* GetBitTempString(BitTemp bit_temp); | 41 const char* GetBitTempString(BitTemp bit_temp); |
42 | 42 |
43 } // namespace syncable | 43 } // namespace syncable |
44 | 44 |
45 #endif // CHROME_BROWSER_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ | 45 #endif // SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ |
OLD | NEW |