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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/security_key/security_key_ipc_constants.h
diff --git a/remoting/host/security_key/security_key_ipc_constants.h b/remoting/host/security_key/security_key_ipc_constants.h
index 236e6d9749bf4c6943535ec54efa7782cd33831b..ce183dd83298043843a399b7f2bebdbc78e7d2c6 100644
--- a/remoting/host/security_key/security_key_ipc_constants.h
+++ b/remoting/host/security_key/security_key_ipc_constants.h
@@ -7,6 +7,8 @@
#include <string>
+#include "mojo/edk/embedder/named_platform_handle.h"
+
namespace remoting {
// Used to indicate an error during a security key forwarding session.
@@ -14,10 +16,11 @@ extern const char kSecurityKeyConnectionError[];
// Returns the name of the well-known IPC server channel used to initiate a
// security key forwarding session.
-const std::string& GetSecurityKeyIpcChannelName();
+const mojo::edk::NamedPlatformHandle& GetSecurityKeyIpcChannel();
// Sets the name of the well-known IPC server channel for testing purposes.
-void SetSecurityKeyIpcChannelNameForTest(const std::string& channel_name);
+void SetSecurityKeyIpcChannelForTest(
+ const mojo::edk::NamedPlatformHandle& channel_handle);
// Returns a path appropriate for placing a channel name. Without this path
// prefix, we may not have permission on linux to bind(2) a socket to a name in

Powered by Google App Engine
This is Rietveld 408576698