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

Unified Diff: remoting/protocol/process_stats_dispatcher.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/protocol/ice_connection_to_client.cc ('k') | remoting/protocol/process_stats_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/process_stats_dispatcher.h
diff --git a/remoting/protocol/process_stats_dispatcher.h b/remoting/protocol/process_stats_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..c07bde49bcd9b4ac22701fb77623cdc5e4eeb565
--- /dev/null
+++ b/remoting/protocol/process_stats_dispatcher.h
@@ -0,0 +1,41 @@
+// Copyright 2016 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_DISPATCHER_H_
+#define REMOTING_PROTOCOL_PROCESS_STATS_DISPATCHER_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "remoting/protocol/channel_dispatcher_base.h"
+#include "remoting/protocol/process_stats_stub.h"
+
+namespace remoting {
+
+class CompoundBuffer;
+
+namespace protocol {
+
+class AggregatedProcessResourceUsage;
+
+class ProcessStatsDispatcher : public ChannelDispatcherBase,
+ public ProcessStatsStub {
+ public:
+ ProcessStatsDispatcher();
+ ~ProcessStatsDispatcher() override;
+
+ private:
+ // ProcessStatsStub implementation.
+ void OnProcessStats(const AggregatedProcessResourceUsage& usage) override;
+
+ // ChannelDispatcherBase implementation.
+ void OnIncomingMessage(std::unique_ptr<CompoundBuffer> message) override;
+
+ DISALLOW_COPY_AND_ASSIGN(ProcessStatsDispatcher);
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_PROCESS_STATS_DISPATCHER_H_
« no previous file with comments | « remoting/protocol/ice_connection_to_client.cc ('k') | remoting/protocol/process_stats_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698