| 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" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // Normally a random UUID. | 33 // Normally a random UUID. |
| 34 extern const char kHostIdConfigPath[]; | 34 extern const char kHostIdConfigPath[]; |
| 35 // Readable host name. | 35 // Readable host name. |
| 36 extern const char kHostNameConfigPath[]; | 36 extern const char kHostNameConfigPath[]; |
| 37 // Hash of the host secret used for authentication. | 37 // Hash of the host secret used for authentication. |
| 38 extern const char kHostSecretHashConfigPath[]; | 38 extern const char kHostSecretHashConfigPath[]; |
| 39 // Private keys used for host authentication. | 39 // Private keys used for host authentication. |
| 40 extern const char kPrivateKeyConfigPath[]; | 40 extern const char kPrivateKeyConfigPath[]; |
| 41 // Whether consent is given for usage stats reporting. | 41 // Whether consent is given for usage stats reporting. |
| 42 extern const char kUsageStatsConsentConfigPath[]; | 42 extern const char kUsageStatsConsentConfigPath[]; |
| 43 // Whether to offer VP9 encoding to clients. |
| 44 extern const char kEnableVp9ConfigPath[]; |
| 43 | 45 |
| 44 // HostConfig interace provides read-only access to host configuration. | 46 // HostConfig interace provides read-only access to host configuration. |
| 45 class HostConfig { | 47 class HostConfig { |
| 46 public: | 48 public: |
| 47 HostConfig() {} | 49 HostConfig() {} |
| 48 virtual ~HostConfig() {} | 50 virtual ~HostConfig() {} |
| 49 | 51 |
| 50 virtual bool GetString(const std::string& path, | 52 virtual bool GetString(const std::string& path, |
| 51 std::string* out_value) const = 0; | 53 std::string* out_value) const = 0; |
| 52 virtual bool GetBoolean(const std::string& path, bool* out_value) const = 0; | 54 virtual bool GetBoolean(const std::string& path, bool* out_value) const = 0; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 73 | 75 |
| 74 // Saves changes. | 76 // Saves changes. |
| 75 virtual bool Save() = 0; | 77 virtual bool Save() = 0; |
| 76 | 78 |
| 77 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); | 79 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } // namespace remoting | 82 } // namespace remoting |
| 81 | 83 |
| 82 #endif // REMOTING_HOST_HOST_CONFIG_H_ | 84 #endif // REMOTING_HOST_HOST_CONFIG_H_ |
| OLD | NEW |