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

Side by Side Diff: remoting/host/security_key/security_key_ipc_constants.h

Issue 2478443002: Use ChannelMojo for remote security key channels. (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
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_SECURITY_KEY_IPC_CONSTANTS_H_ 5 #ifndef REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_IPC_CONSTANTS_H_
6 #define REMOTING_HOST_SECURITY_KEY_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 #include "mojo/edk/embedder/named_platform_handle.h"
11
10 namespace remoting { 12 namespace remoting {
11 13
12 // Used to indicate an error during a security key forwarding session. 14 // Used to indicate an error during a security key forwarding session.
13 extern const char kSecurityKeyConnectionError[]; 15 extern const char kSecurityKeyConnectionError[];
14 16
15 // Returns the name of the well-known IPC server channel used to initiate a 17 // Returns the name of the well-known IPC server channel used to initiate a
16 // security key forwarding session. 18 // security key forwarding session.
17 const std::string& GetSecurityKeyIpcChannelName(); 19 const mojo::edk::NamedPlatformHandle& GetSecurityKeyIpcChannel();
18 20
19 // Sets the name of the well-known IPC server channel for testing purposes. 21 // Sets the name of the well-known IPC server channel for testing purposes.
20 void SetSecurityKeyIpcChannelNameForTest(const std::string& channel_name); 22 void SetSecurityKeyIpcChannelForTest(
23 const mojo::edk::NamedPlatformHandle& channel_handle);
21 24
22 // Returns a path appropriate for placing a channel name. Without this path 25 // 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 26 // prefix, we may not have permission on linux to bind(2) a socket to a name in
24 // the current directory. 27 // the current directory.
25 std::string GetChannelNamePathPrefixForTest(); 28 std::string GetChannelNamePathPrefixForTest();
26 29
27 } // namespace remoting 30 } // namespace remoting
28 31
29 #endif // REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_IPC_CONSTANTS_H_ 32 #endif // REMOTING_HOST_SECURITY_KEY_SECURITY_KEY_IPC_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698