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..ac4cbb5a6cd87baa65d4fadd0aee7f1e636625af |
--- /dev/null |
+++ b/content/browser/memory/memory_message_filter.h |
@@ -0,0 +1,38 @@ |
+// 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/public/browser/browser_message_filter.h" |
+ |
+namespace content { |
+namespace memory { |
Primiano Tucci (use gerrit)
2015/09/16 09:11:50
Probably this memory namespace is superfluous. At
petrcermak
2015/09/16 18:14:26
Done.
|
+ |
+// This class sends and receives memory messages on the browser process. |
+// See also: child_memory_message_filter.h |
+class MemoryMessageFilter : public BrowserMessageFilter { |
+ public: |
+ MemoryMessageFilter(); |
+ |
+ // BrowserMessageFilter implementation. |
+ void OnFilterAdded(IPC::Sender* sender) override; |
+ void OnFilterRemoved() override; |
Primiano Tucci (use gerrit)
2015/09/16 09:11:50
Plz doublecheck but I think you really want here i
petrcermak
2015/09/16 18:14:26
I've searched through the Chromium source code and
|
+ bool OnMessageReceived(const IPC::Message& message) override; |
+ |
+ void SendSetPressureNotificationsSuppressed(bool suppressed); |
+ |
+ protected: |
+ ~MemoryMessageFilter() override; |
+ |
+ void OnSetPressureNotificationsSuppressedAck(); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(MemoryMessageFilter); |
+}; |
+ |
+} // namespace memory |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_ |