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

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

Issue 11624037: [sync] Componentize sync: Part 6: Add more SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (no code changes) Created 7 years, 11 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_base_transaction.h ('k') | sync/syncable/syncable_id.h » ('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 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 7
8 // Keep this file in sync with entry_kernel.h. 8 // Keep this file in sync with entry_kernel.h.
9 9
10 #include "sync/base/sync_export.h"
10 #include "sync/syncable/entry_kernel.h" 11 #include "sync/syncable/entry_kernel.h"
11 12
12 // Utility functions to get the string equivalent for some syncable 13 // Utility functions to get the string equivalent for some syncable
13 // enums. 14 // enums.
14 15
15 namespace syncer { 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 SYNC_EXPORT_PRIVATE const char* GetMetahandleFieldString(
23 MetahandleField metahandle_field);
22 24
23 const char* GetBaseVersionString(BaseVersion base_version); 25 SYNC_EXPORT_PRIVATE const char* GetBaseVersionString(BaseVersion base_version);
24 26
25 const char* GetInt64FieldString(Int64Field int64_field); 27 SYNC_EXPORT_PRIVATE const char* GetInt64FieldString(Int64Field int64_field);
26 28
27 const char* GetTimeFieldString(TimeField time_field); 29 SYNC_EXPORT_PRIVATE const char* GetTimeFieldString(TimeField time_field);
28 30
29 const char* GetIdFieldString(IdField id_field); 31 SYNC_EXPORT_PRIVATE const char* GetIdFieldString(IdField id_field);
30 32
31 const char* GetIndexedBitFieldString(IndexedBitField indexed_bit_field); 33 SYNC_EXPORT_PRIVATE const char* GetIndexedBitFieldString(
34 IndexedBitField indexed_bit_field);
32 35
33 const char* GetIsDelFieldString(IsDelField is_del_field); 36 SYNC_EXPORT_PRIVATE const char* GetIsDelFieldString(IsDelField is_del_field);
34 37
35 const char* GetBitFieldString(BitField bit_field); 38 SYNC_EXPORT_PRIVATE const char* GetBitFieldString(BitField bit_field);
36 39
37 const char* GetStringFieldString(StringField string_field); 40 SYNC_EXPORT_PRIVATE const char* GetStringFieldString(StringField string_field);
38 41
39 const char* GetProtoFieldString(ProtoField proto_field); 42 SYNC_EXPORT_PRIVATE const char* GetProtoFieldString(ProtoField proto_field);
40 43
41 const char* GetOrdinalFieldString(OrdinalField ordinal_field); 44 SYNC_EXPORT_PRIVATE const char* GetOrdinalFieldString(
45 OrdinalField ordinal_field);
42 46
43 const char* GetBitTempString(BitTemp bit_temp); 47 SYNC_EXPORT_PRIVATE const char* GetBitTempString(BitTemp bit_temp);
44 48
45 } // namespace syncable 49 } // namespace syncable
46 } // namespace syncer 50 } // namespace syncer
47 51
48 #endif // SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_ 52 #endif // SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « sync/syncable/syncable_base_transaction.h ('k') | sync/syncable/syncable_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698