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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
« no previous file with comments | « sync/syncable/syncable_delete_journal.cc ('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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_
6 #define SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_
7
8 // Keep this file in sync with entry_kernel.h.
9
10 #include "sync/base/sync_export.h"
11 #include "sync/syncable/entry_kernel.h"
12
13 // Utility functions to get the string equivalent for some syncable
14 // enums.
15
16 namespace syncer {
17 namespace syncable {
18
19 // The returned strings (which don't have to be freed) are in ASCII.
20 // The result of passing in an invalid enum value is undefined.
21
22 SYNC_EXPORT const char* GetMetahandleFieldString(
23 MetahandleField metahandle_field);
24
25 SYNC_EXPORT const char* GetBaseVersionString(BaseVersion base_version);
26
27 SYNC_EXPORT const char* GetInt64FieldString(Int64Field int64_field);
28
29 SYNC_EXPORT const char* GetTimeFieldString(TimeField time_field);
30
31 SYNC_EXPORT const char* GetIdFieldString(IdField id_field);
32
33 SYNC_EXPORT const char* GetIndexedBitFieldString(
34 IndexedBitField indexed_bit_field);
35
36 SYNC_EXPORT const char* GetIsDelFieldString(IsDelField is_del_field);
37
38 SYNC_EXPORT const char* GetBitFieldString(BitField bit_field);
39
40 SYNC_EXPORT const char* GetStringFieldString(StringField string_field);
41
42 SYNC_EXPORT const char* GetProtoFieldString(ProtoField proto_field);
43
44 SYNC_EXPORT const char* GetUniquePositionFieldString(
45 UniquePositionField position_field);
46
47 SYNC_EXPORT const char* GetAttachmentMetadataFieldString(
48 AttachmentMetadataField attachment_metadata_field);
49
50 SYNC_EXPORT const char* GetBitTempString(BitTemp bit_temp);
51
52 } // namespace syncable
53 } // namespace syncer
54
55 #endif // SYNC_SYNCABLE_SYNCABLE_ENUM_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « sync/syncable/syncable_delete_journal.cc ('k') | sync/syncable/syncable_enum_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698