OLD | NEW |
---|---|
(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_HOST_CURRENT_PROCESS_STATS_AGENT_H_ | |
6 #define REMOTING_HOST_CURRENT_PROCESS_STATS_AGENT_H_ | |
7 | |
8 #include <memory> | |
9 #include <string> | |
10 | |
11 #include "remoting/host/process_stats_agent.h" | |
12 #include "remoting/proto/process_stats.pb.h" | |
13 | |
14 namespace base { | |
15 class ProcessMetrics; | |
16 } // namespace base | |
17 | |
18 namespace remoting { | |
19 | |
20 // A component to report statistic data of current process. | |
21 class CurrentProcessStatsAgent final : public ProcessStatsAgent { | |
22 public: | |
23 explicit CurrentProcessStatsAgent(const std::string& process_name); | |
24 ~CurrentProcessStatsAgent() override; | |
25 | |
26 // ProcessStatsAgent implementation | |
joedow
2017/04/25 15:57:28
nit: add period to the end of comments.
Hzj_jie
2017/04/25 22:19:19
Done.
| |
27 protocol::ProcessResourceUsage GetResourceUsage() override; | |
28 | |
29 private: | |
30 const std::string process_name_; | |
31 const std::unique_ptr<base::ProcessMetrics> metrics_; | |
32 }; | |
33 | |
34 } // namespace remoting | |
35 | |
36 #endif // REMOTING_HOST_CURRENT_PROCESS_STATS_AGENT_H_ | |
OLD | NEW |