Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 | 11 |
| 12 class Task; | 12 class Task; |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 | 15 |
| 16 // Following constants define names for configuration parameters. | 16 // Following constants define names for configuration parameters. |
| 17 | 17 |
| 18 // Status of the host, whether it is enabled or disabled. | 18 // Status of the host, whether it is enabled or disabled. |
| 19 extern const char kHostEnabledConfigPath[]; | 19 extern const char kHostEnabledConfigPath[]; |
| 20 // Login used to authenticate in XMPP network. | 20 // Login used to authenticate in XMPP network. |
| 21 extern const char kXmppLoginConfigPath[]; | 21 extern const char kXmppLoginConfigPath[]; |
| 22 // Auth token used to authenticate in XMPP network. | 22 // Auth token used to authenticate in XMPP network. |
| 23 extern const char kXmppAuthTokenConfigPath[]; | 23 extern const char kXmppAuthTokenConfigPath[]; |
| 24 // Auth service used to authenticate in XMPP network. | |
|
Wez
2011/05/25 03:57:46
Should "in" really be "in" and not "to"?
awong
2011/05/25 16:56:56
sure.
| |
| 25 extern const char kXmppAuthServiceConfigPath[]; | |
| 24 // Unique identifier of the host used to register the host in directory. | 26 // Unique identifier of the host used to register the host in directory. |
| 25 // Normally a random UUID. | 27 // Normally a random UUID. |
| 26 extern const char kHostIdConfigPath[]; | 28 extern const char kHostIdConfigPath[]; |
| 27 // Readable host name. | 29 // Readable host name. |
| 28 extern const char kHostNameConfigPath[]; | 30 extern const char kHostNameConfigPath[]; |
| 29 // Private keys used for host authentication. | 31 // Private keys used for host authentication. |
| 30 extern const char kPrivateKeyConfigPath[]; | 32 extern const char kPrivateKeyConfigPath[]; |
| 31 | 33 |
| 32 // HostConfig interace provides read-only access to host configuration. | 34 // HostConfig interace provides read-only access to host configuration. |
| 33 class HostConfig : public base::RefCountedThreadSafe<HostConfig> { | 35 class HostConfig : public base::RefCountedThreadSafe<HostConfig> { |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 54 | 56 |
| 55 // Save's changes. | 57 // Save's changes. |
| 56 virtual void Save() = 0; | 58 virtual void Save() = 0; |
| 57 | 59 |
| 58 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); | 60 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); |
| 59 }; | 61 }; |
| 60 | 62 |
| 61 } // namespace remoting | 63 } // namespace remoting |
| 62 | 64 |
| 63 #endif // REMOTING_HOST_HOST_CONFIG_H_ | 65 #endif // REMOTING_HOST_HOST_CONFIG_H_ |
| OLD | NEW |