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

Unified Diff: content/browser/memory/memory_message_filter.h

Issue 1332583002: Architecture for cross-process memory notification suppressing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment explaining the use of scoped_ptr in the browser test matcher 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
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/memory/memory_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..122a7aa9cec2035bb92978ddaea51c6a2d3c38ba
--- /dev/null
+++ b/content/browser/memory/memory_message_filter.h
@@ -0,0 +1,35 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_
+#define CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_
+
+#include "content/common/content_export.h"
+#include "content/public/browser/browser_message_filter.h"
+
+namespace content {
+
+// This class sends memory messages from the browser process.
+// See also: child_memory_message_filter.h
+class CONTENT_EXPORT MemoryMessageFilter : public BrowserMessageFilter {
+ public:
+ MemoryMessageFilter();
+
+ // BrowserMessageFilter implementation.
+ void OnFilterAdded(IPC::Sender* sender) override;
+ void OnChannelClosing() override;
+ bool OnMessageReceived(const IPC::Message& message) override;
+
+ void SendSetPressureNotificationsSuppressed(bool suppressed);
+
+ protected:
+ ~MemoryMessageFilter() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MemoryMessageFilter);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/memory/memory_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698