OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_ | 5 #ifndef REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_IPC_CONSTANTS_H_ |
6 #define REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_ | 6 #define REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_IPC_CONSTANTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace remoting { | 10 namespace remoting { |
11 | 11 |
12 // Used to indicate an error during remote security key forwarding session. | 12 // Used to indicate an error during a security key forwarding session. |
13 extern const char kRemoteSecurityKeyConnectionError[]; | 13 extern const char kSecurityKeyConnectionError[]; |
14 | 14 |
15 // Returns the name of the well-known IPC server channel used to initiate a | 15 // Returns the name of the well-known IPC server channel used to initiate a |
16 // remote security key forwarding session. | 16 // security key forwarding session. |
17 const std::string& GetRemoteSecurityKeyIpcChannelName(); | 17 const std::string& GetSecurityKeyIpcChannelName(); |
18 | 18 |
19 // Sets the name of the well-known IPC server channel for testing purposes. | 19 // Sets the name of the well-known IPC server channel for testing purposes. |
20 void SetRemoteSecurityKeyIpcChannelNameForTest(const std::string& channel_name); | 20 void SetSecurityKeyIpcChannelNameForTest(const std::string& channel_name); |
21 | 21 |
22 // Returns a path appropriate for placing a channel name. Without this path | 22 // Returns a path appropriate for placing a channel name. Without this path |
23 // prefix, we may not have permission on linux to bind(2) a socket to a name in | 23 // prefix, we may not have permission on linux to bind(2) a socket to a name in |
24 // the current directory. | 24 // the current directory. |
25 std::string GetChannelNamePathPrefixForTest(); | 25 std::string GetChannelNamePathPrefixForTest(); |
26 | 26 |
27 } // namespace remoting | 27 } // namespace remoting |
28 | 28 |
29 #endif // REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_ | 29 #endif // REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_IPC_CONSTANTS_H_ |
OLD | NEW |