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 base { | 12 namespace base { |
13 class DictionaryValue; | 13 class DictionaryValue; |
14 } // namespace base | 14 } // namespace base |
15 | 15 |
16 namespace remoting { | 16 namespace remoting { |
17 | 17 |
18 // Following constants define names for configuration parameters. | 18 // Following constants define names for configuration parameters. |
19 | 19 |
20 // Status of the host, whether it is enabled or disabled. | 20 // Status of the host, whether it is enabled or disabled. |
21 extern const char kHostEnabledConfigPath[]; | 21 extern const char kHostEnabledConfigPath[]; |
22 // Google account of the owner of this host. | 22 // Base JID of the host owner (may not equal the email for non-gmail users). |
23 extern const char kHostOwnerConfigPath[]; | 23 extern const char kHostOwnerConfigPath[]; |
24 // Login used to authenticate in XMPP network. | 24 // Email of the owner of this host. |
| 25 extern const char kHostOwnerEmailConfigPath[]; |
| 26 // Login used to authenticate in XMPP network (could be a service account). |
25 extern const char kXmppLoginConfigPath[]; | 27 extern const char kXmppLoginConfigPath[]; |
26 // Auth token used to authenticate to XMPP network. | 28 // Auth token used to authenticate to XMPP network. |
27 extern const char kXmppAuthTokenConfigPath[]; | 29 extern const char kXmppAuthTokenConfigPath[]; |
28 // 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. |
29 extern const char kOAuthRefreshTokenConfigPath[]; | 31 extern const char kOAuthRefreshTokenConfigPath[]; |
30 // Auth service used to authenticate to XMPP network. | 32 // Auth service used to authenticate to XMPP network. |
31 extern const char kXmppAuthServiceConfigPath[]; | 33 extern const char kXmppAuthServiceConfigPath[]; |
32 // Unique identifier of the host used to register the host in directory. | 34 // Unique identifier of the host used to register the host in directory. |
33 // Normally a random UUID. | 35 // Normally a random UUID. |
34 extern const char kHostIdConfigPath[]; | 36 extern const char kHostIdConfigPath[]; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 79 |
78 // Saves changes. | 80 // Saves changes. |
79 virtual bool Save() = 0; | 81 virtual bool Save() = 0; |
80 | 82 |
81 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); | 83 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); |
82 }; | 84 }; |
83 | 85 |
84 } // namespace remoting | 86 } // namespace remoting |
85 | 87 |
86 #endif // REMOTING_HOST_HOST_CONFIG_H_ | 88 #endif // REMOTING_HOST_HOST_CONFIG_H_ |
OLD | NEW |