Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: content/common/navigator_connect_messages.h

Issue 944443003: Step two of optionally sending messages to/from message ports as base::Value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-c-message-as-values-take2
Patch Set: use auto where it makes sense Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for navigator.connect 5 // IPC messages for navigator.connect
6 6
7 #include "content/public/common/message_port_types.h"
7 #include "content/public/common/navigator_connect_client.h" 8 #include "content/public/common/navigator_connect_client.h"
8 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
9 #include "url/gurl.h" 10 #include "url/gurl.h"
10 11
11 #define IPC_MESSAGE_START NavigatorConnectMsgStart 12 #define IPC_MESSAGE_START NavigatorConnectMsgStart
12 13
13 IPC_STRUCT_TRAITS_BEGIN(content::NavigatorConnectClient) 14 IPC_STRUCT_TRAITS_BEGIN(content::NavigatorConnectClient)
14 IPC_STRUCT_TRAITS_MEMBER(target_url) 15 IPC_STRUCT_TRAITS_MEMBER(target_url)
15 IPC_STRUCT_TRAITS_MEMBER(origin) 16 IPC_STRUCT_TRAITS_MEMBER(origin)
16 IPC_STRUCT_TRAITS_MEMBER(message_port_id) 17 IPC_STRUCT_TRAITS_MEMBER(message_port_id)
17 IPC_STRUCT_TRAITS_END() 18 IPC_STRUCT_TRAITS_END()
18 19
19 // Messages sent from the child process to the browser. 20 // Messages sent from the child process to the browser.
20 IPC_MESSAGE_CONTROL3(NavigatorConnectHostMsg_Connect, 21 IPC_MESSAGE_CONTROL3(NavigatorConnectHostMsg_Connect,
21 int /* thread_id */, 22 int /* thread_id */,
22 int /* request_id */, 23 int /* request_id */,
23 content::NavigatorConnectClient /* client */) 24 content::NavigatorConnectClient /* client */)
24 25
25 // Messages sent from the browser to the child process. 26 // Messages sent from the browser to the child process.
26 IPC_MESSAGE_CONTROL5(NavigatorConnectMsg_ConnectResult, 27 IPC_MESSAGE_CONTROL5(NavigatorConnectMsg_ConnectResult,
27 int /* thread_id */, 28 int /* thread_id */,
28 int /* request_id */, 29 int /* request_id */,
29 int /* message_port_id */, 30 content::TransferredMessagePort /* message_port */,
30 int /* message_port_route_id */, 31 int /* message_port_route_id */,
31 bool /* allow_connect */) 32 bool /* allow_connect */)
OLDNEW
« no previous file with comments | « content/common/message_port_messages.h ('k') | content/common/service_worker/service_worker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698