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 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 class DictionaryValue; | 14 class DictionaryValue; |
15 class FilePath; | 15 class FilePath; |
16 } // namespace base | 16 } // namespace base |
17 | 17 |
18 namespace remoting { | 18 namespace remoting { |
19 | 19 |
20 // Following constants define names for configuration parameters. | 20 // Following constants define names for configuration parameters. |
21 | 21 |
22 // Status of the host, whether it is enabled or disabled. | 22 // Status of the host, whether it is enabled or disabled. |
23 extern const char kHostEnabledConfigPath[]; | 23 extern const char kHostEnabledConfigPath[]; |
24 // Base JID of the host owner (may not equal the email for non-gmail users). | 24 // Base JID of the host owner (may not equal the email for non-gmail users). |
25 extern const char kHostOwnerConfigPath[]; | 25 extern const char kHostOwnerConfigPath[]; |
26 // Email of the owner of this host. | 26 // Email of the owner of this host. |
27 extern const char kHostOwnerEmailConfigPath[]; | 27 extern const char kHostOwnerEmailConfigPath[]; |
28 // Login used to authenticate in XMPP network (could be a service account). | 28 // Login used to authenticate in XMPP network (could be a service account). |
29 extern const char kXmppLoginConfigPath[]; | 29 extern const char kXmppLoginConfigPath[]; |
30 // Auth token used to authenticate to XMPP network. | |
31 extern const char kXmppAuthTokenConfigPath[]; | |
32 // OAuth refresh token used to fetch an access token for the XMPP network. | 30 // OAuth refresh token used to fetch an access token for the XMPP network. |
33 extern const char kOAuthRefreshTokenConfigPath[]; | 31 extern const char kOAuthRefreshTokenConfigPath[]; |
34 // Auth service used to authenticate to XMPP network. | |
35 extern const char kXmppAuthServiceConfigPath[]; | |
36 // Unique identifier of the host used to register the host in directory. | 32 // Unique identifier of the host used to register the host in directory. |
37 // Normally a random UUID. | 33 // Normally a random UUID. |
38 extern const char kHostIdConfigPath[]; | 34 extern const char kHostIdConfigPath[]; |
39 // Readable host name. | 35 // Readable host name. |
40 extern const char kHostNameConfigPath[]; | 36 extern const char kHostNameConfigPath[]; |
41 // Hash of the host secret used for authentication. | 37 // Hash of the host secret used for authentication. |
42 extern const char kHostSecretHashConfigPath[]; | 38 extern const char kHostSecretHashConfigPath[]; |
43 // Private keys used for host authentication. | 39 // Private keys used for host authentication. |
44 extern const char kPrivateKeyConfigPath[]; | 40 extern const char kPrivateKeyConfigPath[]; |
45 // Whether consent is given for usage stats reporting. | 41 // Whether consent is given for usage stats reporting. |
(...skipping 10 matching lines...) Expand all Loading... |
56 | 52 |
57 // Helpers for loading/saving host configurations from/to files. | 53 // Helpers for loading/saving host configurations from/to files. |
58 scoped_ptr<base::DictionaryValue> HostConfigFromJsonFile( | 54 scoped_ptr<base::DictionaryValue> HostConfigFromJsonFile( |
59 const base::FilePath& config_file); | 55 const base::FilePath& config_file); |
60 bool HostConfigToJsonFile(const base::DictionaryValue& host_config, | 56 bool HostConfigToJsonFile(const base::DictionaryValue& host_config, |
61 const base::FilePath& config_file); | 57 const base::FilePath& config_file); |
62 | 58 |
63 } // namespace remoting | 59 } // namespace remoting |
64 | 60 |
65 #endif // REMOTING_HOST_HOST_CONFIG_H_ | 61 #endif // REMOTING_HOST_HOST_CONFIG_H_ |
OLD | NEW |