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

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

Issue 2856243002: [Chromoting] Add ProcessStatsDispatcher to send process stats to the client
Patch Set: Change ProcessStatsDispatcher into ProcessStatsAgent and send the message through ClientStub 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 2017 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_ADAPTER_H_
6 #define REMOTING_PROTOCOL_PROCESS_STATS_ADAPTER_H_
7
8 #include "remoting/protocol/process_stats_stub.h"
9
10 namespace remoting {
11 namespace protocol {
12
13 class AggregatedProcessResourceUsage;
14 class ClientStub;
15
16 // ProcessStatsAdapter implements ProcessStatsStub and sends data through
17 // ClientStub.
18 class ProcessStatsAdapter : public ProcessStatsStub {
19 public:
20 // Users should ensure |client_stub| outlives this instance.
21 explicit ProcessStatsAdapter(ClientStub* client_stub);
22 ~ProcessStatsAdapter() override;
23
24 // ProcessStatsStub implementation.
25 void OnProcessStats(const AggregatedProcessResourceUsage& usage) override;
26 private:
Sergey Ulanov 2017/05/26 19:27:30 nit: add empty line here
Hzj_jie 2017/05/26 20:42:16 Done.
27 ClientStub* const client_stub_;
28 };
29
30 } // namespace protocol
31 } // namespace remoting
32
33 #endif // REMOTING_PROTOCOL_PROCESS_STATS_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698