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

Unified Diff: remoting/protocol/process_stats_stub.h

Issue 2775983003: [Chromoting] Retrieve process resource usage (ProcessStats) and its tests (Closed)
Patch Set: thread_checker_ should be correctly constructed 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/protocol/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/process_stats_stub.h
diff --git a/remoting/protocol/process_stats_stub.h b/remoting/protocol/process_stats_stub.h
new file mode 100644
index 0000000000000000000000000000000000000000..b59d7c6e4089306e744048ac196832e64eb8a37e
--- /dev/null
+++ b/remoting/protocol/process_stats_stub.h
@@ -0,0 +1,26 @@
+// 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_PROTOCOL_PROCESS_STATS_STUB_H_
+#define REMOTING_PROTOCOL_PROCESS_STATS_STUB_H_
+
+#include "remoting/proto/process_stats.pb.h"
+
+namespace remoting {
+namespace protocol {
+
+// An interface to receive process statistic data.
+class ProcessStatsStub {
+ public:
+ ProcessStatsStub() = default;
+ virtual ~ProcessStatsStub() = default;
+
+ virtual void OnProcessStats(
+ const protocol::AggregatedProcessResourceUsage& usage) = 0;
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_PROCESS_STATS_STUB_H_
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698