privet_constants.h revision 7dbb3d5cf0c15f500944d211057644d6a2f37371
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 kPrivetKeyDeviceID[];
13extern const char kPrivetKeyClaimURL[];
14extern const char kPrivetKeyClaimToken[];
15extern const char kPrivetKeyTimeout[];
16
17extern const char kPrivetErrorDeviceBusy[];
18extern const char kPrivetErrorPendingUserAction[];
19extern const char kPrivetErrorInvalidXPrivetToken[];
20
21extern const char kPrivetActionStart[];
22extern const char kPrivetActionGetClaimToken[];
23extern const char kPrivetActionComplete[];
24
25extern const char kPrivetDefaultDeviceType[];
26extern const char kPrivetSubtypeTemplate[];
27
28const double kPrivetMaximumTimeScaling = 1.2;
29
30extern const char kPrivetTxtKeyName[];
31extern const char kPrivetTxtKeyDescription[];
32extern const char kPrivetTxtKeyURL[];
33extern const char kPrivetTxtKeyType[];
34extern const char kPrivetTxtKeyID[];
35extern const char kPrivetTxtKeyConnectionState[];
36
37extern const char kPrivetConnectionStatusOnline[];
38extern const char kPrivetConnectionStatusOffline[];
39extern const char kPrivetConnectionStatusConnecting[];
40extern const char kPrivetConnectionStatusNotConfigured[];
41
42const int kPrivetDefaultTimeout = 15;
43
44const double kPrivetMaximumTimeRandomAddition = 0.2;
45
46}  // namespace local_discovery
47
48#endif  // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_
49