Chromium Code Reviews| 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_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_ |
| 6 #define REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_ | 6 #define REMOTING_HOST_SECURITY_KEY_REMOTE_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 remote security key forwarding session. |
| 13 extern const char kRemoteSecurityKeyConnectionError[]; | 13 extern const char kRemoteSecurityKeyConnectionError[]; |
| 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 // remote security key forwarding session. |
| 17 const std::string& GetRemoteSecurityKeyIpcChannelName(); | 17 const std::string& GetRemoteSecurityKeyIpcChannelName(); |
| 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 SetRemoteSecurityKeyIpcChannelNameForTest(const std::string& channel_name); |
| 21 | 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 directly. | |
|
Jamie
2016/05/20 20:27:34
s/directly/directory/
Tom (Use chromium acct)
2016/05/20 21:31:01
Done.
| |
| 25 std::string GetChannelNamePathPrefixForTest(); | |
| 26 | |
| 22 } // namespace remoting | 27 } // namespace remoting |
| 23 | 28 |
| 24 #endif // REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_ | 29 #endif // REMOTING_HOST_SECURITY_KEY_REMOTE_SECURITY_KEY_IPC_CONSTANTS_H_ |
| OLD | NEW |