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

Unified Diff: remoting/host/process_stats_sender.h

Issue 2950993003: [Chromoting] Use ProcessStatsSender in DaemonProcess (daemon process) (Closed)
Patch Set: Stop process stats when network process crashes Created 3 years, 6 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
Index: remoting/host/process_stats_sender.h
diff --git a/remoting/host/process_stats_sender.h b/remoting/host/process_stats_sender.h
index c33af89c6fdbdf24f6a4f18fb6690d4a70750f88..ed9e48fb5d3fc55c371f21244f1975bbd8e9296f 100644
--- a/remoting/host/process_stats_sender.h
+++ b/remoting/host/process_stats_sender.h
@@ -33,11 +33,15 @@ class ProcessStatsSender final {
std::initializer_list<ProcessStatsAgent*> agents);
~ProcessStatsSender();
+
+ base::TimeDelta interval() const;
+
private:
void ReportUsage();
protocol::ProcessStatsStub* const host_stats_stub_;
std::vector<ProcessStatsAgent*> agents_;
+ const base::TimeDelta interval_;
base::RepeatingTimer timer_;
const base::ThreadChecker thread_checker_;
};

Powered by Google App Engine
This is Rietveld 408576698