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. |
| 23 extern const char kHostOwnerConfigPath[]; |
22 // Login used to authenticate in XMPP network. | 24 // Login used to authenticate in XMPP network. |
23 extern const char kXmppLoginConfigPath[]; | 25 extern const char kXmppLoginConfigPath[]; |
24 // Auth token used to authenticate to XMPP network. | 26 // Auth token used to authenticate to XMPP network. |
25 extern const char kXmppAuthTokenConfigPath[]; | 27 extern const char kXmppAuthTokenConfigPath[]; |
26 // OAuth refresh token used to fetch an access token for the XMPP network. | 28 // OAuth refresh token used to fetch an access token for the XMPP network. |
27 extern const char kOAuthRefreshTokenConfigPath[]; | 29 extern const char kOAuthRefreshTokenConfigPath[]; |
28 // Auth service used to authenticate to XMPP network. | 30 // Auth service used to authenticate to XMPP network. |
29 extern const char kXmppAuthServiceConfigPath[]; | 31 extern const char kXmppAuthServiceConfigPath[]; |
30 // 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. |
31 // Normally a random UUID. | 33 // Normally a random UUID. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 73 |
72 // Saves changes. | 74 // Saves changes. |
73 virtual bool Save() = 0; | 75 virtual bool Save() = 0; |
74 | 76 |
75 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); | 77 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); |
76 }; | 78 }; |
77 | 79 |
78 } // namespace remoting | 80 } // namespace remoting |
79 | 81 |
80 #endif // REMOTING_HOST_HOST_CONFIG_H_ | 82 #endif // REMOTING_HOST_HOST_CONFIG_H_ |
OLD | NEW |