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

Unified Diff: content/public/browser/memory_pressure.cc

Issue 1640423002: Make memory pressure IPC accessible from content/public. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/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
« content/public/browser/memory_pressure.h ('K') | « content/public/browser/memory_pressure.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698