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 <memory> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/memory/scoped_ptr.h" | |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class DictionaryValue; | 13 class DictionaryValue; |
14 class FilePath; | 14 class FilePath; |
15 } // namespace base | 15 } // namespace base |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 | 18 |
19 // Following constants define names for configuration parameters. | 19 // Following constants define names for configuration parameters. |
20 | 20 |
(...skipping 19 matching lines...) Expand all Loading... |
40 // Whether consent is given for usage stats reporting. | 40 // Whether consent is given for usage stats reporting. |
41 extern const char kUsageStatsConsentConfigPath[]; | 41 extern const char kUsageStatsConsentConfigPath[]; |
42 // Whether to offer VP9 encoding to clients. | 42 // Whether to offer VP9 encoding to clients. |
43 extern const char kEnableVp9ConfigPath[]; | 43 extern const char kEnableVp9ConfigPath[]; |
44 // Number of Kibibytes of frame data to allow each client to record. | 44 // Number of Kibibytes of frame data to allow each client to record. |
45 extern const char kFrameRecorderBufferKbConfigPath[]; | 45 extern const char kFrameRecorderBufferKbConfigPath[]; |
46 // The GCD device ID of this host (if registered with GCD). | 46 // The GCD device ID of this host (if registered with GCD). |
47 extern const char kGcdDeviceIdConfigPath[]; | 47 extern const char kGcdDeviceIdConfigPath[]; |
48 | 48 |
49 // Helpers for serializing/deserializing Host configuration dictonaries. | 49 // Helpers for serializing/deserializing Host configuration dictonaries. |
50 scoped_ptr<base::DictionaryValue> HostConfigFromJson( | 50 std::unique_ptr<base::DictionaryValue> HostConfigFromJson( |
51 const std::string& serialized); | 51 const std::string& serialized); |
52 std::string HostConfigToJson(const base::DictionaryValue& host_config); | 52 std::string HostConfigToJson(const base::DictionaryValue& host_config); |
53 | 53 |
54 // Helpers for loading/saving host configurations from/to files. | 54 // Helpers for loading/saving host configurations from/to files. |
55 scoped_ptr<base::DictionaryValue> HostConfigFromJsonFile( | 55 std::unique_ptr<base::DictionaryValue> HostConfigFromJsonFile( |
56 const base::FilePath& config_file); | 56 const base::FilePath& config_file); |
57 bool HostConfigToJsonFile(const base::DictionaryValue& host_config, | 57 bool HostConfigToJsonFile(const base::DictionaryValue& host_config, |
58 const base::FilePath& config_file); | 58 const base::FilePath& config_file); |
59 | 59 |
60 } // namespace remoting | 60 } // namespace remoting |
61 | 61 |
62 #endif // REMOTING_HOST_HOST_CONFIG_H_ | 62 #endif // REMOTING_HOST_HOST_CONFIG_H_ |
OLD | NEW |