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_CHILD_MEMORY_CHILD_MEMORY_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_CHILD_MEMORY_CHILD_MEMORY_MESSAGE_FILTER_H_ |
| 7 |
| 8 #include "ipc/message_filter.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 // This class receives memory messages in child processes. |
| 13 // See also: memory_message_filter.h |
| 14 class ChildMemoryMessageFilter : public IPC::MessageFilter { |
| 15 public: |
| 16 ChildMemoryMessageFilter(); |
| 17 |
| 18 // IPC::MessageFilter implementation. |
| 19 bool OnMessageReceived(const IPC::Message& message) override; |
| 20 |
| 21 protected: |
| 22 ~ChildMemoryMessageFilter() override; |
| 23 |
| 24 private: |
| 25 void OnSetPressureNotificationsSuppressed(bool suppressed); |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(ChildMemoryMessageFilter); |
| 28 }; |
| 29 |
| 30 } // namespace content |
| 31 |
| 32 #endif // CONTENT_CHILD_MEMORY_CHILD_MEMORY_MESSAGE_FILTER_H_ |
OLD | NEW |