OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_ |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 #include "content/public/browser/browser_message_filter.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 // This class sends memory messages from the browser process. |
| 14 // See also: child_memory_message_filter.h |
| 15 class CONTENT_EXPORT MemoryMessageFilter : public BrowserMessageFilter { |
| 16 public: |
| 17 MemoryMessageFilter(); |
| 18 |
| 19 // BrowserMessageFilter implementation. |
| 20 void OnFilterAdded(IPC::Sender* sender) override; |
| 21 void OnChannelClosing() override; |
| 22 bool OnMessageReceived(const IPC::Message& message) override; |
| 23 |
| 24 void SendSetPressureNotificationsSuppressed(bool suppressed); |
| 25 |
| 26 protected: |
| 27 ~MemoryMessageFilter() override; |
| 28 |
| 29 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(MemoryMessageFilter); |
| 31 }; |
| 32 |
| 33 } // namespace content |
| 34 |
| 35 #endif // CONTENT_BROWSER_MEMORY_MEMORY_MESSAGE_FILTER_H_ |
OLD | NEW |