| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_LOW_MEMORY_KILLER_MONITOR_H_ | 5 #ifndef COMPONENTS_ARC_METRICS_ARC_LOW_MEMORY_KILLER_MONITOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_LOW_MEMORY_KILLER_MONITOR_H_ | 6 #define COMPONENTS_ARC_METRICS_ARC_LOW_MEMORY_KILLER_MONITOR_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
| 11 | 11 |
| 12 namespace arc { | 12 namespace arc { |
| 13 | 13 |
| 14 // Trace lowmemorykiller events and report to UMA. | 14 // Trace lowmemorykiller events and report to UMA. |
| 15 // | 15 // |
| 16 // If kernel lowmemorykiller is enabled, it would kill processes automatically | 16 // If kernel lowmemorykiller is enabled, it would kill processes automatically |
| (...skipping 17 matching lines...) Expand all Loading... |
| 34 // shutdown process while this thread returns from a blocking read. | 34 // shutdown process while this thread returns from a blocking read. |
| 35 static void Run(scoped_refptr<base::SequencedWorkerPool> worker_pool); | 35 static void Run(scoped_refptr<base::SequencedWorkerPool> worker_pool); |
| 36 | 36 |
| 37 scoped_refptr<base::SequencedWorkerPool> worker_pool_; | 37 scoped_refptr<base::SequencedWorkerPool> worker_pool_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(ArcLowMemoryKillerMonitor); | 39 DISALLOW_COPY_AND_ASSIGN(ArcLowMemoryKillerMonitor); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace arc | 42 } // namespace arc |
| 43 | 43 |
| 44 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_LOW_MEMORY_KILLER_MONITOR_H_" | 44 #endif // COMPONENTS_ARC_METRICS_ARC_LOW_MEMORY_KILLER_MONITOR_H_ |
| OLD | NEW |