OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_PROTOCOL_PROCESS_STATS_DISPATCHER_H_ |
| 6 #define REMOTING_PROTOCOL_PROCESS_STATS_DISPATCHER_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "remoting/protocol/channel_dispatcher_base.h" |
| 12 #include "remoting/protocol/process_stats_stub.h" |
| 13 |
| 14 namespace remoting { |
| 15 |
| 16 class CompoundBuffer; |
| 17 |
| 18 namespace protocol { |
| 19 |
| 20 class AggregatedProcessResourceUsage; |
| 21 |
| 22 class ProcessStatsDispatcher : public ChannelDispatcherBase, |
| 23 public ProcessStatsStub { |
| 24 public: |
| 25 ProcessStatsDispatcher(); |
| 26 ~ProcessStatsDispatcher() override; |
| 27 |
| 28 private: |
| 29 // ProcessStatsStub implementation. |
| 30 void OnProcessStats(const AggregatedProcessResourceUsage& usage) override; |
| 31 |
| 32 // ChannelDispatcherBase implementation. |
| 33 void OnIncomingMessage(std::unique_ptr<CompoundBuffer> message) override; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(ProcessStatsDispatcher); |
| 36 }; |
| 37 |
| 38 } // namespace protocol |
| 39 } // namespace remoting |
| 40 |
| 41 #endif // REMOTING_PROTOCOL_PROCESS_STATS_DISPATCHER_H_ |
OLD | NEW |