Index: content/renderer/render_thread_impl.h |
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h |
index a5eba9781cef3a369d13b00a2e65ff944d42bdeb..2628ca6e1668627d16d2408500d2c81647c260f4 100644 |
--- a/content/renderer/render_thread_impl.h |
+++ b/content/renderer/render_thread_impl.h |
@@ -14,6 +14,7 @@ |
#include "base/cancelable_callback.h" |
#include "base/macros.h" |
+#include "base/memory/memory_coordinator_client.h" |
#include "base/memory/memory_pressure_listener.h" |
#include "base/memory/ref_counted.h" |
#include "base/metrics/user_metrics_action.h" |
@@ -155,6 +156,7 @@ class CONTENT_EXPORT RenderThreadImpl |
public gpu::GpuChannelHostFactory, |
public blink::scheduler::RendererScheduler::RAILModeObserver, |
public ChildMemoryCoordinatorDelegate, |
+ public base::MemoryCoordinatorClient, |
NON_EXPORTED_BASE(public mojom::Renderer), |
// TODO(blundell): Separate this impl out into Blink. |
NON_EXPORTED_BASE(public device::mojom::TimeZoneMonitorClient), |
@@ -494,6 +496,11 @@ class CONTENT_EXPORT RenderThreadImpl |
std::unique_ptr<base::SharedMemory> AllocateSharedMemory( |
size_t size) override; |
+ // base::MemoryCoordinatorClient implementation: |
+ void OnMemoryStateChange(base::MemoryState state) override; |
+ |
+ void ClearMemory(); |
+ |
void Init(scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); |
void InitializeCompositorThread(); |