Chromium Code Reviews| Index: content/child/memory/child_memory_message_filter.h |
| diff --git a/content/child/memory/child_memory_message_filter.h b/content/child/memory/child_memory_message_filter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..33d8ef38b9ac19d5286c68fb90eb5e4f689cc0b7 |
| --- /dev/null |
| +++ b/content/child/memory/child_memory_message_filter.h |
| @@ -0,0 +1,32 @@ |
| +// 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_CHILD_MEMORY_CHILD_MEMORY_MESSAGE_FILTER_H_ |
| +#define CONTENT_CHILD_MEMORY_CHILD_MEMORY_MESSAGE_FILTER_H_ |
| + |
| +#include "ipc/message_filter.h" |
| + |
| +namespace content { |
| + |
| +// This class sends and receives memory messages on child processes. |
|
nasko
2015/09/16 21:18:37
I don't see any evidence of this class sending any
petrcermak
2015/09/17 15:24:53
Done.
|
| +// See also: memory_message_filter.h |
| +class ChildMemoryMessageFilter : public IPC::MessageFilter { |
| + public: |
| + ChildMemoryMessageFilter(); |
| + |
| + // IPC::MessageFilter implementation. |
| + bool OnMessageReceived(const IPC::Message& message) override; |
| + |
| + protected: |
| + ~ChildMemoryMessageFilter() override; |
| + |
| + private: |
| + void OnSetPressureNotificationsSuppressed(bool suppressed); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ChildMemoryMessageFilter); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_CHILD_MEMORY_CHILD_MEMORY_MESSAGE_FILTER_H_ |