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

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

Issue 2908011: Replaced static wstring with 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 unified diff | Download patch
« no previous file with comments | « no previous file | remoting/host/host_config.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/ref_counted.h" 10 #include "base/ref_counted.h"
11 11
12 class Task; 12 class Task;
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 // Following constants define names for configuration parameters. 16 // Following constants define names for configuration parameters.
17 17
18 // Login used to authenticate in XMPP network. 18 // Login used to authenticate in XMPP network.
19 extern const std::wstring kXmppLoginConfigPath; 19 extern const wchar_t* kXmppLoginConfigPath;
tfarina 2010/07/16 22:48:07 please, use wchar_t kFoo[]
20 // Auth token used to authenticate in XMPP network. 20 // Auth token used to authenticate in XMPP network.
21 extern const std::wstring kXmppAuthTokenConfigPath; 21 extern const wchar_t* kXmppAuthTokenConfigPath;
22 // Unique identifier of the host used to register the host in directory. 22 // Unique identifier of the host used to register the host in directory.
23 // Normally a random UUID. 23 // Normally a random UUID.
24 extern const std::wstring kHostIdConfigPath; 24 extern const wchar_t* kHostIdConfigPath;
25 // Readable host name. 25 // Readable host name.
26 extern const std::wstring kHostNameConfigPath; 26 extern const wchar_t* kHostNameConfigPath;
27 // Private keys used for host authentication. 27 // Private keys used for host authentication.
28 extern const std::wstring kPrivateKeyConfigPath; 28 extern const wchar_t* kPrivateKeyConfigPath;
29 29
30 // HostConfig interace provides read-only access to host configuration. 30 // HostConfig interace provides read-only access to host configuration.
31 class HostConfig : public base::RefCountedThreadSafe<HostConfig> { 31 class HostConfig : public base::RefCountedThreadSafe<HostConfig> {
32 public: 32 public:
33 HostConfig() { }; 33 HostConfig() { };
34 virtual ~HostConfig() { } 34 virtual ~HostConfig() { }
35 35
36 virtual bool GetString(const std::wstring& path, 36 virtual bool GetString(const std::wstring& path,
37 std::wstring* out_value) = 0; 37 std::wstring* out_value) = 0;
38 virtual bool GetString(const std::wstring& path, 38 virtual bool GetString(const std::wstring& path,
(...skipping 18 matching lines...) Expand all
57 const std::wstring& in_value) = 0; 57 const std::wstring& in_value) = 0;
58 virtual void SetString(const std::wstring& path, 58 virtual void SetString(const std::wstring& path,
59 const std::string& in_value) = 0; 59 const std::string& in_value) = 0;
60 60
61 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); 61 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig);
62 }; 62 };
63 63
64 } // namespace remoting 64 } // namespace remoting
65 65
66 #endif // REMOTING_HOST_HOST_CONFIG_H_ 66 #endif // REMOTING_HOST_HOST_CONFIG_H_
OLDNEW
« 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