| Index: components/memory_coordinator/browser/memory_coordinator.h
|
| diff --git a/components/memory_coordinator/browser/memory_coordinator.h b/components/memory_coordinator/browser/memory_coordinator.h
|
| index 51dcb5df58a42d546d5806dd855262921e7eb76a..598132d9256d4d3b17543c136c08ac22303a7193 100644
|
| --- a/components/memory_coordinator/browser/memory_coordinator.h
|
| +++ b/components/memory_coordinator/browser/memory_coordinator.h
|
| @@ -5,7 +5,7 @@
|
| #ifndef COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_COORDINATOR_H_
|
| #define COMPONENTS_MEMORY_COORDINATOR_BROWSER_MEMORY_COORDINATOR_H_
|
|
|
| -#include "base/memory/memory_pressure_monitor.h"
|
| +#include "base/memory/memory_pressure_listener.h"
|
| #include "components/memory_coordinator/common/client_registry.h"
|
| #include "components/memory_coordinator/public/interfaces/memory_coordinator.mojom.h"
|
| #include "mojo/public/cpp/bindings/binding.h"
|
| @@ -31,17 +31,17 @@ class MemoryCoordinator : public ClientRegistry {
|
| private:
|
| void OnConnectionError(int render_process_id);
|
|
|
| - // Called when MemoryPressureMonitor detects memory pressure.
|
| - void OnMemoryPressure(base::MemoryPressureMonitor::MemoryPressureLevel level);
|
| -
|
| - // A callback invoked when MemoryPressureMonitor detects memory pressure.
|
| - base::MemoryPressureMonitor::DispatchCallback pressure_level_dispatcher_;
|
| + // Called when MemoryPressureListener detects memory pressure.
|
| + void OnMemoryPressure(
|
| + base::MemoryPressureListener::MemoryPressureLevel level);
|
|
|
| // Mappings of RenderProcessHost::GetID() -> MemoryCoordinatorHandleImpl.
|
| // A mapping is added when a renderer connects to MemoryCoordinator and
|
| // removed automatically when a underlying binding is disconnected.
|
| std::map<int, std::unique_ptr<MemoryCoordinatorHandleImpl>> children_;
|
|
|
| + base::MemoryPressureListener pressure_listener_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(MemoryCoordinator);
|
| };
|
|
|
|
|