Chromium Code Reviews| Index: content/common/swapped_out_message_filter.h |
| diff --git a/content/common/swapped_out_message_filter.h b/content/common/swapped_out_message_filter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a1967d71b3606d90da938677198db7c7656bdd2b |
| --- /dev/null |
| +++ b/content/common/swapped_out_message_filter.h |
| @@ -0,0 +1,23 @@ |
| +// Copyright (c) 2011 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_COMMON_SWAPPED_OUT_MESSAGE_FILTER_H_ |
|
jam
2011/05/11 20:19:31
why is this file called _message_filter? we usual
Charlie Reis
2011/05/11 20:49:15
Ah, wasn't aware of the convention. Fixed.
|
| +#define CONTENT_COMMON_SWAPPED_OUT_MESSAGE_FILTER_H_ |
| +#pragma once |
| + |
| +#include "ipc/ipc_message.h" |
| + |
| +namespace content { |
| + |
| +// Functions for filtering IPC messages sent from and received from a swapped |
| +// out renderer. |
| +class SwappedOutMessageFilter { |
| + public: |
| + static bool CanSendWhileSwappedOut(const IPC::Message* msg); |
| + static bool CanHandleWhileSwappedOut(const IPC::Message& msg); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_SWAPPED_OUT_MESSAGE_FILTER_H_ |