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

Side by Side Diff: remoting/host/current_process_stats_agent.h

Issue 2775983003: [Chromoting] Retrieve process resource usage (ProcessStats) and its tests (Closed)
Patch Set: Resolve review comments Created 3 years, 8 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698