Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1059)

Side by Side Diff: remoting/host/host_config.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « remoting/host/host_change_notification_listener_unittest.cc ('k') | remoting/host/host_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698