[email protected] | c2b37440 | 2012-03-12 19:23:07 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 5 | #ifndef REMOTING_HOST_CHROMOTING_MESSAGES_H_ |
| 6 | #define REMOTING_HOST_CHROMOTING_MESSAGES_H_ |
| 7 | |
avi | c5960f3 | 2015-12-22 22:49:48 | [diff] [blame] | 8 | #include <stdint.h> |
| 9 | |
erikchen | 9e1ffaa | 2015-12-29 23:42:18 | [diff] [blame] | 10 | #include "base/memory/shared_memory_handle.h" |
zijiehe | 36763d8 | 2017-06-19 23:52:31 | [diff] [blame] | 11 | #include "base/time/time.h" |
sammc | e66272fae | 2016-11-01 03:49:04 | [diff] [blame] | 12 | #include "ipc/ipc_channel_handle.h" |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 13 | #include "ipc/ipc_platform_file.h" |
[email protected] | b9ed58f | 2013-05-16 10:45:24 | [diff] [blame] | 14 | #include "remoting/host/chromoting_param_traits.h" |
sergeyu | c986f52 | 2016-11-28 22:51:01 | [diff] [blame] | 15 | #include "remoting/host/desktop_environment_options.h" |
[email protected] | 739e280 | 2013-03-18 01:03:48 | [diff] [blame] | 16 | #include "remoting/host/screen_resolution.h" |
zijiehe | 36763d8 | 2017-06-19 23:52:31 | [diff] [blame] | 17 | #include "remoting/proto/process_stats.pb.h" |
sergeyu | ec77d854 | 2015-11-03 22:31:00 | [diff] [blame] | 18 | #include "remoting/protocol/errors.h" |
[email protected] | 39a631b | 2013-03-04 22:19:05 | [diff] [blame] | 19 | #include "remoting/protocol/transport.h" |
sergeyu | 546cbaa | 2016-06-17 20:39:32 | [diff] [blame] | 20 | #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
[email protected] | b9ed58f | 2013-05-16 10:45:24 | [diff] [blame] | 21 | #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 22 | |
| 23 | #endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_ |
[email protected] | c2b37440 | 2012-03-12 19:23:07 | [diff] [blame] | 24 | |
| 25 | // Multiply-included message file, no traditional include guard. |
| 26 | #include "ipc/ipc_message_macros.h" |
| 27 | |
| 28 | #define IPC_MESSAGE_START ChromotingMsgStart |
[email protected] | df338b7d | 2012-09-05 19:58:36 | [diff] [blame] | 29 | |
| 30 | //----------------------------------------------------------------------------- |
[email protected] | e9057a6f | 2013-03-08 22:37:55 | [diff] [blame] | 31 | // Chromoting messages sent from the daemon. |
[email protected] | df338b7d | 2012-09-05 19:58:36 | [diff] [blame] | 32 | |
[email protected] | e9057a6f | 2013-03-08 22:37:55 | [diff] [blame] | 33 | // Requests the receiving process to crash producing a crash dump. The daemon |
[email protected] | 13d9ffb | 2012-10-23 22:23:50 | [diff] [blame] | 34 | // sends this message when a fatal error has been detected indicating that |
[email protected] | e9057a6f | 2013-03-08 22:37:55 | [diff] [blame] | 35 | // the receiving process misbehaves. The daemon passes the location of the code |
[email protected] | 13d9ffb | 2012-10-23 22:23:50 | [diff] [blame] | 36 | // that detected the error. |
[email protected] | e9057a6f | 2013-03-08 22:37:55 | [diff] [blame] | 37 | IPC_MESSAGE_CONTROL3(ChromotingDaemonMsg_Crash, |
[email protected] | 13d9ffb | 2012-10-23 22:23:50 | [diff] [blame] | 38 | std::string /* function_name */, |
| 39 | std::string /* file_name */, |
| 40 | int /* line_number */) |
| 41 | |
[email protected] | e9057a6f | 2013-03-08 22:37:55 | [diff] [blame] | 42 | //----------------------------------------------------------------------------- |
| 43 | // Chromoting messages sent from the daemon to the network process. |
| 44 | |
[email protected] | df338b7d | 2012-09-05 19:58:36 | [diff] [blame] | 45 | // Delivers the host configuration (and updates) to the network process. |
| 46 | IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_Configuration, std::string) |
[email protected] | 60ccc24 | 2012-10-17 21:06:24 | [diff] [blame] | 47 | |
[email protected] | 7fe3ce4 | 2014-02-11 02:27:48 | [diff] [blame] | 48 | // Initializes the pairing registry on Windows. The passed key handles are |
| 49 | // already duplicated by the sender. |
| 50 | IPC_MESSAGE_CONTROL2(ChromotingDaemonNetworkMsg_InitializePairingRegistry, |
| 51 | IPC::PlatformFileForTransit /* privileged_key */, |
| 52 | IPC::PlatformFileForTransit /* unprivileged_key */) |
| 53 | |
[email protected] | 60ccc24 | 2012-10-17 21:06:24 | [diff] [blame] | 54 | // Notifies the network process that the terminal |terminal_id| has been |
| 55 | // disconnected from the desktop session. |
| 56 | IPC_MESSAGE_CONTROL1(ChromotingDaemonNetworkMsg_TerminalDisconnected, |
| 57 | int /* terminal_id */) |
| 58 | |
[email protected] | 12066cb | 2012-10-25 03:25:43 | [diff] [blame] | 59 | // Notifies the network process that |terminal_id| is now attached to |
sammc | f9cd299a | 2016-11-02 22:13:26 | [diff] [blame] | 60 | // a desktop integration process. |session_id| is the id of the desktop session |
| 61 | // being attached. |desktop_pipe| is the client end of the desktop-to-network |
| 62 | // pipe opened. |
| 63 | IPC_MESSAGE_CONTROL3(ChromotingDaemonNetworkMsg_DesktopAttached, |
[email protected] | 12066cb | 2012-10-25 03:25:43 | [diff] [blame] | 64 | int /* terminal_id */, |
sammc | f9cd299a | 2016-11-02 22:13:26 | [diff] [blame] | 65 | int /* session_id */, |
sammc | e66272fae | 2016-11-01 03:49:04 | [diff] [blame] | 66 | IPC::ChannelHandle /* desktop_pipe */) |
[email protected] | 12066cb | 2012-10-25 03:25:43 | [diff] [blame] | 67 | |
[email protected] | 60ccc24 | 2012-10-17 21:06:24 | [diff] [blame] | 68 | //----------------------------------------------------------------------------- |
| 69 | // Chromoting messages sent from the network to the daemon process. |
| 70 | |
[email protected] | e36460f | 2013-03-08 09:29:32 | [diff] [blame] | 71 | // Connects the terminal |terminal_id| (i.e. a remote client) to a desktop |
[email protected] | 60ccc24 | 2012-10-17 21:06:24 | [diff] [blame] | 72 | // session. |
[email protected] | e36460f | 2013-03-08 09:29:32 | [diff] [blame] | 73 | IPC_MESSAGE_CONTROL3(ChromotingNetworkHostMsg_ConnectTerminal, |
| 74 | int /* terminal_id */, |
[email protected] | 739e280 | 2013-03-18 01:03:48 | [diff] [blame] | 75 | remoting::ScreenResolution /* resolution */, |
[email protected] | e36460f | 2013-03-08 09:29:32 | [diff] [blame] | 76 | bool /* virtual_terminal */) |
[email protected] | 60ccc24 | 2012-10-17 21:06:24 | [diff] [blame] | 77 | |
| 78 | // Disconnects the terminal |terminal_id| from the desktop session it was |
| 79 | // connected to. |
| 80 | IPC_MESSAGE_CONTROL1(ChromotingNetworkHostMsg_DisconnectTerminal, |
| 81 | int /* terminal_id */) |
[email protected] | 12066cb | 2012-10-25 03:25:43 | [diff] [blame] | 82 | |
[email protected] | 6f526ce | 2013-03-18 04:38:56 | [diff] [blame] | 83 | // Changes the screen resolution in the given desktop session. |
| 84 | IPC_MESSAGE_CONTROL2(ChromotingNetworkDaemonMsg_SetScreenResolution, |
| 85 | int /* terminal_id */, |
| 86 | remoting::ScreenResolution /* resolution */) |
| 87 | |
[email protected] | 39a631b | 2013-03-04 22:19:05 | [diff] [blame] | 88 | // Serialized remoting::protocol::TransportRoute structure. |
| 89 | IPC_STRUCT_BEGIN(SerializedTransportRoute) |
martijn | a46bd47a | 2016-04-06 18:05:48 | [diff] [blame] | 90 | IPC_STRUCT_MEMBER(remoting::protocol::TransportRoute::RouteType, type) |
sergeyu | f684dd192 | 2016-09-28 22:37:57 | [diff] [blame] | 91 | IPC_STRUCT_MEMBER(std::vector<uint8_t>, remote_ip) |
| 92 | IPC_STRUCT_MEMBER(uint16_t, remote_port) |
| 93 | IPC_STRUCT_MEMBER(std::vector<uint8_t>, local_ip) |
| 94 | IPC_STRUCT_MEMBER(uint16_t, local_port) |
[email protected] | 39a631b | 2013-03-04 22:19:05 | [diff] [blame] | 95 | IPC_STRUCT_END() |
| 96 | |
martijn | a46bd47a | 2016-04-06 18:05:48 | [diff] [blame] | 97 | IPC_ENUM_TRAITS_MAX_VALUE(remoting::protocol::TransportRoute::RouteType, |
| 98 | remoting::protocol::TransportRoute::ROUTE_TYPE_MAX) |
| 99 | |
[email protected] | 39a631b | 2013-03-04 22:19:05 | [diff] [blame] | 100 | // Hosts status notifications (see HostStatusObserver interface) sent by |
| 101 | // IpcHostEventLogger. |
| 102 | IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_AccessDenied, |
| 103 | std::string /* jid */) |
| 104 | |
| 105 | IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_ClientAuthenticated, |
| 106 | std::string /* jid */) |
| 107 | |
| 108 | IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_ClientConnected, |
| 109 | std::string /* jid */) |
| 110 | |
| 111 | IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_ClientDisconnected, |
| 112 | std::string /* jid */) |
| 113 | |
| 114 | IPC_MESSAGE_CONTROL3(ChromotingNetworkDaemonMsg_ClientRouteChange, |
| 115 | std::string /* jid */, |
| 116 | std::string /* channel_name */, |
| 117 | SerializedTransportRoute /* route */) |
| 118 | |
| 119 | IPC_MESSAGE_CONTROL1(ChromotingNetworkDaemonMsg_HostStarted, |
| 120 | std::string /* xmpp_login */) |
| 121 | |
| 122 | IPC_MESSAGE_CONTROL0(ChromotingNetworkDaemonMsg_HostShutdown) |
| 123 | |
[email protected] | 12066cb | 2012-10-25 03:25:43 | [diff] [blame] | 124 | //----------------------------------------------------------------------------- |
[email protected] | 12066cb | 2012-10-25 03:25:43 | [diff] [blame] | 125 | // Chromoting messages sent from the desktop to the daemon process. |
| 126 | |
| 127 | // 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 |
| 129 | // forwarded to the desktop environment stub. |
[email protected] | 12066cb | 2012-10-25 03:25:43 | [diff] [blame] | 130 | IPC_MESSAGE_CONTROL1(ChromotingDesktopDaemonMsg_DesktopAttached, |
sammc | e66272fae | 2016-11-01 03:49:04 | [diff] [blame] | 131 | IPC::ChannelHandle /* desktop_pipe */) |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 132 | |
[email protected] | 0dffd55 | 2012-12-07 01:08:09 | [diff] [blame] | 133 | // Asks the daemon to inject Secure Attention Sequence (SAS) in the session |
| 134 | // where the desktop process is running. |
| 135 | IPC_MESSAGE_CONTROL0(ChromotingDesktopDaemonMsg_InjectSas) |
| 136 | |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 137 | //----------------------------------------------------------------------------- |
| 138 | // Chromoting messages sent from the desktop to the network process. |
| 139 | |
[email protected] | b9ed58f | 2013-05-16 10:45:24 | [diff] [blame] | 140 | // Notifies the network process that a shared buffer has been created. |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 141 | IPC_MESSAGE_CONTROL3(ChromotingDesktopNetworkMsg_CreateSharedBuffer, |
| 142 | int /* id */, |
erikchen | 9e1ffaa | 2015-12-29 23:42:18 | [diff] [blame] | 143 | base::SharedMemoryHandle /* handle */, |
avi | c5960f3 | 2015-12-22 22:49:48 | [diff] [blame] | 144 | uint32_t /* size */) |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 145 | |
| 146 | // Request the network process to stop using a shared buffer. |
| 147 | IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_ReleaseSharedBuffer, |
| 148 | int /* id */) |
| 149 | |
[email protected] | b9ed58f | 2013-05-16 10:45:24 | [diff] [blame] | 150 | // Serialized webrtc::DesktopFrame. |
| 151 | IPC_STRUCT_BEGIN(SerializedDesktopFrame) |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 152 | // ID of the shared memory buffer containing the pixels. |
| 153 | IPC_STRUCT_MEMBER(int, shared_buffer_id) |
| 154 | |
[email protected] | 0d155966 | 2012-11-27 20:23:11 | [diff] [blame] | 155 | // Width of a single row of pixels in bytes. |
| 156 | IPC_STRUCT_MEMBER(int, bytes_per_row) |
| 157 | |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 158 | // Captured region. |
[email protected] | b9ed58f | 2013-05-16 10:45:24 | [diff] [blame] | 159 | IPC_STRUCT_MEMBER(std::vector<webrtc::DesktopRect>, dirty_region) |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 160 | |
[email protected] | 739e280 | 2013-03-18 01:03:48 | [diff] [blame] | 161 | // Dimensions of the buffer in pixels. |
[email protected] | b9ed58f | 2013-05-16 10:45:24 | [diff] [blame] | 162 | IPC_STRUCT_MEMBER(webrtc::DesktopSize, dimensions) |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 163 | |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 164 | // Time spent in capture. Unit is in milliseconds. |
avi | c5960f3 | 2015-12-22 22:49:48 | [diff] [blame] | 165 | IPC_STRUCT_MEMBER(int64_t, capture_time_ms) |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 166 | |
sergeyu | c258bd4b | 2015-01-08 20:57:50 | [diff] [blame] | 167 | // Latest event timestamp supplied by the client for performance tracking. |
avi | c5960f3 | 2015-12-22 22:49:48 | [diff] [blame] | 168 | IPC_STRUCT_MEMBER(int64_t, latest_event_timestamp) |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 169 | |
| 170 | // DPI for this frame. |
[email protected] | b9ed58f | 2013-05-16 10:45:24 | [diff] [blame] | 171 | IPC_STRUCT_MEMBER(webrtc::DesktopVector, dpi) |
zijiehe | a1336afb | 2017-04-28 05:29:28 | [diff] [blame] | 172 | |
| 173 | // Capturer Id |
| 174 | IPC_STRUCT_MEMBER(uint32_t, capturer_id) |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 175 | IPC_STRUCT_END() |
| 176 | |
sergeyu | 546cbaa | 2016-06-17 20:39:32 | [diff] [blame] | 177 | IPC_ENUM_TRAITS_MAX_VALUE(webrtc::DesktopCapturer::Result, |
| 178 | webrtc::DesktopCapturer::Result::MAX_VALUE) |
| 179 | |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 180 | // Notifies the network process that a shared buffer has been created. |
sergeyu | 546cbaa | 2016-06-17 20:39:32 | [diff] [blame] | 181 | IPC_MESSAGE_CONTROL2(ChromotingDesktopNetworkMsg_CaptureResult, |
| 182 | webrtc::DesktopCapturer::Result /* result */, |
| 183 | SerializedDesktopFrame /* frame */) |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 184 | |
[email protected] | 718daba | 2012-11-28 21:00:20 | [diff] [blame] | 185 | // Carries a cursor share update from the desktop session agent to the client. |
[email protected] | 2001320 | 2014-08-08 06:33:50 | [diff] [blame] | 186 | IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_MouseCursor, |
| 187 | webrtc::MouseCursor /* cursor */ ) |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 188 | |
[email protected] | 31014af | 2012-11-30 04:04:57 | [diff] [blame] | 189 | // Carries a clipboard event from the desktop session agent to the client. |
| 190 | // |serialized_event| is a serialized protocol::ClipboardEvent. |
| 191 | IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_InjectClipboardEvent, |
| 192 | std::string /* serialized_event */ ) |
| 193 | |
sergeyu | ec77d854 | 2015-11-03 22:31:00 | [diff] [blame] | 194 | IPC_ENUM_TRAITS_MAX_VALUE(remoting::protocol::ErrorCode, |
| 195 | remoting::protocol::ERROR_CODE_MAX) |
| 196 | |
[email protected] | a031c97 | 2012-12-27 20:10:40 | [diff] [blame] | 197 | // Requests the network process to terminate the client session. |
sergeyu | ec77d854 | 2015-11-03 22:31:00 | [diff] [blame] | 198 | IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_DisconnectSession, |
| 199 | remoting::protocol::ErrorCode /* error */) |
[email protected] | a031c97 | 2012-12-27 20:10:40 | [diff] [blame] | 200 | |
[email protected] | 1c969e3 | 2012-12-27 22:57:49 | [diff] [blame] | 201 | // Carries an audio packet from the desktop session agent to the client. |
| 202 | // |serialized_packet| is a serialized AudioPacket. |
| 203 | IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_AudioPacket, |
| 204 | std::string /* serialized_packet */ ) |
| 205 | |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 206 | //----------------------------------------------------------------------------- |
| 207 | // Chromoting messages sent from the network to the desktop process. |
| 208 | |
[email protected] | a031c97 | 2012-12-27 20:10:40 | [diff] [blame] | 209 | // Passes the client session data to the desktop session agent and starts it. |
| 210 | // This must be the first message received from the host. |
[email protected] | 96361d0 | 2013-05-08 18:26:18 | [diff] [blame] | 211 | IPC_MESSAGE_CONTROL3(ChromotingNetworkDesktopMsg_StartSessionAgent, |
[email protected] | 6f526ce | 2013-03-18 04:38:56 | [diff] [blame] | 212 | std::string /* authenticated_jid */, |
[email protected] | 96361d0 | 2013-05-08 18:26:18 | [diff] [blame] | 213 | remoting::ScreenResolution /* resolution */, |
sergeyu | c986f52 | 2016-11-28 22:51:01 | [diff] [blame] | 214 | remoting::DesktopEnvironmentOptions /* options */) |
[email protected] | a031c97 | 2012-12-27 20:10:40 | [diff] [blame] | 215 | |
[email protected] | ff72dd1 | 2012-11-27 05:18:25 | [diff] [blame] | 216 | IPC_MESSAGE_CONTROL0(ChromotingNetworkDesktopMsg_CaptureFrame) |
[email protected] | 31014af | 2012-11-30 04:04:57 | [diff] [blame] | 217 | |
| 218 | // Carries a clipboard event from the client to the desktop session agent. |
| 219 | // |serialized_event| is a serialized protocol::ClipboardEvent. |
| 220 | IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectClipboardEvent, |
| 221 | std::string /* serialized_event */ ) |
| 222 | |
| 223 | // Carries a keyboard event from the client to the desktop session agent. |
| 224 | // |serialized_event| is a serialized protocol::KeyEvent. |
| 225 | IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectKeyEvent, |
| 226 | std::string /* serialized_event */ ) |
| 227 | |
[email protected] | 529bbd1 | 2014-03-27 20:25:39 | [diff] [blame] | 228 | // Carries a keyboard event from the client to the desktop session agent. |
| 229 | // |serialized_event| is a serialized protocol::TextEvent. |
| 230 | IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectTextEvent, |
| 231 | std::string /* serialized_event */ ) |
| 232 | |
[email protected] | 31014af | 2012-11-30 04:04:57 | [diff] [blame] | 233 | // Carries a mouse event from the client to the desktop session agent. |
| 234 | // |serialized_event| is a serialized protocol::MouseEvent. |
| 235 | IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectMouseEvent, |
| 236 | std::string /* serialized_event */ ) |
[email protected] | 6f526ce | 2013-03-18 04:38:56 | [diff] [blame] | 237 | |
rkuroiwa | d11ebf0 | 2015-03-06 01:31:45 | [diff] [blame] | 238 | // Carries a touch event from the client to the desktop session agent. |
| 239 | // |serialized_event| is a serialized protocol::TouchEvent. |
| 240 | IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectTouchEvent, |
| 241 | std::string /* serialized_event */ ) |
| 242 | |
[email protected] | 6f526ce | 2013-03-18 04:38:56 | [diff] [blame] | 243 | // Changes the screen resolution in the desktop session. |
| 244 | IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_SetScreenResolution, |
| 245 | remoting::ScreenResolution /* resolution */) |
joedow | 99d59d4 | 2016-03-14 20:12:43 | [diff] [blame] | 246 | |
| 247 | //--------------------------------------------------------------------- |
| 248 | // Chromoting messages sent from the remote_security_key process to the |
| 249 | // network process. |
| 250 | |
| 251 | // The array of bytes representing a security key request to be sent to the |
| 252 | // remote client. |
| 253 | IPC_MESSAGE_CONTROL1(ChromotingRemoteSecurityKeyToNetworkMsg_Request, |
| 254 | std::string /* request bytes */) |
| 255 | |
| 256 | //--------------------------------------------------------- |
| 257 | // Chromoting messages sent from the network process to the remote_security_key |
sammc | b90d19c | 2016-11-08 09:44:07 | [diff] [blame] | 258 | // process. |
joedow | 99d59d4 | 2016-03-14 20:12:43 | [diff] [blame] | 259 | |
joedow | afdd0e9 | 2016-12-20 03:01:34 | [diff] [blame] | 260 | // The array of bytes representing the security key response from the client. |
joedow | 99d59d4 | 2016-03-14 20:12:43 | [diff] [blame] | 261 | IPC_MESSAGE_CONTROL1(ChromotingNetworkToRemoteSecurityKeyMsg_Response, |
martijn | a46bd47a | 2016-04-06 18:05:48 | [diff] [blame] | 262 | std::string /* response bytes */) |
joedow | afdd0e9 | 2016-12-20 03:01:34 | [diff] [blame] | 263 | |
| 264 | // Indicates the channel used for security key message passing is ready for use. |
| 265 | IPC_MESSAGE_CONTROL0(ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionReady) |
| 266 | |
| 267 | // Error indicating the request originated from outside the remoted session. |
| 268 | // The IPC channel will be disconnected after this message has been sent. |
| 269 | IPC_MESSAGE_CONTROL0(ChromotingNetworkToRemoteSecurityKeyMsg_InvalidSession) |
zijiehe | 36763d8 | 2017-06-19 23:52:31 | [diff] [blame] | 270 | |
| 271 | // Starts to report process resource usage. |
| 272 | IPC_MESSAGE_CONTROL1(ChromotingNetworkToAnyMsg_StartProcessStatsReport, |
| 273 | base::TimeDelta /* interval */) |
| 274 | |
| 275 | // Stops to report process resource usage. |
| 276 | IPC_MESSAGE_CONTROL0(ChromotingNetworkToAnyMsg_StopProcessStatsReport) |
| 277 | |
| 278 | // Reports process resource usage to network process. |
| 279 | IPC_MESSAGE_CONTROL1(ChromotingAnyToNetworkMsg_ReportProcessStats, |
| 280 | remoting::protocol::AggregatedProcessResourceUsage) |