Index: content/public/browser/memory_pressure.cc |
diff --git a/content/public/browser/memory_pressure.cc b/content/public/browser/memory_pressure.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0fab696a753d87221b5a35f8a3b657b21139f0d3 |
--- /dev/null |
+++ b/content/public/browser/memory_pressure.cc |
@@ -0,0 +1,25 @@ |
+// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
petrcermak
2016/01/28 09:55:05
nit: Drop "(c)" (https://www.chromium.org/develope
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/public/browser/memory_pressure.h" |
+ |
+#include "content/browser/memory/memory_pressure_controller.h" |
+ |
+namespace content { |
+ |
+void SendPressureNotification( |
+ const BrowserChildProcessHost* child_process_host, |
+ base::MemoryPressureListener::MemoryPressureLevel level) { |
+ MemoryPressureController::GetInstance()->SendPressureNotification( |
+ child_process_host, level); |
+} |
+ |
+void SendPressureNotification( |
+ const RenderProcessHost* render_process_host, |
+ base::MemoryPressureListener::MemoryPressureLevel level) { |
+ MemoryPressureController::GetInstance()->SendPressureNotification( |
+ render_process_host, level); |
+} |
+ |
+} // namespace content |