Index: content/browser/memory/memory_coordinator.h |
diff --git a/content/browser/memory/memory_coordinator.h b/content/browser/memory/memory_coordinator.h |
index 682f1ba628142c1a9a001c14a97179a1c8b5c3a9..9e0328cb5fba1707452e6cde2a2b555984b94463 100644 |
--- a/content/browser/memory/memory_coordinator.h |
+++ b/content/browser/memory/memory_coordinator.h |
@@ -6,6 +6,7 @@ |
#define CONTENT_BROWSER_MEMORY_MEMORY_COORDINATOR_H_ |
#include "base/memory/memory_coordinator_client_registry.h" |
+#include "base/memory/memory_pressure_monitor.h" |
#include "base/process/process_handle.h" |
#include "content/common/content_export.h" |
#include "content/common/memory_coordinator.mojom.h" |
@@ -45,12 +46,17 @@ class CONTENT_EXPORT MemoryCoordinator { |
// Dispatches a memory state change to the provided process. Returns true if |
// the process is tracked by this coordinator and successfully dispatches, |
// returns false otherwise. |
- bool SetMemoryState( |
+ bool SetChildMemoryState( |
int render_process_id, mojom::MemoryState memory_state); |
// Returns the memory state of the specified render process. Returns UNKNOWN |
// if the process is not tracked by this coordinator. |
- mojom::MemoryState GetMemoryState(int render_process_id) const; |
+ mojom::MemoryState GetChildMemoryState(int render_process_id) const; |
+ |
+ // Records memory pressure notifications. Called by MemoryPressureMonitor. |
+ // TODO(bashi): Remove this when MemoryPressureMonitor is retired. |
+ void RecordMemoryPressure( |
+ base::MemoryPressureMonitor::MemoryPressureLevel level); |
// Called when ChildMemoryCoordinator calls AddChild(). |
virtual void OnChildAdded(int render_process_id) {} |