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

Unified Diff: remoting/host/chromoting_messages.h

Issue 2451953002: Use ChannelMojo between the remoting network and desktop processes. (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
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/daemon_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_messages.h
diff --git a/remoting/host/chromoting_messages.h b/remoting/host/chromoting_messages.h
index db17927c5ab3d37be6640901ccc593ee5580f2c1..3d26c3878880d51be420cc7f763ed54a4ee00959 100644
--- a/remoting/host/chromoting_messages.h
+++ b/remoting/host/chromoting_messages.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "base/memory/shared_memory_handle.h"
+#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_platform_file.h"
#include "remoting/host/chromoting_param_traits.h"
#include "remoting/host/screen_resolution.h"
@@ -53,17 +54,11 @@ IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_TerminalDisconnected,
int /* terminal_id */)
// Notifies the network process that |terminal_id| is now attached to
-// a desktop integration process. |desktop_process| is the handle of the desktop
-// process. |desktop_pipe| is the client end of the desktop-to-network pipe
-// opened.
-//
-// Windows only: |desktop_pipe| has to be duplicated from the desktop process
-// by the receiver of the message. |desktop_process| is already duplicated by
-// the sender.
-IPC_MESSAGE_CONTROL3(ChromotingDaemonNetworkMsg_DesktopAttached,
+// a desktop integration process. |desktop_pipe| is the client end of the
+// desktop-to-network pipe opened.
+IPC_MESSAGE_CONTROL2(ChromotingDaemonNetworkMsg_DesktopAttached,
int /* terminal_id */,
- base::ProcessHandle /* desktop_process */,
- IPC::PlatformFileForTransit /* desktop_pipe */)
+ IPC::ChannelHandle /* desktop_pipe */)
//-----------------------------------------------------------------------------
// Chromoting messages sent from the network to the daemon process.
@@ -127,11 +122,8 @@ IPC_MESSAGE_CONTROL0(ChromotingNetworkDaemonMsg_HostShutdown)
// Notifies the daemon that a desktop integration process has been initialized.
// |desktop_pipe| specifies the client end of the desktop pipe. It is to be
// forwarded to the desktop environment stub.
-//
-// Windows only: |desktop_pipe| has to be duplicated from the desktop process by
-// the receiver of the message.
IPC_MESSAGE_CONTROL1(ChromotingDesktopDaemonMsg_DesktopAttached,
- IPC::PlatformFileForTransit /* desktop_pipe */)
+ IPC::ChannelHandle /* desktop_pipe */)
// Asks the daemon to inject Secure Attention Sequence (SAS) in the session
// where the desktop process is running.
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/daemon_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698