| 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_
|
|
|