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

Unified Diff: content/browser/memory/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/browser/memory/memory_message_filter.h
diff --git a/content/browser/memory/memory_message_filter.h b/content/browser/memory/memory_message_filter.h
index 122a7aa9cec2035bb92978ddaea51c6a2d3c38ba..5610867c7ebbe3f3fad546ab9626a827f09224c2 100644
--- a/content/browser/memory/memory_message_filter.h
+++ b/content/browser/memory/memory_message_filter.h
@@ -5,11 +5,14 @@
#ifndef CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_
#define CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_
+#include "base/memory/memory_pressure_listener.h"
#include "content/common/content_export.h"
#include "content/public/browser/browser_message_filter.h"
namespace content {
+using MemoryPressureLevel = base::MemoryPressureListener::MemoryPressureLevel;
+
Primiano Tucci (use gerrit) 2015/09/28 12:47:31 are you doing this just to avoid wrapping the line
petrcermak 2015/09/28 15:39:32 Done.
// This class sends memory messages from the browser process.
// See also: child_memory_message_filter.h
class CONTENT_EXPORT MemoryMessageFilter : public BrowserMessageFilter {
@@ -22,6 +25,7 @@ class CONTENT_EXPORT MemoryMessageFilter : public BrowserMessageFilter {
bool OnMessageReceived(const IPC::Message& message) override;
void SendSetPressureNotificationsSuppressed(bool suppressed);
+ void SendSimulatePressureNotification(MemoryPressureLevel level);
protected:
~MemoryMessageFilter() override;
« no previous file with comments | « no previous file | content/browser/memory/memory_message_filter.cc » ('j') | content/browser/memory/memory_pressure_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698