OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_ |
| 6 #define REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 namespace remoting { |
| 11 |
| 12 // Used to indicate an error during remote security key forwarding session. |
| 13 extern const char kRemoteSecurityKeyConnectionError[]; |
| 14 |
| 15 // Returns the name of the well-known IPC server channel used to initiate a |
| 16 // remote security key forwarding session. |
| 17 const std::string& GetRemoteSecurityKeyIpcChannelName(); |
| 18 |
| 19 // Sets the name of the well-known IPC server channel for testing purposes. |
| 20 void SetRemoteSecurityKeyIpcChannelNameForTest(const std::string& channel_name); |
| 21 |
| 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 |
| 24 // the current directory. |
| 25 std::string GetChannelNamePathPrefixForTest(); |
| 26 |
| 27 } // namespace remoting |
| 28 |
| 29 #endif // REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_ |
OLD | NEW |