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

Unified Diff: base/memory/memory_pressure_monitor_chromeos.h

Issue 2783613002: WIP: memory coordinator: Check /dev/chromeos-low-mem to determine memory condition
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/memory/low_memory_observer_chromeos.cc ('k') | base/memory/memory_pressure_monitor_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/memory_pressure_monitor_chromeos.h
diff --git a/base/memory/memory_pressure_monitor_chromeos.h b/base/memory/memory_pressure_monitor_chromeos.h
index 563ba85081f94664fa6d1322387a0fdf632f62d4..920e522eb0e626bf65105071ae125e303f098084 100644
--- a/base/memory/memory_pressure_monitor_chromeos.h
+++ b/base/memory/memory_pressure_monitor_chromeos.h
@@ -6,8 +6,8 @@
#define BASE_MEMORY_MEMORY_PRESSURE_MONITOR_CHROMEOS_H_
#include "base/base_export.h"
-#include "base/files/scoped_file.h"
#include "base/macros.h"
+#include "base/memory/low_memory_observer_chromeos.h"
#include "base/memory/memory_pressure_listener.h"
#include "base/memory/memory_pressure_monitor.h"
#include "base/memory/weak_ptr.h"
@@ -112,8 +112,8 @@ class BASE_EXPORT MemoryPressureMonitor : public base::MemoryPressureMonitor {
const int moderate_pressure_threshold_percent_;
const int critical_pressure_threshold_percent_;
- // File descriptor used to detect low memory condition.
- ScopedFD low_mem_file_;
+ // To detect low memory condition.
+ std::unique_ptr<LowMemoryObserver> low_mem_observer_;
DispatchCallback dispatch_callback_;
« no previous file with comments | « base/memory/low_memory_observer_chromeos.cc ('k') | base/memory/memory_pressure_monitor_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698