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

Side by Side Diff: remoting/host/forward_process_stats_agent.cc

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 #include "remoting/host/forward_process_stats_agent.h"
6
7 namespace remoting {
8 namespace host {
9
10 ForwardProcessStatsAgent::ForwardProcessStatsAgent() = default;
11 ForwardProcessStatsAgent::~ForwardProcessStatsAgent() = default;
12
13 protocol::ProcessResourceUsage ForwardProcessStatsAgent::GetResourceUsage() {
14 base::AutoLock lock(lock_);
15 return usage_;
16 }
17
18 void ForwardProcessStatsAgent::OnProcessStats(
19 const protocol::ProcessResourceUsage& usage) {
20 base::AutoLock lock(lock_);
21 usage_ = usage;
22 }
23
24 } // namespace host
25 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698