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

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

Issue 9270031: Enable V2 authentication for Me2Me host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 11 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/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) 2011 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/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 // Following constants define names for configuration parameters. 14 // Following constants define names for configuration parameters.
15 15
16 // Status of the host, whether it is enabled or disabled. 16 // Status of the host, whether it is enabled or disabled.
17 extern const char kHostEnabledConfigPath[]; 17 extern const char kHostEnabledConfigPath[];
18 // Login used to authenticate in XMPP network. 18 // Login used to authenticate in XMPP network.
19 extern const char kXmppLoginConfigPath[]; 19 extern const char kXmppLoginConfigPath[];
20 // Auth token used to authenticate to XMPP network. 20 // Auth token used to authenticate to XMPP network.
21 extern const char kXmppAuthTokenConfigPath[]; 21 extern const char kXmppAuthTokenConfigPath[];
22 // Auth service used to authenticate to XMPP network. 22 // Auth service used to authenticate to XMPP network.
23 extern const char kXmppAuthServiceConfigPath[]; 23 extern const char kXmppAuthServiceConfigPath[];
24 // Unique identifier of the host used to register the host in directory. 24 // Unique identifier of the host used to register the host in directory.
25 // Normally a random UUID. 25 // Normally a random UUID.
26 extern const char kHostIdConfigPath[]; 26 extern const char kHostIdConfigPath[];
27 // Readable host name. 27 // Readable host name.
28 extern const char kHostNameConfigPath[]; 28 extern const char kHostNameConfigPath[];
29 // Hash of the host secret used for authentication.
30 extern const char kHostSecretHashConfigPath[];
29 // Private keys used for host authentication. 31 // Private keys used for host authentication.
30 extern const char kPrivateKeyConfigPath[]; 32 extern const char kPrivateKeyConfigPath[];
31 33
32 // HostConfig interace provides read-only access to host configuration. 34 // HostConfig interace provides read-only access to host configuration.
33 class HostConfig : public base::RefCountedThreadSafe<HostConfig> { 35 class HostConfig : public base::RefCountedThreadSafe<HostConfig> {
34 public: 36 public:
35 HostConfig() {} 37 HostConfig() {}
36 virtual ~HostConfig() {} 38 virtual ~HostConfig() {}
37 39
38 virtual bool GetString(const std::string& path, std::string* out_value) = 0; 40 virtual bool GetString(const std::string& path, std::string* out_value) = 0;
(...skipping 15 matching lines...) Expand all
54 56
55 // Save's changes. 57 // Save's changes.
56 virtual void Save() = 0; 58 virtual void Save() = 0;
57 59
58 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig); 60 DISALLOW_COPY_AND_ASSIGN(MutableHostConfig);
59 }; 61 };
60 62
61 } // namespace remoting 63 } // namespace remoting
62 64
63 #endif // REMOTING_HOST_HOST_CONFIG_H_ 65 #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