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 SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ | 5 #ifndef COMPONENTS_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ |
6 #define SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ | 6 #define COMPONENTS_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ |
7 | 7 |
8 // Keep this file in sync with the .proto files in this directory. | 8 // Keep this file in sync with the .proto files in this directory. |
9 | 9 |
10 #include "sync/base/sync_export.h" | 10 #include "components/sync/base/sync_export.h" |
11 #include "sync/protocol/app_list_specifics.pb.h" | 11 #include "components/sync/protocol/app_list_specifics.pb.h" |
12 #include "sync/protocol/app_specifics.pb.h" | 12 #include "components/sync/protocol/app_specifics.pb.h" |
13 #include "sync/protocol/client_debug_info.pb.h" | 13 #include "components/sync/protocol/client_debug_info.pb.h" |
14 #include "sync/protocol/session_specifics.pb.h" | 14 #include "components/sync/protocol/session_specifics.pb.h" |
15 #include "sync/protocol/sync.pb.h" | 15 #include "components/sync/protocol/sync.pb.h" |
16 | 16 |
17 // Utility functions to get the string equivalent for some sync proto | 17 // Utility functions to get the string equivalent for some sync proto |
18 // enums. | 18 // enums. |
19 | 19 |
20 namespace syncer { | 20 namespace syncer { |
21 | 21 |
22 // The returned strings (which don't have to be freed) are in ASCII. | 22 // The returned strings (which don't have to be freed) are in ASCII. |
23 // The result of passing in an invalid enum value is undefined. | 23 // The result of passing in an invalid enum value is undefined. |
24 | 24 |
25 SYNC_EXPORT const char* GetAppListItemTypeString( | 25 SYNC_EXPORT const char* GetAppListItemTypeString( |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 const char* PassphraseTypeString(sync_pb::NigoriSpecifics::PassphraseType type); | 73 const char* PassphraseTypeString(sync_pb::NigoriSpecifics::PassphraseType type); |
74 | 74 |
75 const char* SingletonDebugEventTypeString( | 75 const char* SingletonDebugEventTypeString( |
76 sync_pb::SyncEnums::SingletonDebugEventType type); | 76 sync_pb::SyncEnums::SingletonDebugEventType type); |
77 | 77 |
78 const char* GetBlockedStateString(sync_pb::TabNavigation::BlockedState state); | 78 const char* GetBlockedStateString(sync_pb::TabNavigation::BlockedState state); |
79 | 79 |
80 } // namespace syncer | 80 } // namespace syncer |
81 | 81 |
82 #endif // SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ | 82 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ |
OLD | NEW |