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

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: Address nasko's comments 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..bc1e665c2dabe91272806a08985280ae020eb163 100644
--- a/content/child/memory/child_memory_message_filter.h
+++ b/content/child/memory/child_memory_message_filter.h
@@ -5,6 +5,7 @@
#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 {
@@ -23,6 +24,8 @@ class ChildMemoryMessageFilter : public IPC::MessageFilter {
private:
void OnSetPressureNotificationsSuppressed(bool suppressed);
+ void OnSimulatePressureNotification(
+ base::MemoryPressureListener::MemoryPressureLevel level);
DISALLOW_COPY_AND_ASSIGN(ChildMemoryMessageFilter);
};
« no previous file with comments | « content/browser/memory/memory_pressure_controller_browsertest.cc ('k') | content/child/memory/child_memory_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698