blob: d846dd58ede4eda8f9f13be2ee4dbf52309907fe [file] [log] [blame]
[email protected]c2b374402012-03-12 19:23:071// 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
3// found in the LICENSE file.
4
[email protected]ff72dd12012-11-27 05:18:255#ifndef REMOTING_HOST_CHROMOTING_MESSAGES_H_
6#define REMOTING_HOST_CHROMOTING_MESSAGES_H_
7
avic5960f32015-12-22 22:49:488#include <stdint.h>
9
Erik Jensen8f1acc12019-01-14 20:18:3110#include "base/files/file_path.h"
Matthew Cary7d8e48e2019-04-16 08:32:3611#include "base/memory/read_only_shared_memory_region.h"
zijiehe36763d82017-06-19 23:52:3112#include "base/time/time.h"
sammce66272fae2016-11-01 03:49:0413#include "ipc/ipc_channel_handle.h"
[email protected]ff72dd12012-11-27 05:18:2514#include "ipc/ipc_platform_file.h"
[email protected]b9ed58f2013-05-16 10:45:2415#include "remoting/host/chromoting_param_traits.h"
sergeyuc986f522016-11-28 22:51:0116#include "remoting/host/desktop_environment_options.h"
[email protected]739e2802013-03-18 01:03:4817#include "remoting/host/screen_resolution.h"
Joe Downing505ae0d02018-10-17 17:47:3018#include "remoting/proto/action.pb.h"
zijiehe36763d82017-06-19 23:52:3119#include "remoting/proto/process_stats.pb.h"
sergeyuec77d8542015-11-03 22:31:0020#include "remoting/protocol/errors.h"
Erik Jensen042b4392019-01-17 20:32:3121#include "remoting/protocol/file_transfer_helpers.h"
[email protected]39a631b2013-03-04 22:19:0522#include "remoting/protocol/transport.h"
sergeyu546cbaa2016-06-17 20:39:3223#include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h"
[email protected]b9ed58f2013-05-16 10:45:2424#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
[email protected]ff72dd12012-11-27 05:18:2525
26#endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_
[email protected]c2b374402012-03-12 19:23:0727
28// Multiply-included message file, no traditional include guard.
29#include "ipc/ipc_message_macros.h"
30
31#define IPC_MESSAGE_START ChromotingMsgStart
[email protected]df338b7d2012-09-05 19:58:3632
33//-----------------------------------------------------------------------------
[email protected]e9057a6f2013-03-08 22:37:5534// Chromoting messages sent from the daemon.
[email protected]df338b7d2012-09-05 19:58:3635
[email protected]e9057a6f2013-03-08 22:37:5536// Requests the receiving process to crash producing a crash dump. The daemon
[email protected]13d9ffb2012-10-23 22:23:5037// sends this message when a fatal error has been detected indicating that
[email protected]e9057a6f2013-03-08 22:37:5538// the receiving process misbehaves. The daemon passes the location of the code
[email protected]13d9ffb2012-10-23 22:23:5039// that detected the error.
Erik Jensen6d6de5922018-11-30 22:51:1040IPC_MESSAGE_CONTROL(ChromotingDaemonMsg_Crash,
41 std::string /* function_name */,
42 std::string /* file_name */,
43 int /* line_number */)
[email protected]13d9ffb2012-10-23 22:23:5044
[email protected]e9057a6f2013-03-08 22:37:5545//-----------------------------------------------------------------------------
46// Chromoting messages sent from the daemon to the network process.
47
[email protected]df338b7d2012-09-05 19:58:3648// Delivers the host configuration (and updates) to the network process.
Erik Jensen6d6de5922018-11-30 22:51:1049IPC_MESSAGE_CONTROL(ChromotingDaemonNetworkMsg_Configuration, std::string)
[email protected]60ccc242012-10-17 21:06:2450
[email protected]7fe3ce42014-02-11 02:27:4851// Initializes the pairing registry on Windows. The passed key handles are
52// already duplicated by the sender.
Erik Jensen6d6de5922018-11-30 22:51:1053IPC_MESSAGE_CONTROL(ChromotingDaemonNetworkMsg_InitializePairingRegistry,
54 IPC::PlatformFileForTransit /* privileged_key */,
55 IPC::PlatformFileForTransit /* unprivileged_key */)
[email protected]7fe3ce42014-02-11 02:27:4856
[email protected]60ccc242012-10-17 21:06:2457// Notifies the network process that the terminal |terminal_id| has been
58// disconnected from the desktop session.
Erik Jensen6d6de5922018-11-30 22:51:1059IPC_MESSAGE_CONTROL(ChromotingDaemonNetworkMsg_TerminalDisconnected,
60 int /* terminal_id */)
[email protected]60ccc242012-10-17 21:06:2461
[email protected]12066cb2012-10-25 03:25:4362// Notifies the network process that |terminal_id| is now attached to
sammcf9cd299a2016-11-02 22:13:2663// a desktop integration process. |session_id| is the id of the desktop session
64// being attached. |desktop_pipe| is the client end of the desktop-to-network
65// pipe opened.
Erik Jensen6d6de5922018-11-30 22:51:1066IPC_MESSAGE_CONTROL(ChromotingDaemonNetworkMsg_DesktopAttached,
67 int /* terminal_id */,
68 int /* session_id */,
69 IPC::ChannelHandle /* desktop_pipe */)
[email protected]12066cb2012-10-25 03:25:4370
[email protected]60ccc242012-10-17 21:06:2471//-----------------------------------------------------------------------------
72// Chromoting messages sent from the network to the daemon process.
73
[email protected]e36460f2013-03-08 09:29:3274// Connects the terminal |terminal_id| (i.e. a remote client) to a desktop
[email protected]60ccc242012-10-17 21:06:2475// session.
Erik Jensen6d6de5922018-11-30 22:51:1076IPC_MESSAGE_CONTROL(ChromotingNetworkHostMsg_ConnectTerminal,
77 int /* terminal_id */,
78 remoting::ScreenResolution /* resolution */,
79 bool /* virtual_terminal */)
[email protected]60ccc242012-10-17 21:06:2480
81// Disconnects the terminal |terminal_id| from the desktop session it was
82// connected to.
Erik Jensen6d6de5922018-11-30 22:51:1083IPC_MESSAGE_CONTROL(ChromotingNetworkHostMsg_DisconnectTerminal,
84 int /* terminal_id */)
[email protected]12066cb2012-10-25 03:25:4385
[email protected]6f526ce2013-03-18 04:38:5686// Changes the screen resolution in the given desktop session.
Erik Jensen6d6de5922018-11-30 22:51:1087IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_SetScreenResolution,
88 int /* terminal_id */,
89 remoting::ScreenResolution /* resolution */)
[email protected]6f526ce2013-03-18 04:38:5690
[email protected]39a631b2013-03-04 22:19:0591// Serialized remoting::protocol::TransportRoute structure.
92IPC_STRUCT_BEGIN(SerializedTransportRoute)
martijna46bd47a2016-04-06 18:05:4893 IPC_STRUCT_MEMBER(remoting::protocol::TransportRoute::RouteType, type)
sergeyuf684dd1922016-09-28 22:37:5794 IPC_STRUCT_MEMBER(std::vector<uint8_t>, remote_ip)
95 IPC_STRUCT_MEMBER(uint16_t, remote_port)
96 IPC_STRUCT_MEMBER(std::vector<uint8_t>, local_ip)
97 IPC_STRUCT_MEMBER(uint16_t, local_port)
[email protected]39a631b2013-03-04 22:19:0598IPC_STRUCT_END()
99
martijna46bd47a2016-04-06 18:05:48100IPC_ENUM_TRAITS_MAX_VALUE(remoting::protocol::TransportRoute::RouteType,
101 remoting::protocol::TransportRoute::ROUTE_TYPE_MAX)
102
[email protected]39a631b2013-03-04 22:19:05103// Hosts status notifications (see HostStatusObserver interface) sent by
104// IpcHostEventLogger.
Erik Jensen6d6de5922018-11-30 22:51:10105IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_AccessDenied,
106 std::string /* jid */)
[email protected]39a631b2013-03-04 22:19:05107
Erik Jensen6d6de5922018-11-30 22:51:10108IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_ClientAuthenticated,
109 std::string /* jid */)
[email protected]39a631b2013-03-04 22:19:05110
Erik Jensen6d6de5922018-11-30 22:51:10111IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_ClientConnected,
112 std::string /* jid */)
[email protected]39a631b2013-03-04 22:19:05113
Erik Jensen6d6de5922018-11-30 22:51:10114IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_ClientDisconnected,
115 std::string /* jid */)
[email protected]39a631b2013-03-04 22:19:05116
Erik Jensen6d6de5922018-11-30 22:51:10117IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_ClientRouteChange,
118 std::string /* jid */,
119 std::string /* channel_name */,
120 SerializedTransportRoute /* route */)
[email protected]39a631b2013-03-04 22:19:05121
Erik Jensen6d6de5922018-11-30 22:51:10122IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_HostStarted,
123 std::string /* xmpp_login */)
[email protected]39a631b2013-03-04 22:19:05124
Erik Jensen6d6de5922018-11-30 22:51:10125IPC_MESSAGE_CONTROL(ChromotingNetworkDaemonMsg_HostShutdown)
[email protected]39a631b2013-03-04 22:19:05126
[email protected]12066cb2012-10-25 03:25:43127//-----------------------------------------------------------------------------
[email protected]12066cb2012-10-25 03:25:43128// Chromoting messages sent from the desktop to the daemon process.
129
130// Notifies the daemon that a desktop integration process has been initialized.
131// |desktop_pipe| specifies the client end of the desktop pipe. It is to be
132// forwarded to the desktop environment stub.
Erik Jensen6d6de5922018-11-30 22:51:10133IPC_MESSAGE_CONTROL(ChromotingDesktopDaemonMsg_DesktopAttached,
134 IPC::ChannelHandle /* desktop_pipe */)
[email protected]ff72dd12012-11-27 05:18:25135
[email protected]0dffd552012-12-07 01:08:09136// Asks the daemon to inject Secure Attention Sequence (SAS) in the session
137// where the desktop process is running.
Erik Jensen6d6de5922018-11-30 22:51:10138IPC_MESSAGE_CONTROL(ChromotingDesktopDaemonMsg_InjectSas)
[email protected]0dffd552012-12-07 01:08:09139
[email protected]ff72dd12012-11-27 05:18:25140//-----------------------------------------------------------------------------
141// Chromoting messages sent from the desktop to the network process.
142
[email protected]b9ed58f2013-05-16 10:45:24143// Notifies the network process that a shared buffer has been created.
Erik Jensen6d6de5922018-11-30 22:51:10144IPC_MESSAGE_CONTROL(ChromotingDesktopNetworkMsg_CreateSharedBuffer,
145 int /* id */,
Matthew Cary7d8e48e2019-04-16 08:32:36146 base::ReadOnlySharedMemoryRegion /* region */,
Erik Jensen6d6de5922018-11-30 22:51:10147 uint32_t /* size */)
[email protected]ff72dd12012-11-27 05:18:25148
149// Request the network process to stop using a shared buffer.
Erik Jensen6d6de5922018-11-30 22:51:10150IPC_MESSAGE_CONTROL(ChromotingDesktopNetworkMsg_ReleaseSharedBuffer,
151 int /* id */)
[email protected]ff72dd12012-11-27 05:18:25152
[email protected]b9ed58f2013-05-16 10:45:24153// Serialized webrtc::DesktopFrame.
154IPC_STRUCT_BEGIN(SerializedDesktopFrame)
[email protected]ff72dd12012-11-27 05:18:25155 // ID of the shared memory buffer containing the pixels.
156 IPC_STRUCT_MEMBER(int, shared_buffer_id)
157
[email protected]0d1559662012-11-27 20:23:11158 // Width of a single row of pixels in bytes.
159 IPC_STRUCT_MEMBER(int, bytes_per_row)
160
[email protected]ff72dd12012-11-27 05:18:25161 // Captured region.
[email protected]b9ed58f2013-05-16 10:45:24162 IPC_STRUCT_MEMBER(std::vector<webrtc::DesktopRect>, dirty_region)
[email protected]ff72dd12012-11-27 05:18:25163
[email protected]739e2802013-03-18 01:03:48164 // Dimensions of the buffer in pixels.
[email protected]b9ed58f2013-05-16 10:45:24165 IPC_STRUCT_MEMBER(webrtc::DesktopSize, dimensions)
[email protected]ff72dd12012-11-27 05:18:25166
[email protected]ff72dd12012-11-27 05:18:25167 // Time spent in capture. Unit is in milliseconds.
avic5960f32015-12-22 22:49:48168 IPC_STRUCT_MEMBER(int64_t, capture_time_ms)
[email protected]ff72dd12012-11-27 05:18:25169
sergeyuc258bd4b2015-01-08 20:57:50170 // Latest event timestamp supplied by the client for performance tracking.
avic5960f32015-12-22 22:49:48171 IPC_STRUCT_MEMBER(int64_t, latest_event_timestamp)
[email protected]ff72dd12012-11-27 05:18:25172
173 // DPI for this frame.
[email protected]b9ed58f2013-05-16 10:45:24174 IPC_STRUCT_MEMBER(webrtc::DesktopVector, dpi)
zijiehea1336afb2017-04-28 05:29:28175
176 // Capturer Id
177 IPC_STRUCT_MEMBER(uint32_t, capturer_id)
[email protected]ff72dd12012-11-27 05:18:25178IPC_STRUCT_END()
179
sergeyu546cbaa2016-06-17 20:39:32180IPC_ENUM_TRAITS_MAX_VALUE(webrtc::DesktopCapturer::Result,
181 webrtc::DesktopCapturer::Result::MAX_VALUE)
182
[email protected]ff72dd12012-11-27 05:18:25183// Notifies the network process that a shared buffer has been created.
Erik Jensen6d6de5922018-11-30 22:51:10184IPC_MESSAGE_CONTROL(ChromotingDesktopNetworkMsg_CaptureResult,
185 webrtc::DesktopCapturer::Result /* result */,
186 SerializedDesktopFrame /* frame */)
[email protected]ff72dd12012-11-27 05:18:25187
Gary Kacmarcik91f5ed42018-11-29 22:24:14188// Notifies the network process that the host display layout has changed.
Erik Jensen6d6de5922018-11-30 22:51:10189IPC_MESSAGE_CONTROL(ChromotingDesktopNetworkMsg_DisplayChanged,
190 remoting::protocol::VideoLayout /* layout */)
Gary Kacmarcik91f5ed42018-11-29 22:24:14191
[email protected]718daba2012-11-28 21:00:20192// Carries a cursor share update from the desktop session agent to the client.
Erik Jensen6d6de5922018-11-30 22:51:10193IPC_MESSAGE_CONTROL(ChromotingDesktopNetworkMsg_MouseCursor,
194 webrtc::MouseCursor /* cursor */)
[email protected]ff72dd12012-11-27 05:18:25195
[email protected]31014af2012-11-30 04:04:57196// Carries a clipboard event from the desktop session agent to the client.
197// |serialized_event| is a serialized protocol::ClipboardEvent.
Erik Jensen6d6de5922018-11-30 22:51:10198IPC_MESSAGE_CONTROL(ChromotingDesktopNetworkMsg_InjectClipboardEvent,
199 std::string /* serialized_event */)
[email protected]31014af2012-11-30 04:04:57200
sergeyuec77d8542015-11-03 22:31:00201IPC_ENUM_TRAITS_MAX_VALUE(remoting::protocol::ErrorCode,
202 remoting::protocol::ERROR_CODE_MAX)
203
[email protected]a031c972012-12-27 20:10:40204// Requests the network process to terminate the client session.
Erik Jensen6d6de5922018-11-30 22:51:10205IPC_MESSAGE_CONTROL(ChromotingDesktopNetworkMsg_DisconnectSession,
206 remoting::protocol::ErrorCode /* error */)
[email protected]a031c972012-12-27 20:10:40207
[email protected]1c969e32012-12-27 22:57:49208// Carries an audio packet from the desktop session agent to the client.
209// |serialized_packet| is a serialized AudioPacket.
Erik Jensen6d6de5922018-11-30 22:51:10210IPC_MESSAGE_CONTROL(ChromotingDesktopNetworkMsg_AudioPacket,
211 std::string /* serialized_packet */)
[email protected]1c969e32012-12-27 22:57:49212
Erik Jensen8f1acc12019-01-14 20:18:31213// Informs the network process of the result of a file operation on the file
Erik Jensen042b4392019-01-17 20:32:31214// identified by |file_id|. If |result| is an error, the file ID is no longer
215// valid.
216IPC_MESSAGE_CONTROL(
217 ChromotingDesktopNetworkMsg_FileResult,
218 uint64_t /* file_id */,
219 remoting::protocol::FileTransferResult<remoting::Monostate> /* result */)
Erik Jensen8f1acc12019-01-14 20:18:31220
Erik Jensendccb06a42019-01-25 01:19:27221// Carries the result of a read-file operation on the file identified by
222// |file_id|. |result| is the filename and size of the selected file. If
223// |result| is an error, the file ID is no longer valid.
224IPC_MESSAGE_CONTROL(ChromotingDesktopNetworkMsg_FileInfoResult,
225 uint64_t /* file_id */,
226 remoting::protocol::FileTransferResult<
227 std::tuple<base::FilePath, uint64_t>> /* result */)
228
229// Carries the result of a file read-chunk operation on the file identified by
230// |file_id|. |result| holds the read data. If |result| is an error, the file ID
231// is no longer valid.
232IPC_MESSAGE_CONTROL(
233 ChromotingDesktopNetworkMsg_FileDataResult,
234 uint64_t /* file_id */,
235 remoting::protocol::FileTransferResult<std::string> /* result */)
236
[email protected]ff72dd12012-11-27 05:18:25237//-----------------------------------------------------------------------------
238// Chromoting messages sent from the network to the desktop process.
239
[email protected]a031c972012-12-27 20:10:40240// Passes the client session data to the desktop session agent and starts it.
241// This must be the first message received from the host.
Erik Jensen6d6de5922018-11-30 22:51:10242IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_StartSessionAgent,
243 std::string /* authenticated_jid */,
244 remoting::ScreenResolution /* resolution */,
245 remoting::DesktopEnvironmentOptions /* options */)
[email protected]a031c972012-12-27 20:10:40246
Erik Jensen6d6de5922018-11-30 22:51:10247IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_CaptureFrame)
[email protected]31014af2012-11-30 04:04:57248
Gary Kacmarcik0c56fda2019-01-17 03:10:12249IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_SelectSource,
250 int /* desktop_display_id */)
251
[email protected]31014af2012-11-30 04:04:57252// Carries a clipboard event from the client to the desktop session agent.
253// |serialized_event| is a serialized protocol::ClipboardEvent.
Erik Jensen6d6de5922018-11-30 22:51:10254IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_InjectClipboardEvent,
255 std::string /* serialized_event */)
[email protected]31014af2012-11-30 04:04:57256
257// Carries a keyboard event from the client to the desktop session agent.
258// |serialized_event| is a serialized protocol::KeyEvent.
Erik Jensen6d6de5922018-11-30 22:51:10259IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_InjectKeyEvent,
260 std::string /* serialized_event */)
[email protected]31014af2012-11-30 04:04:57261
[email protected]529bbd12014-03-27 20:25:39262// Carries a keyboard event from the client to the desktop session agent.
263// |serialized_event| is a serialized protocol::TextEvent.
Erik Jensen6d6de5922018-11-30 22:51:10264IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_InjectTextEvent,
265 std::string /* serialized_event */)
[email protected]529bbd12014-03-27 20:25:39266
[email protected]31014af2012-11-30 04:04:57267// Carries a mouse event from the client to the desktop session agent.
268// |serialized_event| is a serialized protocol::MouseEvent.
Erik Jensen6d6de5922018-11-30 22:51:10269IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_InjectMouseEvent,
270 std::string /* serialized_event */)
[email protected]6f526ce2013-03-18 04:38:56271
rkuroiwad11ebf02015-03-06 01:31:45272// Carries a touch event from the client to the desktop session agent.
273// |serialized_event| is a serialized protocol::TouchEvent.
Erik Jensen6d6de5922018-11-30 22:51:10274IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_InjectTouchEvent,
275 std::string /* serialized_event */)
rkuroiwad11ebf02015-03-06 01:31:45276
[email protected]6f526ce2013-03-18 04:38:56277// Changes the screen resolution in the desktop session.
Erik Jensen6d6de5922018-11-30 22:51:10278IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_SetScreenResolution,
279 remoting::ScreenResolution /* resolution */)
joedow99d59d42016-03-14 20:12:43280
Joe Downing505ae0d02018-10-17 17:47:30281// Carries an action request event from the client to the desktop session agent.
Erik Jensen6d6de5922018-11-30 22:51:10282IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_ExecuteActionRequest,
283 remoting::protocol::ActionRequest /* request */)
Joe Downing505ae0d02018-10-17 17:47:30284
Erik Jensen8f1acc12019-01-14 20:18:31285// Requests that the desktop process create a new file for writing with the
Erik Jensendccb06a42019-01-25 01:19:27286// provided file name, which will be identified by |file_id|. The desktop
287// process will respond with a FileResult message.
Erik Jensen8f1acc12019-01-14 20:18:31288IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_WriteFile,
289 uint64_t /* file_id */,
290 base::FilePath /* filename */)
291
292// Requests that the desktop process append the provided data chunk to the
Erik Jensendccb06a42019-01-25 01:19:27293// previously created file identified by |file_id|. The desktop process will
294// respond with a FileResult message.
Erik Jensen8f1acc12019-01-14 20:18:31295IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_WriteFileChunk,
296 uint64_t /* file_id */,
297 std::string /* data */)
298
Erik Jensendccb06a42019-01-25 01:19:27299// Prompt the user to select a file for reading, which will be identified by
300// |file_id|. The desktop process will respond with a FileInfoResult message.
301IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_ReadFile,
302 uint64_t /* file_id */)
303
304// Requests that the desktop process read a data chunk from the file identified
305// by |file_id|. The desktop process will respond with a FileDataResult message.
306IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_ReadFileChunk,
307 uint64_t /* file_id */,
308 uint64_t /* size */)
309
Erik Jensen8f1acc12019-01-14 20:18:31310// Requests that the desktop process close the file identified by |file_id|.
Erik Jensendccb06a42019-01-25 01:19:27311// If the file is being written, it will be finalized, and the desktop process
312// will respond with a FileResult message. If the file is being read, there is
313// no response message.
Erik Jensen8f1acc12019-01-14 20:18:31314IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_CloseFile,
315 uint64_t /* file_id */)
316
Erik Jensen0efaae42019-02-22 21:01:59317// Requests that the desktop process cancel the file identified by |file_id|.
318// If the file is being written, the partial file will be deleted. If the file
319// is being read, it will be closed. In either case, there is no response
320// message.
Erik Jensen8f1acc12019-01-14 20:18:31321IPC_MESSAGE_CONTROL(ChromotingNetworkDesktopMsg_CancelFile,
322 uint64_t /* file_id */)
323
joedow99d59d42016-03-14 20:12:43324//---------------------------------------------------------------------
325// Chromoting messages sent from the remote_security_key process to the
326// network process.
327
328// The array of bytes representing a security key request to be sent to the
329// remote client.
Erik Jensen6d6de5922018-11-30 22:51:10330IPC_MESSAGE_CONTROL(ChromotingRemoteSecurityKeyToNetworkMsg_Request,
331 std::string /* request bytes */)
joedow99d59d42016-03-14 20:12:43332
333//---------------------------------------------------------
334// Chromoting messages sent from the network process to the remote_security_key
sammcb90d19c2016-11-08 09:44:07335// process.
joedow99d59d42016-03-14 20:12:43336
joedowafdd0e92016-12-20 03:01:34337// The array of bytes representing the security key response from the client.
Erik Jensen6d6de5922018-11-30 22:51:10338IPC_MESSAGE_CONTROL(ChromotingNetworkToRemoteSecurityKeyMsg_Response,
339 std::string /* response bytes */)
joedowafdd0e92016-12-20 03:01:34340
341// Indicates the channel used for security key message passing is ready for use.
Erik Jensen6d6de5922018-11-30 22:51:10342IPC_MESSAGE_CONTROL(ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionReady)
joedowafdd0e92016-12-20 03:01:34343
344// Error indicating the request originated from outside the remoted session.
345// The IPC channel will be disconnected after this message has been sent.
Erik Jensen6d6de5922018-11-30 22:51:10346IPC_MESSAGE_CONTROL(ChromotingNetworkToRemoteSecurityKeyMsg_InvalidSession)
zijiehe36763d82017-06-19 23:52:31347
348// Starts to report process resource usage.
Erik Jensen6d6de5922018-11-30 22:51:10349IPC_MESSAGE_CONTROL(ChromotingNetworkToAnyMsg_StartProcessStatsReport,
350 base::TimeDelta /* interval */)
zijiehe36763d82017-06-19 23:52:31351
352// Stops to report process resource usage.
Erik Jensen6d6de5922018-11-30 22:51:10353IPC_MESSAGE_CONTROL(ChromotingNetworkToAnyMsg_StopProcessStatsReport)
zijiehe36763d82017-06-19 23:52:31354
355// Reports process resource usage to network process.
Erik Jensen6d6de5922018-11-30 22:51:10356IPC_MESSAGE_CONTROL(ChromotingAnyToNetworkMsg_ReportProcessStats,
357 remoting::protocol::AggregatedProcessResourceUsage)