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

Unified Diff: content/child/memory/child_memory_message_filter.h

Issue 1362233003: Add architecture for simulating memory pressure notifications in all processes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/child/memory/child_memory_message_filter.h
diff --git a/content/child/memory/child_memory_message_filter.h b/content/child/memory/child_memory_message_filter.h
index 32e2a2a1ea0ae16240b086711ae6c75c24ee9723..958a9b887b6da7f5c071a79e7bd3f46ae2431c97 100644
--- a/content/child/memory/child_memory_message_filter.h
+++ b/content/child/memory/child_memory_message_filter.h
@@ -5,10 +5,13 @@
#ifndef CONTENT_CHILD_MEMORY_CHILD_MEMORY_MESSAGE_FILTER_H_
#define CONTENT_CHILD_MEMORY_CHILD_MEMORY_MESSAGE_FILTER_H_
+#include "base/memory/memory_pressure_listener.h"
#include "ipc/message_filter.h"
namespace content {
+using MemoryPressureLevel = base::MemoryPressureListener::MemoryPressureLevel;
Primiano Tucci (use gerrit) 2015/09/28 12:47:32 ditto
petrcermak 2015/09/28 15:39:33 Done.
+
// This class receives memory messages in child processes.
// See also: memory_message_filter.h
class ChildMemoryMessageFilter : public IPC::MessageFilter {
@@ -23,6 +26,7 @@ class ChildMemoryMessageFilter : public IPC::MessageFilter {
private:
void OnSetPressureNotificationsSuppressed(bool suppressed);
+ void OnSimulatePressureNotification(MemoryPressureLevel level);
DISALLOW_COPY_AND_ASSIGN(ChildMemoryMessageFilter);
};

Powered by Google App Engine
This is Rietveld 408576698