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