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_ENGINE_SYNC_STRING_CONVERSIONS_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_STRING_CONVERSIONS_H_ |
6 #define COMPONENTS_SYNC_ENGINE_SYNC_STRING_CONVERSIONS_H_ | 6 #define COMPONENTS_SYNC_ENGINE_SYNC_STRING_CONVERSIONS_H_ |
7 | 7 |
8 #include "components/sync/core/connection_status.h" | 8 #include "components/sync/core/connection_status.h" |
9 #include "components/sync/core/sync_encryption_handler.h" | 9 #include "components/sync/core/sync_encryption_handler.h" |
10 | 10 |
11 namespace syncer { | 11 namespace syncer { |
12 | 12 |
| 13 enum class PassphraseType; |
| 14 |
13 const char* ConnectionStatusToString(ConnectionStatus status); | 15 const char* ConnectionStatusToString(ConnectionStatus status); |
14 | 16 |
15 // Returns the string representation of a PassphraseRequiredReason value. | 17 // Returns the string representation of a PassphraseRequiredReason value. |
16 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 18 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
17 | 19 |
18 const char* PassphraseTypeToString(PassphraseType type); | 20 const char* PassphraseTypeToString(PassphraseType type); |
19 | 21 |
20 const char* BootstrapTokenTypeToString(BootstrapTokenType type); | 22 const char* BootstrapTokenTypeToString(BootstrapTokenType type); |
21 } // namespace syncer | 23 } // namespace syncer |
22 | 24 |
23 #endif // COMPONENTS_SYNC_ENGINE_SYNC_STRING_CONVERSIONS_H_ | 25 #endif // COMPONENTS_SYNC_ENGINE_SYNC_STRING_CONVERSIONS_H_ |
OLD | NEW |