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

Unified Diff: content/browser/memory/memory_condition_observer.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
Index: content/browser/memory/memory_condition_observer.h
diff --git a/content/browser/memory/memory_condition_observer.h b/content/browser/memory/memory_condition_observer.h
index 8fae355c3b55a6dc2cb8d51d1f3deadbdc9c8cef..ab7954da3ad94098d15cc7c6de48caba879dc234 100644
--- a/content/browser/memory/memory_condition_observer.h
+++ b/content/browser/memory/memory_condition_observer.h
@@ -11,6 +11,10 @@
#include "content/browser/memory/memory_coordinator_impl.h"
#include "content/common/content_export.h"
+#if defined(OS_CHROMEOS)
+#include "base/memory/low_memory_observer_chromeos.h"
+#endif
+
namespace content {
// MemoryConditionObserver is an internal implementation of MemoryCoordinator
@@ -60,6 +64,10 @@ class CONTENT_EXPORT MemoryConditionObserver {
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
base::CancelableClosure update_condition_closure_;
+#if defined(OS_CHROMEOS)
+ std::unique_ptr<base::chromeos::LowMemoryObserver> low_memory_observer_;
+#endif
+
// Sets up parameters for the heuristic.
void InitializeParameters();
« no previous file with comments | « base/memory/memory_pressure_monitor_chromeos.cc ('k') | content/browser/memory/memory_condition_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698