summaryrefslogtreecommitdiff
path: root/chromium/content/common/swapped_out_messages.h
blob: c4b0649a7c6ca50159b59866bb2abd84bc3ff4a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2012 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_

#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_