summaryrefslogtreecommitdiffstats
path: root/content/common/swapped_out_messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/swapped_out_messages.h')
-rw-r--r--content/common/swapped_out_messages.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/content/common/swapped_out_messages.h b/content/common/swapped_out_messages.h
new file mode 100644
index 0000000..559d6b1
--- /dev/null
+++ b/content/common/swapped_out_messages.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_MESSAGES_H_
+#define CONTENT_COMMON_SWAPPED_OUT_MESSAGES_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 SwappedOutMessages {
+ public:
+ static bool CanSendWhileSwappedOut(const IPC::Message* msg);
+ static bool CanHandleWhileSwappedOut(const IPC::Message& msg);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_SWAPPED_OUT_MESSAGES_H_