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

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

Issue 2856243002: [Chromoting] Add ProcessStatsDispatcher to send process stats to the client
Patch Set: Partially resolve the review comments 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
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | remoting/protocol/process_stats_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
27 private:
28 ClientStub* const client_stub_;
29 };
30
31 } // namespace protocol
32 } // namespace remoting
33
34 #endif // REMOTING_PROTOCOL_PROCESS_STATS_ADAPTER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/BUILD.gn ('k') | remoting/protocol/process_stats_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698