OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 #include "components/memory_coordinator/browser/memory_monitor.h" | 5 #include "content/browser/memory/memory_monitor.h" |
6 | 6 |
7 #include "base/process/process_metrics.h" | 7 #include "base/process/process_metrics.h" |
8 | 8 |
9 namespace memory_coordinator { | 9 namespace content { |
| 10 |
| 11 // static |
| 12 MemoryMonitorDelegate* MemoryMonitorDelegate::GetInstance() { |
| 13 return base::Singleton< |
| 14 MemoryMonitorDelegate, |
| 15 base::LeakySingletonTraits<MemoryMonitorDelegate>>::get(); |
| 16 } |
10 | 17 |
11 MemoryMonitorDelegate::~MemoryMonitorDelegate() {} | 18 MemoryMonitorDelegate::~MemoryMonitorDelegate() {} |
12 | 19 |
13 void MemoryMonitorDelegate::GetSystemMemoryInfo( | 20 void MemoryMonitorDelegate::GetSystemMemoryInfo( |
14 base::SystemMemoryInfoKB* mem_info) { | 21 base::SystemMemoryInfoKB* mem_info) { |
15 base::GetSystemMemoryInfo(mem_info); | 22 base::GetSystemMemoryInfo(mem_info); |
16 } | 23 } |
17 | 24 |
18 } // namespace memory_coordinator | 25 } // namespace content |
OLD | NEW |