Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: sync/syncable/syncable_enum_conversions.h

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/syncable/syncable_columns.h ('k') | sync/syncable/syncable_enum_conversions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 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 SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ 5 #ifndef SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_
6 #define 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 entry_kernel.h. 9 // Keep this file in sync with entry_kernel.h.
10 10
11 #include "sync/syncable/entry_kernel.h" 11 #include "sync/syncable/entry_kernel.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 syncer {
16 namespace syncable { 17 namespace syncable {
17 18
18 // The returned strings (which don't have to be freed) are in ASCII. 19 // 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 // The result of passing in an invalid enum value is undefined.
20 21
21 const char* GetMetahandleFieldString(MetahandleField metahandle_field); 22 const char* GetMetahandleFieldString(MetahandleField metahandle_field);
22 23
23 const char* GetBaseVersionString(BaseVersion base_version); 24 const char* GetBaseVersionString(BaseVersion base_version);
24 25
25 const char* GetInt64FieldString(Int64Field int64_field); 26 const char* GetInt64FieldString(Int64Field int64_field);
26 27
27 const char* GetTimeFieldString(TimeField time_field); 28 const char* GetTimeFieldString(TimeField time_field);
28 29
29 const char* GetIdFieldString(IdField id_field); 30 const char* GetIdFieldString(IdField id_field);
30 31
31 const char* GetIndexedBitFieldString(IndexedBitField indexed_bit_field); 32 const char* GetIndexedBitFieldString(IndexedBitField indexed_bit_field);
32 33
33 const char* GetIsDelFieldString(IsDelField is_del_field); 34 const char* GetIsDelFieldString(IsDelField is_del_field);
34 35
35 const char* GetBitFieldString(BitField bit_field); 36 const char* GetBitFieldString(BitField bit_field);
36 37
37 const char* GetStringFieldString(StringField string_field); 38 const char* GetStringFieldString(StringField string_field);
38 39
39 const char* GetProtoFieldString(ProtoField proto_field); 40 const char* GetProtoFieldString(ProtoField proto_field);
40 41
41 const char* GetBitTempString(BitTemp bit_temp); 42 const char* GetBitTempString(BitTemp bit_temp);
42 43
43 } // namespace syncable 44 } // namespace syncable
45 } // namespace syncer
44 46
45 #endif // SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ 47 #endif // SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « sync/syncable/syncable_columns.h ('k') | sync/syncable/syncable_enum_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698