| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_ |
| 7 | 7 |
| 8 namespace local_discovery { | 8 namespace local_discovery { |
| 9 | 9 |
| 10 extern const char kPrivetKeyError[]; | 10 extern const char kPrivetKeyError[]; |
| 11 extern const char kPrivetInfoKeyToken[]; | 11 extern const char kPrivetInfoKeyToken[]; |
| 12 extern const char kPrivetKeyDeviceID[]; | 12 extern const char kPrivetKeyDeviceID[]; |
| 13 extern const char kPrivetKeyClaimURL[]; | 13 extern const char kPrivetKeyClaimURL[]; |
| 14 extern const char kPrivetKeyClaimToken[]; | 14 extern const char kPrivetKeyClaimToken[]; |
| 15 extern const char kPrivetKeyTimeout[]; | 15 extern const char kPrivetKeyTimeout[]; |
| 16 | 16 |
| 17 extern const char kPrivetErrorDeviceBusy[]; | 17 extern const char kPrivetErrorDeviceBusy[]; |
| 18 extern const char kPrivetErrorPendingUserAction[]; | 18 extern const char kPrivetErrorPendingUserAction[]; |
| 19 extern const char kPrivetErrorInvalidXPrivetToken[]; | 19 extern const char kPrivetErrorInvalidXPrivetToken[]; |
| 20 | 20 |
| 21 extern const char kPrivetActionStart[]; | 21 extern const char kPrivetActionStart[]; |
| 22 extern const char kPrivetActionGetClaimToken[]; | 22 extern const char kPrivetActionGetClaimToken[]; |
| 23 extern const char kPrivetActionComplete[]; | 23 extern const char kPrivetActionComplete[]; |
| 24 extern const char kPrivetActionCancel[]; |
| 24 | 25 |
| 25 // Name for pseudo-action "info", used only to show info stage in errors. | 26 // Name for pseudo-action "info", used only to show info stage in errors. |
| 26 extern const char kPrivetActionNameInfo[]; | 27 extern const char kPrivetActionNameInfo[]; |
| 27 | 28 |
| 28 extern const char kPrivetDefaultDeviceType[]; | 29 extern const char kPrivetDefaultDeviceType[]; |
| 29 extern const char kPrivetSubtypeTemplate[]; | 30 extern const char kPrivetSubtypeTemplate[]; |
| 30 | 31 |
| 31 const double kPrivetMaximumTimeScaling = 1.2; | 32 const double kPrivetMaximumTimeScaling = 1.2; |
| 32 | 33 |
| 33 extern const char kPrivetTxtKeyName[]; | 34 extern const char kPrivetTxtKeyName[]; |
| 34 extern const char kPrivetTxtKeyDescription[]; | 35 extern const char kPrivetTxtKeyDescription[]; |
| 35 extern const char kPrivetTxtKeyURL[]; | 36 extern const char kPrivetTxtKeyURL[]; |
| 36 extern const char kPrivetTxtKeyType[]; | 37 extern const char kPrivetTxtKeyType[]; |
| 37 extern const char kPrivetTxtKeyID[]; | 38 extern const char kPrivetTxtKeyID[]; |
| 38 extern const char kPrivetTxtKeyConnectionState[]; | 39 extern const char kPrivetTxtKeyConnectionState[]; |
| 39 | 40 |
| 40 extern const char kPrivetConnectionStatusOnline[]; | 41 extern const char kPrivetConnectionStatusOnline[]; |
| 41 extern const char kPrivetConnectionStatusOffline[]; | 42 extern const char kPrivetConnectionStatusOffline[]; |
| 42 extern const char kPrivetConnectionStatusConnecting[]; | 43 extern const char kPrivetConnectionStatusConnecting[]; |
| 43 extern const char kPrivetConnectionStatusNotConfigured[]; | 44 extern const char kPrivetConnectionStatusNotConfigured[]; |
| 44 | 45 |
| 45 const int kPrivetDefaultTimeout = 15; | 46 const int kPrivetDefaultTimeout = 15; |
| 46 | 47 |
| 47 const double kPrivetMaximumTimeRandomAddition = 0.2; | 48 const double kPrivetMaximumTimeRandomAddition = 0.2; |
| 48 | 49 |
| 49 } // namespace local_discovery | 50 } // namespace local_discovery |
| 50 | 51 |
| 51 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_ | 52 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_ |
| OLD | NEW |