summaryrefslogtreecommitdiff
path: root/chromium/content/common/unfreezable_frame_messages.h
blob: 35356561620ef543e20a2562effc5afce2e985a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2019 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_UNFREEZABLE_FRAME_MESSAGES_H_
#define CONTENT_COMMON_UNFREEZABLE_FRAME_MESSAGES_H_

#include "ipc/ipc_message_macros.h"

// IPC messages for frames which should be executed and not be frozen even when
// the frame is frozen.
// Currently most IPC messages to the renderer are executed on freezable
// per-frame task runners, but messages in this class will be handled as an
// exception and will be posted on an unfreezable task runner and will be
// guaranteed to run regardless of the frame's status.
// These messages are primarily intended to support bfcache functionality.

#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT

#define IPC_MESSAGE_START UnfreezableFrameMsgStart

// Unload this RenderFrame and potentially replace it by a RenderFrameProxy, so
// the frame can navigate to a document rendered by a different process.
IPC_MESSAGE_ROUTED3(UnfreezableFrameMsg_Unload,
                    int /* proxy_routing_id */,
                    bool /* is_loading */,
                    content::FrameReplicationState /* replication_state */)

// Instructs the renderer to delete the RenderFrame.
IPC_MESSAGE_ROUTED1(UnfreezableFrameMsg_Delete, content::FrameDeleteIntention)

// Requests the corresponding RenderFrameProxy to be deleted and removed from
// the frame tree.
IPC_MESSAGE_ROUTED0(UnfreezableFrameMsg_DeleteProxy)

#endif  // CONTENT_COMMON_UNFREEZABLE_FRAME_MESSAGES_H_