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

Side by Side Diff: remoting/protocol/process_stats_stub.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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_PROCESS_STATS_STUB_H_ 5 #ifndef REMOTING_PROTOCOL_PROCESS_STATS_STUB_H_
6 #define REMOTING_PROTOCOL_PROCESS_STATS_STUB_H_ 6 #define REMOTING_PROTOCOL_PROCESS_STATS_STUB_H_
7 7
8 #include "remoting/proto/process_stats.pb.h" 8 #include "remoting/proto/process_stats.pb.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 namespace protocol { 11 namespace protocol {
12 12
13 // An interface to receive process statistic data. 13 // An interface to receive process statistic data.
14 class ProcessStatsStub { 14 class ProcessStatsStub {
15 public: 15 public:
16 ProcessStatsStub() = default; 16 ProcessStatsStub() = default;
17 virtual ~ProcessStatsStub() = default; 17 virtual ~ProcessStatsStub() = default;
18 18
19 virtual void OnProcessStats( 19 virtual void OnProcessStats(const AggregatedProcessResourceUsage& usage) = 0;
20 const protocol::AggregatedProcessResourceUsage& usage) = 0;
21 }; 20 };
22 21
23 } // namespace protocol 22 } // namespace protocol
24 } // namespace remoting 23 } // namespace remoting
25 24
26 #endif // REMOTING_PROTOCOL_PROCESS_STATS_STUB_H_ 25 #endif // REMOTING_PROTOCOL_PROCESS_STATS_STUB_H_
OLDNEW
« no previous file with comments | « remoting/protocol/process_stats_dispatcher.cc ('k') | remoting/protocol/webrtc_connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698