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

Unified Diff: remoting/host/security_key/security_key_ipc_server.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_server.h
diff --git a/remoting/host/security_key/security_key_ipc_server.h b/remoting/host/security_key/security_key_ipc_server.h
index d1ad72a06e885a7b58f17915f8977d48f62056bd..accec3d24da02cd7c36c1c904e5421106627913a 100644
--- a/remoting/host/security_key/security_key_ipc_server.h
+++ b/remoting/host/security_key/security_key_ipc_server.h
@@ -11,6 +11,7 @@
#include "base/callback_forward.h"
#include "base/time/time.h"
+#include "mojo/edk/embedder/named_platform_handle.h"
#include "remoting/host/security_key/security_key_auth_handler.h"
namespace remoting {
@@ -30,6 +31,7 @@ class SecurityKeyIpcServer {
ClientSessionDetails* client_session_details,
base::TimeDelta initial_connect_timeout,
const SecurityKeyAuthHandler::SendMessageCallback& message_callback,
+ const base::Closure& connect_callback,
const base::Closure& done_callback);
// Used to set a Factory to generate fake/mock SecurityKeyIpcServer
@@ -37,8 +39,9 @@ class SecurityKeyIpcServer {
static void SetFactoryForTest(SecurityKeyIpcServerFactory* factory);
// Creates and starts listening on an IPC channel with the given name.
- virtual bool CreateChannel(const std::string& channel_name,
- base::TimeDelta request_timeout) = 0;
+ virtual bool CreateChannel(
+ const mojo::edk::NamedPlatformHandle& channel_handle,
+ base::TimeDelta request_timeout) = 0;
// Sends a security key response IPC message via the IPC channel.
virtual bool SendResponse(const std::string& message_data) = 0;
@@ -54,6 +57,7 @@ class SecurityKeyIpcServerFactory {
ClientSessionDetails* client_session_details,
base::TimeDelta connect_timeout,
const SecurityKeyAuthHandler::SendMessageCallback& message_callback,
+ const base::Closure& connect_callback,
const base::Closure& done_callback) = 0;
};
« no previous file with comments | « remoting/host/security_key/security_key_ipc_constants.cc ('k') | remoting/host/security_key/security_key_ipc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698