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 kPrivetInfoKeyAPIList[] = "api"; | 11 const char kPrivetInfoKeyAPIList[] = "api"; |
12 const char kPrivetInfoKeyID[] = "id"; | 12 const char kPrivetInfoKeyID[] = "id"; |
13 const char kPrivetKeyDeviceID[] = "device_id"; | 13 const char kPrivetKeyDeviceID[] = "device_id"; |
14 const char kPrivetKeyClaimURL[] = "claim_url"; | 14 const char kPrivetKeyClaimURL[] = "claim_url"; |
15 const char kPrivetKeyClaimToken[] = "token"; | 15 const char kPrivetKeyClaimToken[] = "token"; |
16 const char kPrivetKeyTimeout[] = "timeout"; | 16 const char kPrivetKeyTimeout[] = "timeout"; |
17 | 17 |
18 const char kPrivetActionNameInfo[] = "info"; | 18 const char kPrivetActionNameInfo[] = "info"; |
19 | 19 |
| 20 const char kPrivetInfoPath[] = "/privet/info"; |
| 21 const char kPrivetRegisterPath[] = "/privet/register"; |
| 22 const char kPrivetCapabilitiesPath[] = "/privet/capabilities"; |
| 23 const char kPrivetSubmitdocPath[] = "/privet/printer/submitdoc"; |
| 24 const char kPrivetCreatejobPath[] = "/privet/printer/createjob"; |
| 25 |
20 const char kPrivetErrorDeviceBusy[] = "device_busy"; | 26 const char kPrivetErrorDeviceBusy[] = "device_busy"; |
21 const char kPrivetErrorPendingUserAction[] = "pending_user_action"; | 27 const char kPrivetErrorPendingUserAction[] = "pending_user_action"; |
22 const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token"; | 28 const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token"; |
23 const char kPrivetErrorTimeout[] = "confirmation_timeout"; | 29 const char kPrivetErrorTimeout[] = "confirmation_timeout"; |
24 const char kPrivetErrorCancel[] = "user_cancel"; | 30 const char kPrivetErrorCancel[] = "user_cancel"; |
25 | 31 |
26 const char kPrivetActionStart[] = "start"; | 32 const char kPrivetActionStart[] = "start"; |
27 const char kPrivetActionGetClaimToken[] = "getClaimToken"; | 33 const char kPrivetActionGetClaimToken[] = "getClaimToken"; |
28 const char kPrivetActionComplete[] = "complete"; | 34 const char kPrivetActionComplete[] = "complete"; |
29 const char kPrivetActionCancel[] = "cancel"; | 35 const char kPrivetActionCancel[] = "cancel"; |
30 | 36 |
31 extern const char kPrivetDefaultDeviceType[] = "_privet._tcp.local"; | 37 const char kPrivetDefaultDeviceType[] = "_privet._tcp.local"; |
32 extern const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local"; | 38 const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local"; |
| 39 const char kPrivetSubtypePrinter[] = "_printer"; |
33 | 40 |
34 const char kPrivetTxtKeyName[] = "ty"; | 41 const char kPrivetTxtKeyName[] = "ty"; |
35 const char kPrivetTxtKeyDescription[] = "note"; | 42 const char kPrivetTxtKeyDescription[] = "note"; |
36 const char kPrivetTxtKeyURL[] = "url"; | 43 const char kPrivetTxtKeyURL[] = "url"; |
37 const char kPrivetTxtKeyType[] = "type"; | 44 const char kPrivetTxtKeyType[] = "type"; |
38 const char kPrivetTxtKeyID[] = "id"; | 45 const char kPrivetTxtKeyID[] = "id"; |
39 const char kPrivetTxtKeyConnectionState[] = "cs"; | 46 const char kPrivetTxtKeyConnectionState[] = "cs"; |
40 | 47 |
41 const char kPrivetConnectionStatusOnline[] = "online"; | 48 const char kPrivetConnectionStatusOnline[] = "online"; |
42 const char kPrivetConnectionStatusOffline[] = "offline"; | 49 const char kPrivetConnectionStatusOffline[] = "offline"; |
43 const char kPrivetConnectionStatusConnecting[] = "connecting"; | 50 const char kPrivetConnectionStatusConnecting[] = "connecting"; |
44 const char kPrivetConnectionStatusNotConfigured[] = "not-configured"; | 51 const char kPrivetConnectionStatusNotConfigured[] = "not-configured"; |
45 | 52 |
46 } // namespace local_discovery | 53 } // namespace local_discovery |
OLD | NEW |