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

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

Issue 10824286: Fix DaemonControllerLinux::SetConfigAndStart() to reload config automatically. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/in_memory_host_config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 namespace base {
13 class DictionaryValue;
14 } // namespace base
15
12 namespace remoting { 16 namespace remoting {
13 17
14 // Following constants define names for configuration parameters. 18 // Following constants define names for configuration parameters.
15 19
16 // Status of the host, whether it is enabled or disabled. 20 // Status of the host, whether it is enabled or disabled.
17 extern const char kHostEnabledConfigPath[]; 21 extern const char kHostEnabledConfigPath[];
18 // Login used to authenticate in XMPP network. 22 // Login used to authenticate in XMPP network.
19 extern const char kXmppLoginConfigPath[]; 23 extern const char kXmppLoginConfigPath[];
20 // Auth token used to authenticate to XMPP network. 24 // Auth token used to authenticate to XMPP network.
21 extern const char kXmppAuthTokenConfigPath[]; 25 extern const char kXmppAuthTokenConfigPath[];
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class MutableHostConfig : public HostConfig { 57 class MutableHostConfig : public HostConfig {
54 public: 58 public:
55 MutableHostConfig() {} 59 MutableHostConfig() {}
56 60
57 // SetString() updates specified config value. Save() must be called to save 61 // SetString() updates specified config value. Save() must be called to save
58 // the changes on the disk. 62 // the changes on the disk.
59 virtual void SetString(const std::string& path, 63 virtual void SetString(const std::string& path,
60 const std::string& in_value) = 0; 64 const std::string& in_value) = 0;
61 virtual void SetBoolean(const std::string& path, bool in_value) = 0; 65 virtual void SetBoolean(const std::string& path, bool in_value) = 0;
62 66
67 // Copy configuration from specified |dictionary|. Returns false if the
68 // |dictionary| contains some values that cannot be saved in the config. In
69 // that case, all other values are still copied.
70 virtual bool CopyFrom(const base::DictionaryValue* dictionary) = 0;
71
63 // Saves changes. 72 // Saves changes.
64 virtual bool Save() = 0; 73 virtual bool Save() = 0;
65 74
66 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); 75 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig);
67 }; 76 };
68 77
69 } // namespace remoting 78 } // namespace remoting
70 79
71 #endif // REMOTING_HOST_HOST_CONFIG_H_ 80 #endif // REMOTING_HOST_HOST_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/in_memory_host_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698