1 // Copyright 2014 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 navigator.connect
7 #include "content/public/common/message_port_types.h"
8 #include "content/public/common/navigator_connect_client.h"
9 #include "ipc/ipc_message_macros.h"
12 #define IPC_MESSAGE_START NavigatorConnectMsgStart
14 IPC_STRUCT_TRAITS_BEGIN(content::NavigatorConnectClient
)
15 IPC_STRUCT_TRAITS_MEMBER(target_url
)
16 IPC_STRUCT_TRAITS_MEMBER(origin
)
17 IPC_STRUCT_TRAITS_MEMBER(message_port_id
)
18 IPC_STRUCT_TRAITS_END()
20 // Messages sent from the child process to the browser.
21 IPC_MESSAGE_CONTROL3(NavigatorConnectHostMsg_Connect
,
24 content::NavigatorConnectClient
/* client */)
26 // Messages sent from the browser to the child process.
27 IPC_MESSAGE_CONTROL5(NavigatorConnectMsg_ConnectResult
,
30 content::TransferredMessagePort
/* message_port */,
31 int /* message_port_route_id */,
32 bool /* allow_connect */)