| 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 #include "chrome/browser/local_discovery/privet_constants.h" | 5 #include "chrome/browser/local_discovery/privet_constants.h" |
| 6 | 6 |
| 7 namespace local_discovery { | 7 namespace local_discovery { |
| 8 | 8 |
| 9 const char kPrivetKeyError[] = "error"; | 9 const char kPrivetKeyError[] = "error"; |
| 10 const char kPrivetInfoKeyToken[] = "x-privet-token"; | 10 const char kPrivetInfoKeyToken[] = "x-privet-token"; |
| 11 const char kPrivetKeyDeviceID[] = "device_id"; | 11 const char kPrivetKeyDeviceID[] = "device_id"; |
| 12 const char kPrivetKeyClaimURL[] = "claim_url"; | 12 const char kPrivetKeyClaimURL[] = "claim_url"; |
| 13 const char kPrivetKeyClaimToken[] = "token"; | 13 const char kPrivetKeyClaimToken[] = "token"; |
| 14 const char kPrivetKeyTimeout[] = "timeout"; | 14 const char kPrivetKeyTimeout[] = "timeout"; |
| 15 | 15 |
| 16 const char kPrivetErrorDeviceBusy[] = "device_busy"; | 16 const char kPrivetErrorDeviceBusy[] = "device_busy"; |
| 17 const char kPrivetErrorPendingUserAction[] = "pending_user_action"; | 17 const char kPrivetErrorPendingUserAction[] = "pending_user_action"; |
| 18 const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token"; | 18 const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token"; |
| 19 | 19 |
| 20 const char kPrivetActionStart[] = "start"; | 20 const char kPrivetActionStart[] = "start"; |
| 21 const char kPrivetActionGetClaimToken[] = "getClaimToken"; | 21 const char kPrivetActionGetClaimToken[] = "getClaimToken"; |
| 22 const char kPrivetActionComplete[] = "complete"; | 22 const char kPrivetActionComplete[] = "complete"; |
| 23 const char kPrivetActionCancel[] = "cancel"; |
| 23 | 24 |
| 24 const char kPrivetActionNameInfo[] = "info"; | 25 const char kPrivetActionNameInfo[] = "info"; |
| 25 | 26 |
| 26 extern const char kPrivetDefaultDeviceType[] = "_privet._tcp.local"; | 27 extern const char kPrivetDefaultDeviceType[] = "_privet._tcp.local"; |
| 27 extern const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local"; | 28 extern const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local"; |
| 28 | 29 |
| 29 const char kPrivetTxtKeyName[] = "ty"; | 30 const char kPrivetTxtKeyName[] = "ty"; |
| 30 const char kPrivetTxtKeyDescription[] = "note"; | 31 const char kPrivetTxtKeyDescription[] = "note"; |
| 31 const char kPrivetTxtKeyURL[] = "url"; | 32 const char kPrivetTxtKeyURL[] = "url"; |
| 32 const char kPrivetTxtKeyType[] = "type"; | 33 const char kPrivetTxtKeyType[] = "type"; |
| 33 const char kPrivetTxtKeyID[] = "id"; | 34 const char kPrivetTxtKeyID[] = "id"; |
| 34 const char kPrivetTxtKeyConnectionState[] = "cs"; | 35 const char kPrivetTxtKeyConnectionState[] = "cs"; |
| 35 | 36 |
| 36 const char kPrivetConnectionStatusOnline[] = "online"; | 37 const char kPrivetConnectionStatusOnline[] = "online"; |
| 37 const char kPrivetConnectionStatusOffline[] = "offline"; | 38 const char kPrivetConnectionStatusOffline[] = "offline"; |
| 38 const char kPrivetConnectionStatusConnecting[] = "connecting"; | 39 const char kPrivetConnectionStatusConnecting[] = "connecting"; |
| 39 const char kPrivetConnectionStatusNotConfigured[] = "not-configured"; | 40 const char kPrivetConnectionStatusNotConfigured[] = "not-configured"; |
| 40 | 41 |
| 41 } // namespace local_discovery | 42 } // namespace local_discovery |
| OLD | NEW |