1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard.
8 #include "content/common/content_export.h"
9 #include "ipc/ipc_message_macros.h"
11 #undef IPC_MESSAGE_EXPORT
12 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
14 #define IPC_MESSAGE_START FrameMsgStart
16 // Sent by the renderer when a child frame is created in the renderer. The
17 // |parent_frame_id| and |frame_id| are NOT routing ids. They are
18 // renderer-allocated identifiers used for tracking a frame's creation.
20 // Each of these messages will have a corresponding FrameHostMsg_Detach message
21 // sent when the frame is detached from the DOM.
23 // TOOD(ajwong): replace parent_render_frame_id and frame_id with just the
25 IPC_SYNC_MESSAGE_CONTROL4_1(FrameHostMsg_CreateChildFrame,
26 int32 /* parent_render_frame_id */,
27 int64 /* parent_frame_id */,
29 std::string /* frame_name */,
30 int /* new_render_frame_id */)
32 // Sent by the renderer to the parent RenderFrameHost when a child frame is
33 // detached from the DOM.
34 IPC_MESSAGE_ROUTED2(FrameHostMsg_Detach,
35 int64 /* parent_frame_id */,
38 // Sent when the renderer starts a provisional load for a frame.
39 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidStartProvisionalLoadForFrame,
41 int64 /* parent_frame_id */,
42 bool /* true if it is the main frame */,