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

Side by Side Diff: remoting/protocol/process_stats_dispatcher.h

Issue 2858813002: [Chromoting] Use ProcessStatsSender in host process
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW
« 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