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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/daemon_process.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMOTING_MESSAGES_H_ 5 #ifndef REMOTING_HOST_CHROMOTING_MESSAGES_H_
6 #define REMOTING_HOST_CHROMOTING_MESSAGES_H_ 6 #define REMOTING_HOST_CHROMOTING_MESSAGES_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/shared_memory_handle.h" 10 #include "base/memory/shared_memory_handle.h"
11 #include "ipc/ipc_channel_handle.h"
11 #include "ipc/ipc_platform_file.h" 12 #include "ipc/ipc_platform_file.h"
12 #include "remoting/host/chromoting_param_traits.h" 13 #include "remoting/host/chromoting_param_traits.h"
13 #include "remoting/host/screen_resolution.h" 14 #include "remoting/host/screen_resolution.h"
14 #include "remoting/protocol/errors.h" 15 #include "remoting/protocol/errors.h"
15 #include "remoting/protocol/transport.h" 16 #include "remoting/protocol/transport.h"
16 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" 17 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h"
17 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 18 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
18 19
19 #endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_ 20 #endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_
20 21
(...skipping 25 matching lines...) Expand all
46 IPC_MESSAGE_CONTROL2(ChromotingDaemonNetworkMsg_InitializePairingRegistry, 47 IPC_MESSAGE_CONTROL2(ChromotingDaemonNetworkMsg_InitializePairingRegistry,
47 IPC::PlatformFileForTransit /* privileged_key */, 48 IPC::PlatformFileForTransit /* privileged_key */,
48 IPC::PlatformFileForTransit /* unprivileged_key */) 49 IPC::PlatformFileForTransit /* unprivileged_key */)
49 50
50 // Notifies the network process that the terminal |terminal_id| has been 51 // Notifies the network process that the terminal |terminal_id| has been
51 // disconnected from the desktop session. 52 // disconnected from the desktop session.
52 IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_TerminalDisconnected, 53 IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_TerminalDisconnected,
53 int /* terminal_id */) 54 int /* terminal_id */)
54 55
55 // Notifies the network process that |terminal_id| is now attached to 56 // Notifies the network process that |terminal_id| is now attached to
56 // a desktop integration process. |desktop_process| is the handle of the desktop 57 // a desktop integration process. |desktop_pipe| is the client end of the
57 // process. |desktop_pipe| is the client end of the desktop-to-network pipe 58 // desktop-to-network pipe opened.
58 // opened. 59 IPC_MESSAGE_CONTROL2(ChromotingDaemonNetworkMsg_DesktopAttached,
59 //
60 // Windows only: |desktop_pipe| has to be duplicated from the desktop process
61 // by the receiver of the message. |desktop_process| is already duplicated by
62 // the sender.
63 IPC_MESSAGE_CONTROL3(ChromotingDaemonNetworkMsg_DesktopAttached,
64 int /* terminal_id */, 60 int /* terminal_id */,
65 base::ProcessHandle /* desktop_process */, 61 IPC::ChannelHandle /* desktop_pipe */)
66 IPC::PlatformFileForTransit /* desktop_pipe */)
67 62
68 //----------------------------------------------------------------------------- 63 //-----------------------------------------------------------------------------
69 // Chromoting messages sent from the network to the daemon process. 64 // Chromoting messages sent from the network to the daemon process.
70 65
71 // Connects the terminal |terminal_id| (i.e. a remote client) to a desktop 66 // Connects the terminal |terminal_id| (i.e. a remote client) to a desktop
72 // session. 67 // session.
73 IPC_MESSAGE_CONTROL3(ChromotingNetworkHostMsg_ConnectTerminal, 68 IPC_MESSAGE_CONTROL3(ChromotingNetworkHostMsg_ConnectTerminal,
74 int /* terminal_id */, 69 int /* terminal_id */,
75 remoting::ScreenResolution /* resolution */, 70 remoting::ScreenResolution /* resolution */,
76 bool /* virtual_terminal */) 71 bool /* virtual_terminal */)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 std::string /* xmpp_login */) 115 std::string /* xmpp_login */)
121 116
122 IPC_MESSAGE_CONTROL0(ChromotingNetworkDaemonMsg_HostShutdown) 117 IPC_MESSAGE_CONTROL0(ChromotingNetworkDaemonMsg_HostShutdown)
123 118
124 //----------------------------------------------------------------------------- 119 //-----------------------------------------------------------------------------
125 // Chromoting messages sent from the desktop to the daemon process. 120 // Chromoting messages sent from the desktop to the daemon process.
126 121
127 // Notifies the daemon that a desktop integration process has been initialized. 122 // Notifies the daemon that a desktop integration process has been initialized.
128 // |desktop_pipe| specifies the client end of the desktop pipe. It is to be 123 // |desktop_pipe| specifies the client end of the desktop pipe. It is to be
129 // forwarded to the desktop environment stub. 124 // forwarded to the desktop environment stub.
130 //
131 // Windows only: |desktop_pipe| has to be duplicated from the desktop process by
132 // the receiver of the message.
133 IPC_MESSAGE_CONTROL1(ChromotingDesktopDaemonMsg_DesktopAttached, 125 IPC_MESSAGE_CONTROL1(ChromotingDesktopDaemonMsg_DesktopAttached,
134 IPC::PlatformFileForTransit /* desktop_pipe */) 126 IPC::ChannelHandle /* desktop_pipe */)
135 127
136 // Asks the daemon to inject Secure Attention Sequence (SAS) in the session 128 // Asks the daemon to inject Secure Attention Sequence (SAS) in the session
137 // where the desktop process is running. 129 // where the desktop process is running.
138 IPC_MESSAGE_CONTROL0(ChromotingDesktopDaemonMsg_InjectSas) 130 IPC_MESSAGE_CONTROL0(ChromotingDesktopDaemonMsg_InjectSas)
139 131
140 //----------------------------------------------------------------------------- 132 //-----------------------------------------------------------------------------
141 // Chromoting messages sent from the desktop to the network process. 133 // Chromoting messages sent from the desktop to the network process.
142 134
143 // Notifies the network process that a shared buffer has been created. 135 // Notifies the network process that a shared buffer has been created.
144 IPC_MESSAGE_CONTROL3(ChromotingDesktopNetworkMsg_CreateSharedBuffer, 136 IPC_MESSAGE_CONTROL3(ChromotingDesktopNetworkMsg_CreateSharedBuffer,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 261
270 // The IPC channel path for this remote_security_key connection. This message 262 // The IPC channel path for this remote_security_key connection. This message
271 // is sent from the well-known IPC server channel. 263 // is sent from the well-known IPC server channel.
272 IPC_MESSAGE_CONTROL1(ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionDetails, 264 IPC_MESSAGE_CONTROL1(ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionDetails,
273 std::string /* IPC Server path */) 265 std::string /* IPC Server path */)
274 266
275 // The array of bytes representing a security key response from the remote 267 // The array of bytes representing a security key response from the remote
276 // client. This message is sent over the per-client IPC channel. 268 // client. This message is sent over the per-client IPC channel.
277 IPC_MESSAGE_CONTROL1(ChromotingNetworkToRemoteSecurityKeyMsg_Response, 269 IPC_MESSAGE_CONTROL1(ChromotingNetworkToRemoteSecurityKeyMsg_Response,
278 std::string /* response bytes */) 270 std::string /* response bytes */)
OLDNEW
« 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