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. | |
271 IPC_MESSAGE_CONTROL1(ChromotingNetworkToAnyMsg_StartProcessStatsReport, | |
272 int32_t /* interval_ms */) | |
dcheng
2017/06/19 06:22:58
And just pass a TimeDelta here as well.
Hzj_jie
2017/06/19 18:46:43
I haven't realized we have the convenience to pass
| |
273 | |
274 // Stops to report process resource usage. | |
275 IPC_MESSAGE_CONTROL0(ChromotingNetworkToAnyMsg_StopProcessStatsReport) | |
276 | |
277 // Reports process resource usage to network process. | |
278 IPC_MESSAGE_CONTROL1(ChromotingAnyToNetworkMsg_ReportProcessStats, | |
279 remoting::protocol::AggregatedProcessResourceUsage) | |
OLD | NEW |