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