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

Unified Diff: remoting/host/host_config.h

Issue 3060034: Convert src/remoting to std::string/char* away from wstring/wchar_t*. (Closed)
Patch Set: Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/host_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_config.h
diff --git a/remoting/host/host_config.h b/remoting/host/host_config.h
index 7c92649decadec3fc4ed288569a5e57240ef24c2..22ef5333f4da0c7d5222139371ac81791d5b7701 100644
--- a/remoting/host/host_config.h
+++ b/remoting/host/host_config.h
@@ -16,16 +16,16 @@ namespace remoting {
// Following constants define names for configuration parameters.
// Login used to authenticate in XMPP network.
-extern const wchar_t* kXmppLoginConfigPath;
+extern const char* kXmppLoginConfigPath;
// Auth token used to authenticate in XMPP network.
-extern const wchar_t* kXmppAuthTokenConfigPath;
+extern const char* kXmppAuthTokenConfigPath;
// Unique identifier of the host used to register the host in directory.
// Normally a random UUID.
-extern const wchar_t* kHostIdConfigPath;
+extern const char* kHostIdConfigPath;
// Readable host name.
-extern const wchar_t* kHostNameConfigPath;
+extern const char* kHostNameConfigPath;
// Private keys used for host authentication.
-extern const wchar_t* kPrivateKeyConfigPath;
+extern const char* kPrivateKeyConfigPath;
// HostConfig interace provides read-only access to host configuration.
class HostConfig : public base::RefCountedThreadSafe<HostConfig> {
@@ -33,10 +33,7 @@ class HostConfig : public base::RefCountedThreadSafe<HostConfig> {
HostConfig() { };
virtual ~HostConfig() { }
- virtual bool GetString(const std::wstring& path,
- std::wstring* out_value) = 0;
- virtual bool GetString(const std::wstring& path,
- std::string* out_value) = 0;
+ virtual bool GetString(const std::string& path, std::string* out_value) = 0;
DISALLOW_COPY_AND_ASSIGN(HostConfig);
};
@@ -53,9 +50,7 @@ class MutableHostConfig : public HostConfig {
// SetString() updates specified config value. This methods must only
// be called from task specified in Update().
- virtual void SetString(const std::wstring& path,
- const std::wstring& in_value) = 0;
- virtual void SetString(const std::wstring& path,
+ virtual void SetString(const std::string& path,
const std::string& in_value) = 0;
DISALLOW_COPY_AND_ASSIGN(MutableHostConfig);
« no previous file with comments | « no previous file | remoting/host/host_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698