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

Unified Diff: remoting/host/host_stats_stub.h

Issue 2775983003: [Chromoting] Retrieve process resource usage (ProcessStats) and its tests (Closed)
Patch Set: Created 3 years, 9 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/host_stats_stub.h
diff --git a/remoting/host/host_stats_stub.h b/remoting/host/host_stats_stub.h
new file mode 100644
index 0000000000000000000000000000000000000000..ccb043dd4bea651a2eb33f1a441afb7a770e5b12
--- /dev/null
+++ b/remoting/host/host_stats_stub.h
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_HOST_STATS_STUB_H_
+#define REMOTING_HOST_HOST_STATS_STUB_H_
+
+#include "remoting/base/process_resource_usage.h"
+
+namespace remoting {
+namespace host {
+
+// An interface to receive host process statistic data from HostStats.
+class HostStatsStub {
+ public:
+ HostStatsStub() = default;
+ ~HostStatsStub() = default;
Sergey Ulanov 2017/03/27 19:43:20 destructor must be virtual in interfaces
Hzj_jie 2017/03/30 01:09:46 Done.
+
+ virtual void OnHostStats(const ProcessResourceUsage& usage) = 0;
+};
+
+} // namespace host
+} // namespace remoting
+
+#endif // REMOTING_HOST_HOST_STATS_STUB_H_

Powered by Google App Engine
This is Rietveld 408576698