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#ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_
6#define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_
7
8namespace local_discovery {
9
10extern const char kPrivetKeyError[];
11extern const char kPrivetInfoKeyToken[];
12extern const char kPrivetInfoKeyAPIList[];
13extern const char kPrivetInfoKeyID[];
14extern const char kPrivetKeyDeviceID[];
15extern const char kPrivetKeyClaimURL[];
16extern const char kPrivetKeyClaimToken[];
17extern const char kPrivetKeyTimeout[];
18
19extern const char kPrivetActionNameInfo[];
20
21extern const char kPrivetInfoPath[];
22extern const char kPrivetRegisterPath[];
23extern const char kPrivetCapabilitiesPath[];
24extern const char kPrivetSubmitdocPath[];
25extern const char kPrivetCreatejobPath[];
26
27extern const char kPrivetErrorDeviceBusy[];
28extern const char kPrivetErrorPrinterBusy[];
29extern const char kPrivetErrorInvalidPrintJob[];
30extern const char kPrivetErrorInvalidDocumentType[];
31extern const char kPrivetErrorPendingUserAction[];
32extern const char kPrivetErrorInvalidXPrivetToken[];
33extern const char kPrivetErrorTimeout[];
34extern const char kPrivetErrorCancel[];
35
36extern const char kPrivetV3ErrorDeviceBusy[];
37extern const char kPrivetV3ErrorInvalidParams[];
38extern const char kPrivetV3ErrorSetupUnavailable[];
39
40extern const char kPrivetActionStart[];
41extern const char kPrivetActionGetClaimToken[];
42extern const char kPrivetActionComplete[];
43extern const char kPrivetActionCancel[];
44
45extern const char kPrivetDefaultDeviceType[];
46extern const char kPrivetSubtypeTemplate[];
47
48extern const char kPrivetTypePrinter[];
49
50const double kPrivetMaximumTimeScaling = 1.2;
51
52extern const char kPrivetTxtKeyName[];
53extern const char kPrivetTxtKeyDescription[];
54extern const char kPrivetTxtKeyURL[];
55extern const char kPrivetTxtKeyVersion[];
56extern const char kPrivetTxtKeyType[];
57extern const char kPrivetTxtKeyID[];
58extern const char kPrivetTxtKeyConnectionState[];
59
60extern const char kPrivetConnectionStatusOnline[];
61extern const char kPrivetConnectionStatusOffline[];
62extern const char kPrivetConnectionStatusConnecting[];
63extern const char kPrivetConnectionStatusNotConfigured[];
64
65const int kPrivetDefaultTimeout = 15;
66
67const double kPrivetMaximumTimeRandomAddition = 0.2;
68
69const int kPrivetMinimumTimeout = 2;
70
71const int kAccountIndexUseOAuth2 = -1;
72
73}  // namespace local_discovery
74
75#endif  // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_
76