OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_HOST_HOST_CONFIG_H_ | 5 #ifndef REMOTING_HOST_HOST_CONFIG_H_ |
6 #define REMOTING_HOST_HOST_CONFIG_H_ | 6 #define REMOTING_HOST_HOST_CONFIG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 | 11 |
12 namespace remoting { | 12 namespace remoting { |
13 | 13 |
14 // Following constants define names for configuration parameters. | 14 // Following constants define names for configuration parameters. |
15 | 15 |
16 // Status of the host, whether it is enabled or disabled. | 16 // Status of the host, whether it is enabled or disabled. |
17 extern const char kHostEnabledConfigPath[]; | 17 extern const char kHostEnabledConfigPath[]; |
18 // Login used to authenticate in XMPP network. | 18 // Login used to authenticate in XMPP network. |
19 extern const char kXmppLoginConfigPath[]; | 19 extern const char kXmppLoginConfigPath[]; |
20 // Auth token used to authenticate to XMPP network. | 20 // Auth token used to authenticate to XMPP network. |
21 extern const char kXmppAuthTokenConfigPath[]; | 21 extern const char kXmppAuthTokenConfigPath[]; |
22 // OAuth refresh token used to fetch an access token for the XMPP network. | 22 // OAuth refresh token used to fetch an access token for the XMPP network. |
23 extern const char kOAuthRefreshTokenConfigPath[]; | 23 extern const char kOAuthRefreshTokenConfigPath[]; |
24 // Flag to indicate whether the official client ID should be used. | |
25 extern const char kOAuthUseOfficialClientIdPath[]; | |
Wez
2012/04/19 00:13:04
nit: ...Path -> ...ConfigPath
Alpha Left Google
2012/04/20 22:13:50
Done.
| |
24 // Auth service used to authenticate to XMPP network. | 26 // Auth service used to authenticate to XMPP network. |
25 extern const char kXmppAuthServiceConfigPath[]; | 27 extern const char kXmppAuthServiceConfigPath[]; |
26 // Unique identifier of the host used to register the host in directory. | 28 // Unique identifier of the host used to register the host in directory. |
27 // Normally a random UUID. | 29 // Normally a random UUID. |
28 extern const char kHostIdConfigPath[]; | 30 extern const char kHostIdConfigPath[]; |
29 // Readable host name. | 31 // Readable host name. |
30 extern const char kHostNameConfigPath[]; | 32 extern const char kHostNameConfigPath[]; |
31 // Hash of the host secret used for authentication. | 33 // Hash of the host secret used for authentication. |
32 extern const char kHostSecretHashConfigPath[]; | 34 extern const char kHostSecretHashConfigPath[]; |
33 // Private keys used for host authentication. | 35 // Private keys used for host authentication. |
(...skipping 26 matching lines...) Expand all Loading... | |
60 | 62 |
61 // Saves changes. | 63 // Saves changes. |
62 virtual bool Save() = 0; | 64 virtual bool Save() = 0; |
63 | 65 |
64 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); | 66 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); |
65 }; | 67 }; |
66 | 68 |
67 } // namespace remoting | 69 } // namespace remoting |
68 | 70 |
69 #endif // REMOTING_HOST_HOST_CONFIG_H_ | 71 #endif // REMOTING_HOST_HOST_CONFIG_H_ |
OLD | NEW |