Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1153)

Unified Diff: remoting/host/client_session.h

Issue 2858813002: [Chromoting] Use ProcessStatsSender in host process
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/base/constants.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.h
diff --git a/remoting/host/client_session.h b/remoting/host/client_session.h
index 55e06d1f7f4afc00de76e1480228f27c89ae15c5..3c5aafda151ea77a4507917dde567bd34707ac43 100644
--- a/remoting/host/client_session.h
+++ b/remoting/host/client_session.h
@@ -18,6 +18,7 @@
#include "base/timer/timer.h"
#include "remoting/host/client_session_control.h"
#include "remoting/host/client_session_details.h"
+#include "remoting/host/current_process_stats_agent.h"
#include "remoting/host/desktop_environment_options.h"
#include "remoting/host/host_experiment_session_plugin.h"
#include "remoting/host/host_extension_session_manager.h"
@@ -42,6 +43,7 @@ class DesktopEnvironment;
class DesktopEnvironmentFactory;
class InputInjector;
class MouseShapePump;
+class ProcessStatsSender;
class ScreenControls;
namespace protocol {
@@ -248,6 +250,12 @@ class ClientSession : public base::NonThreadSafe,
HostExperimentSessionPlugin host_experiment_session_plugin_;
+ // Reports resource usage through ConnectionToClient.
+ std::unique_ptr<ProcessStatsSender> stats_sender_;
+
+ // Retrieves resource usage of current process.
+ CurrentProcessStatsAgent current_process_stats_agent_;
+
// Used to disable callbacks to |this| once DisconnectSession() has been
// called.
base::WeakPtrFactory<ClientSessionControl> weak_factory_;
« no previous file with comments | « remoting/base/constants.cc ('k') | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698