summaryrefslogtreecommitdiffstats
path: root/content/common/navigator_connect_messages.h
blob: 760a69a2e75af956c2a255e27c42252bae1eaad7 (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
// Copyright 2014 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.

// IPC messages for navigator.connect

#include "content/public/common/message_port_types.h"
#include "content/public/common/navigator_connect_client.h"
#include "ipc/ipc_message_macros.h"
#include "url/gurl.h"

#define IPC_MESSAGE_START NavigatorConnectMsgStart

IPC_STRUCT_TRAITS_BEGIN(content::NavigatorConnectClient)
  IPC_STRUCT_TRAITS_MEMBER(target_url)
  IPC_STRUCT_TRAITS_MEMBER(origin)
  IPC_STRUCT_TRAITS_MEMBER(message_port_id)
IPC_STRUCT_TRAITS_END()

// Messages sent from the child process to the browser.
IPC_MESSAGE_CONTROL3(NavigatorConnectHostMsg_Connect,
                     int /* thread_id */,
                     int /* request_id */,
                     content::NavigatorConnectClient /* client */)

// Messages sent from the browser to the child process.
IPC_MESSAGE_CONTROL5(NavigatorConnectMsg_ConnectResult,
                     int /* thread_id */,
                     int /* request_id */,
                     content::TransferredMessagePort /* message_port */,
                     int /* message_port_route_id */,
                     bool /* allow_connect */)