- add sources.
[platform/framework/web/crosswalk.git] / src / content / common / frame_messages.h
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.
4
5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard.
7
8 #include "content/common/content_export.h"
9 #include "ipc/ipc_message_macros.h"
10
11 #undef IPC_MESSAGE_EXPORT
12 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
13
14 #define IPC_MESSAGE_START FrameMsgStart
15
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.
19 //
20 // Each of these messages will have a corresponding FrameHostMsg_Detach message
21 // sent when the frame is detached from the DOM.
22 //
23 // TOOD(ajwong): replace parent_render_frame_id and frame_id with just the
24 // routing ids.
25 IPC_SYNC_MESSAGE_CONTROL4_1(FrameHostMsg_CreateChildFrame,
26                             int32 /* parent_render_frame_id */,
27                             int64 /* parent_frame_id */,
28                             int64 /* frame_id */,
29                             std::string /* frame_name */,
30                             int /* new_render_frame_id */)
31
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 */,
36                     int64 /* frame_id */)
37
38 // Sent when the renderer starts a provisional load for a frame.
39 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidStartProvisionalLoadForFrame,
40                     int64 /* frame_id */,
41                     int64 /* parent_frame_id */,
42                     bool /* true if it is the main frame */,
43                     GURL /* url */)
44