Chromium Code Reviews| Index: remoting/host/chromoting_messages.h |
| diff --git a/remoting/host/chromoting_messages.h b/remoting/host/chromoting_messages.h |
| index 51a9d7056e4a1284dd77de2cb9d8c83891007f28..5bc7c44c08ab1eef5678d75bc7dd49260fcc9325 100644 |
| --- a/remoting/host/chromoting_messages.h |
| +++ b/remoting/host/chromoting_messages.h |
| @@ -13,6 +13,7 @@ |
| #include "remoting/host/chromoting_param_traits.h" |
| #include "remoting/host/desktop_environment_options.h" |
| #include "remoting/host/screen_resolution.h" |
| +#include "remoting/proto/process_stats.pb.h" |
| #include "remoting/protocol/errors.h" |
| #include "remoting/protocol/transport.h" |
| #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
| @@ -265,3 +266,14 @@ IPC_MESSAGE_CONTROL0(ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionReady) |
| // Error indicating the request originated from outside the remoted session. |
| // The IPC channel will be disconnected after this message has been sent. |
| IPC_MESSAGE_CONTROL0(ChromotingNetworkToRemoteSecurityKeyMsg_InvalidSession) |
| + |
| +// Starts to report process resource usage. |
| +IPC_MESSAGE_CONTROL1(ChromotingNetworkToAnyMsg_StartProcessStatsReport, |
| + 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
|
| + |
| +// Stops to report process resource usage. |
| +IPC_MESSAGE_CONTROL0(ChromotingNetworkToAnyMsg_StopProcessStatsReport) |
| + |
| +// Reports process resource usage to network process. |
| +IPC_MESSAGE_CONTROL1(ChromotingAnyToNetworkMsg_ReportProcessStats, |
| + remoting::protocol::AggregatedProcessResourceUsage) |