privet_constants.h revision 1e9bf3e0803691d0a228da41fc608347b6db4340
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 kPrivetErrorDeviceBusy[];
20extern const char kPrivetErrorPendingUserAction[];
21extern const char kPrivetErrorInvalidXPrivetToken[];
22extern const char kPrivetErrorTimeout[];
23extern const char kPrivetErrorCancel[];
24
25extern const char kPrivetActionStart[];
26extern const char kPrivetActionGetClaimToken[];
27extern const char kPrivetActionComplete[];
28extern const char kPrivetActionCancel[];
29
30// Name for pseudo-action "info", used only to show info stage in errors.
31extern const char kPrivetActionNameInfo[];
32
33extern const char kPrivetDefaultDeviceType[];
34extern const char kPrivetSubtypeTemplate[];
35
36const double kPrivetMaximumTimeScaling = 1.2;
37
38extern const char kPrivetTxtKeyName[];
39extern const char kPrivetTxtKeyDescription[];
40extern const char kPrivetTxtKeyURL[];
41extern const char kPrivetTxtKeyType[];
42extern const char kPrivetTxtKeyID[];
43extern const char kPrivetTxtKeyConnectionState[];
44
45extern const char kPrivetConnectionStatusOnline[];
46extern const char kPrivetConnectionStatusOffline[];
47extern const char kPrivetConnectionStatusConnecting[];
48extern const char kPrivetConnectionStatusNotConfigured[];
49
50const int kPrivetDefaultTimeout = 15;
51
52const double kPrivetMaximumTimeRandomAddition = 0.2;
53
54const int kAccountIndexUseOAuth2 = -1;
55
56}  // namespace local_discovery
57
58#endif  // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_CONSTANTS_H_
59