|
[Chromoting] Use ProcessStatsSender in host process
This is part of the change in host side to send process resourece usage
information to the client. It contains,
1. Start a new channel (proc_stats) to dedicate sending process resource usage.
The change is mainly in ProcessStatsDispatcher class.
2. ConnectionToClient::stats_stub().
Returns a ProcessStatsStub to deliver the information.
WebRtcConnectionToClient uses ProcessStatsDispatcher, other implementations
returns nullptr or FakeProcessStatsDispatcher.
3. ClientSession starts ProcessStatsSender in OnConnectionAuthenticated() and
stops it in OnConnectionClosed().
A coming change will forward the process usage from Desktop Process to Network
Process.
BUG= 650926
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+348 lines, -60 lines) |
Patch |
|
M |
remoting/base/constants.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
remoting/base/constants.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
remoting/host/client_session.h
|
View
|
|
3 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/host/client_session.cc
|
View
|
|
6 chunks |
+31 lines, -2 lines |
0 comments
|
Download
|
|
M |
remoting/host/client_session_unittest.cc
|
View
|
|
3 chunks |
+31 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/host/desktop_environment_options.cc
|
View
|
|
1 chunk |
+6 lines, -8 lines |
0 comments
|
Download
|
|
M |
remoting/host/host_session_options.h
|
View
|
|
1 chunk |
+10 lines, -1 line |
0 comments
|
Download
|
|
M |
remoting/host/host_session_options.cc
|
View
|
|
2 chunks |
+20 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/host/host_session_options_unittest.cc
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/host/process_stats_sender.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
remoting/host/process_stats_sender.cc
|
View
|
|
1 chunk |
+17 lines, -2 lines |
0 comments
|
Download
|
|
M |
remoting/host/process_stats_sender_unittest.cc
|
View
|
|
6 chunks |
+16 lines, -44 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/BUILD.gn
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/connection_to_client.h
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/fake_connection_to_client.h
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/fake_connection_to_client.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
A |
remoting/protocol/fake_process_stats_stub.h
|
View
|
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
|
A |
remoting/protocol/fake_process_stats_stub.cc
|
View
|
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/ice_connection_to_client.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/ice_connection_to_client.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
A |
remoting/protocol/process_stats_dispatcher.h
|
View
|
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
|
A |
remoting/protocol/process_stats_dispatcher.cc
|
View
|
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/process_stats_stub.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/webrtc_connection_to_client.h
|
View
|
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/webrtc_connection_to_client.cc
|
View
|
|
4 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
Total messages: 10 (10 generated)
|