OLD | NEW |
---|---|
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_channel_handle.h" |
12 #include "ipc/ipc_platform_file.h" | 12 #include "ipc/ipc_platform_file.h" |
13 #include "remoting/host/chromoting_param_traits.h" | 13 #include "remoting/host/chromoting_param_traits.h" |
14 #include "remoting/host/desktop_environment_options.h" | 14 #include "remoting/host/desktop_environment_options.h" |
15 #include "remoting/host/screen_resolution.h" | 15 #include "remoting/host/screen_resolution.h" |
16 #include "remoting/proto/process_stats.pb.h" | |
16 #include "remoting/protocol/errors.h" | 17 #include "remoting/protocol/errors.h" |
17 #include "remoting/protocol/transport.h" | 18 #include "remoting/protocol/transport.h" |
18 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" | 19 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
19 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 20 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
20 | 21 |
21 #endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_ | 22 #endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_ |
22 | 23 |
23 // Multiply-included message file, no traditional include guard. | 24 // Multiply-included message file, no traditional include guard. |
24 #include "ipc/ipc_message_macros.h" | 25 #include "ipc/ipc_message_macros.h" |
25 | 26 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
258 // The array of bytes representing the security key response from the client. | 259 // The array of bytes representing the security key response from the client. |
259 IPC_MESSAGE_CONTROL1(ChromotingNetworkToRemoteSecurityKeyMsg_Response, | 260 IPC_MESSAGE_CONTROL1(ChromotingNetworkToRemoteSecurityKeyMsg_Response, |
260 std::string /* response bytes */) | 261 std::string /* response bytes */) |
261 | 262 |
262 // Indicates the channel used for security key message passing is ready for use. | 263 // Indicates the channel used for security key message passing is ready for use. |
263 IPC_MESSAGE_CONTROL0(ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionReady) | 264 IPC_MESSAGE_CONTROL0(ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionReady) |
264 | 265 |
265 // Error indicating the request originated from outside the remoted session. | 266 // Error indicating the request originated from outside the remoted session. |
266 // The IPC channel will be disconnected after this message has been sent. | 267 // The IPC channel will be disconnected after this message has been sent. |
267 IPC_MESSAGE_CONTROL0(ChromotingNetworkToRemoteSecurityKeyMsg_InvalidSession) | 268 IPC_MESSAGE_CONTROL0(ChromotingNetworkToRemoteSecurityKeyMsg_InvalidSession) |
269 | |
270 // Starts to report process resource usage. | |
joedow
2017/06/13 20:12:11
Do you need a message to stop sending process stat
Hzj_jie
2017/06/14 23:12:23
Done.
| |
271 IPC_MESSAGE_CONTROL1(ChromotingNetworkMsg_StartProcessStatsReport, | |
joedow
2017/06/13 20:12:12
Other messages use a ProductNameSendNameReceiverNa
Hzj_jie
2017/06/14 23:12:23
I have not seen an "Any" in this file. Yes, this m
| |
272 int32_t /* interval_ms */) | |
joedow
2017/06/13 20:12:12
Can the interval be compiled into the sender (so t
Hzj_jie
2017/06/14 23:12:23
It benefits the tests. But it's also reasonable to
joedow
2017/06/15 22:50:44
I'm not sure that we will need to change it but I
Hzj_jie
2017/06/16 00:39:28
If you do not have a strong opinion, I would keep
| |
273 | |
274 // Reports process resource usage to network process. | |
275 IPC_MESSAGE_CONTROL1(ChromotingNetworkMsg_ReportProcessStats, | |
276 remoting::protocol::AggregatedProcessResourceUsage) | |
OLD | NEW |