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
3// found in the LICENSE file.
4
5#include "chrome/browser/local_discovery/privet_constants.h"
6
7namespace local_discovery {
8
9const char kPrivetKeyError[] = "error";
10const char kPrivetInfoKeyToken[] = "x-privet-token";
11const char kPrivetInfoKeyAPIList[] = "api";
12const char kPrivetInfoKeyID[] = "id";
13const char kPrivetKeyDeviceID[] = "device_id";
14const char kPrivetKeyClaimURL[] = "claim_url";
15const char kPrivetKeyClaimToken[] = "token";
16const char kPrivetKeyTimeout[] = "timeout";
17
18const char kPrivetActionNameInfo[] = "info";
19
20const char kPrivetInfoPath[] = "/privet/info";
21const char kPrivetRegisterPath[] = "/privet/register";
22const char kPrivetCapabilitiesPath[] = "/privet/capabilities";
23const char kPrivetSubmitdocPath[] = "/privet/printer/submitdoc";
24const char kPrivetCreatejobPath[] = "/privet/printer/createjob";
25
26const char kPrivetErrorDeviceBusy[] = "device_busy";
27const char kPrivetErrorPrinterBusy[] = "printer_busy";
28const char kPrivetErrorInvalidPrintJob[] = "invalid_print_job";
29const char kPrivetErrorInvalidDocumentType[] = "invalid_document_type";
30const char kPrivetErrorPendingUserAction[] = "pending_user_action";
31const char kPrivetErrorInvalidXPrivetToken[] = "invalid_x_privet_token";
32const char kPrivetErrorTimeout[] = "confirmation_timeout";
33const char kPrivetErrorCancel[] = "user_cancel";
34
35const char kPrivetV3ErrorDeviceBusy[] = "deviceBusy";
36const char kPrivetV3ErrorInvalidParams[] = "invalidParams";
37const char kPrivetV3ErrorSetupUnavailable[] = "setupUnavailable";
38
39const char kPrivetActionStart[] = "start";
40const char kPrivetActionGetClaimToken[] = "getClaimToken";
41const char kPrivetActionComplete[] = "complete";
42const char kPrivetActionCancel[] = "cancel";
43
44const char kPrivetDefaultDeviceType[] = "_privet._tcp.local";
45const char kPrivetSubtypeTemplate[] = "%s._sub._privet._tcp.local";
46
47const char kPrivetTypePrinter[] = "printer";
48
49const char kPrivetTxtKeyName[] = "ty";
50const char kPrivetTxtKeyDescription[] = "note";
51const char kPrivetTxtKeyURL[] = "url";
52const char kPrivetTxtKeyVersion[] = "txtvers";
53const char kPrivetTxtKeyType[] = "type";
54const char kPrivetTxtKeyID[] = "id";
55const char kPrivetTxtKeyConnectionState[] = "cs";
56
57const char kPrivetConnectionStatusOnline[] = "online";
58const char kPrivetConnectionStatusOffline[] = "offline";
59const char kPrivetConnectionStatusConnecting[] = "connecting";
60const char kPrivetConnectionStatusNotConfigured[] = "not-configured";
61
62}  // namespace local_discovery
63