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"; |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 const char kPrivetErrorDeviceBusy[] = "device_busy"; | 26 const char kPrivetErrorDeviceBusy[] = "device_busy"; |
27 const char kPrivetErrorPrinterBusy[] = "printer_busy"; | 27 const char kPrivetErrorPrinterBusy[] = "printer_busy"; |
28 const char kPrivetErrorInvalidPrintJob[] = "invalid_print_job"; | 28 const char kPrivetErrorInvalidPrintJob[] = "invalid_print_job"; |
29 const char kPrivetErrorInvalidDocumentType[] = "invalid_document_type"; | 29 const char kPrivetErrorInvalidDocumentType[] = "invalid_document_type"; |
30 const char kPrivetErrorPendingUserAction[] = "pending_user_action"; | 30 const char kPrivetErrorPendingUserAction[] = "pending_user_action"; |
31 const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token"; | 31 const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token"; |
32 const char kPrivetErrorTimeout[] = "confirmation_timeout"; | 32 const char kPrivetErrorTimeout[] = "confirmation_timeout"; |
33 const char kPrivetErrorCancel[] = "user_cancel"; | 33 const char kPrivetErrorCancel[] = "user_cancel"; |
34 | 34 |
| 35 const char kPrivetV3ErrorDeviceBusy[] = "deviceBusy"; |
| 36 const char kPrivetV3ErrorInvalidParams[] = "invalidParams"; |
| 37 const char kPrivetV3ErrorSetupUnavailable[] = "setupUnavailable"; |
| 38 |
35 const char kPrivetActionStart[] = "start"; | 39 const char kPrivetActionStart[] = "start"; |
36 const char kPrivetActionGetClaimToken[] = "getClaimToken"; | 40 const char kPrivetActionGetClaimToken[] = "getClaimToken"; |
37 const char kPrivetActionComplete[] = "complete"; | 41 const char kPrivetActionComplete[] = "complete"; |
38 const char kPrivetActionCancel[] = "cancel"; | 42 const char kPrivetActionCancel[] = "cancel"; |
39 | 43 |
40 const char kPrivetDefaultDeviceType[] = "_privet._tcp.local"; | 44 const char kPrivetDefaultDeviceType[] = "_privet._tcp.local"; |
41 const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local"; | 45 const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local"; |
42 | 46 |
43 const char kPrivetTypePrinter[] = "printer"; | 47 const char kPrivetTypePrinter[] = "printer"; |
44 | 48 |
45 const char kPrivetTxtKeyName[] = "ty"; | 49 const char kPrivetTxtKeyName[] = "ty"; |
46 const char kPrivetTxtKeyDescription[] = "note"; | 50 const char kPrivetTxtKeyDescription[] = "note"; |
47 const char kPrivetTxtKeyURL[] = "url"; | 51 const char kPrivetTxtKeyURL[] = "url"; |
48 const char kPrivetTxtKeyVersion[] = "txtvers"; | 52 const char kPrivetTxtKeyVersion[] = "txtvers"; |
49 const char kPrivetTxtKeyType[] = "type"; | 53 const char kPrivetTxtKeyType[] = "type"; |
50 const char kPrivetTxtKeyID[] = "id"; | 54 const char kPrivetTxtKeyID[] = "id"; |
51 const char kPrivetTxtKeyConnectionState[] = "cs"; | 55 const char kPrivetTxtKeyConnectionState[] = "cs"; |
52 | 56 |
53 const char kPrivetConnectionStatusOnline[] = "online"; | 57 const char kPrivetConnectionStatusOnline[] = "online"; |
54 const char kPrivetConnectionStatusOffline[] = "offline"; | 58 const char kPrivetConnectionStatusOffline[] = "offline"; |
55 const char kPrivetConnectionStatusConnecting[] = "connecting"; | 59 const char kPrivetConnectionStatusConnecting[] = "connecting"; |
56 const char kPrivetConnectionStatusNotConfigured[] = "not-configured"; | 60 const char kPrivetConnectionStatusNotConfigured[] = "not-configured"; |
57 | 61 |
58 } // namespace local_discovery | 62 } // namespace local_discovery |
OLD | NEW |