| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ | 5 #ifndef COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ |
| 6 #define COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ | 6 #define COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ |
| 7 | 7 |
| 8 // Keep this file in sync with entry_kernel.h. | |
| 9 | |
| 10 #include "components/sync/syncable/entry_kernel.h" | 8 #include "components/sync/syncable/entry_kernel.h" |
| 11 | 9 |
| 10 // Keep this file in sync with entry_kernel.h. |
| 11 // |
| 12 // Utility functions to get the string equivalent for some syncable | 12 // Utility functions to get the string equivalent for some syncable |
| 13 // enums. | 13 // enums. |
| 14 | 14 |
| 15 namespace syncer { | 15 namespace syncer { |
| 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 20 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 const char* GetAttachmentMetadataFieldString( | 43 const char* GetAttachmentMetadataFieldString( |
| 44 AttachmentMetadataField attachment_metadata_field); | 44 AttachmentMetadataField attachment_metadata_field); |
| 45 | 45 |
| 46 const char* GetBitTempString(BitTemp bit_temp); | 46 const char* GetBitTempString(BitTemp bit_temp); |
| 47 | 47 |
| 48 } // namespace syncable | 48 } // namespace syncable |
| 49 } // namespace syncer | 49 } // namespace syncer |
| 50 | 50 |
| 51 #endif // COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ | 51 #endif // COMPONENTS_SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ |
| OLD | NEW |