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

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

Issue 7599003: Add IPC for DNS host address resolution. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 the P2P Transport API. 5 // IPC messages for the P2P Transport API.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/p2p_sockets.h" 8 #include "content/common/p2p_sockets.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
11 #include "net/base/net_util.h" 11 #include "net/base/net_util.h"
12 12
13 #define IPC_MESSAGE_START P2PMsgStart 13 #define IPC_MESSAGE_START P2PMsgStart
14 14
15 IPC_ENUM_TRAITS(P2PSocketType) 15 IPC_ENUM_TRAITS(P2PSocketType)
16 16
17 IPC_STRUCT_TRAITS_BEGIN(net::NetworkInterface) 17 IPC_STRUCT_TRAITS_BEGIN(net::NetworkInterface)
18 IPC_STRUCT_TRAITS_MEMBER(name) 18 IPC_STRUCT_TRAITS_MEMBER(name)
19 IPC_STRUCT_TRAITS_MEMBER(address) 19 IPC_STRUCT_TRAITS_MEMBER(address)
20 IPC_STRUCT_TRAITS_END() 20 IPC_STRUCT_TRAITS_END()
21 21
22 // P2P Socket messages sent from the browser to the renderer. 22 // P2P Socket messages sent from the browser to the renderer.
23 23
24 IPC_MESSAGE_ROUTED1(P2PMsg_NetworkListChanged, 24 IPC_MESSAGE_ROUTED1(P2PMsg_NetworkListChanged,
25 net::NetworkInterfaceList /* networks */) 25 net::NetworkInterfaceList /* networks */)
26 26
27 IPC_MESSAGE_ROUTED2(P2PMsg_GetHostAddressResult,
28 int32 /* request_id */,
29 net::IPAddressNumber /* address */)
30
27 IPC_MESSAGE_ROUTED2(P2PMsg_OnSocketCreated, 31 IPC_MESSAGE_ROUTED2(P2PMsg_OnSocketCreated,
28 int /* socket_id */, 32 int /* socket_id */,
29 net::IPEndPoint /* socket_address */) 33 net::IPEndPoint /* socket_address */)
30 34
31 IPC_MESSAGE_ROUTED1(P2PMsg_OnError, 35 IPC_MESSAGE_ROUTED1(P2PMsg_OnError,
32 int /* socket_id */) 36 int /* socket_id */)
33 37
34 IPC_MESSAGE_ROUTED2(P2PMsg_OnIncomingTcpConnection, 38 IPC_MESSAGE_ROUTED2(P2PMsg_OnIncomingTcpConnection,
35 int /* socket_id */, 39 int /* socket_id */,
36 net::IPEndPoint /* socket_address */) 40 net::IPEndPoint /* socket_address */)
37 41
38 IPC_MESSAGE_ROUTED3(P2PMsg_OnDataReceived, 42 IPC_MESSAGE_ROUTED3(P2PMsg_OnDataReceived,
39 int /* socket_id */, 43 int /* socket_id */,
40 net::IPEndPoint /* socket_address */, 44 net::IPEndPoint /* socket_address */,
41 std::vector<char> /* data */) 45 std::vector<char> /* data */)
42 46
43 // P2P Socket messages sent from the renderer to the browser. 47 // P2P Socket messages sent from the renderer to the browser.
44 48
45 // Start/stop sending P2PMsg_NetworkListChanged messages when network 49 // Start/stop sending P2PMsg_NetworkListChanged messages when network
46 // configuration changes. 50 // configuration changes.
47 IPC_MESSAGE_ROUTED0(P2PHostMsg_StartNetworkNotifications) 51 IPC_MESSAGE_ROUTED0(P2PHostMsg_StartNetworkNotifications)
48 IPC_MESSAGE_ROUTED0(P2PHostMsg_StopNetworkNotifications) 52 IPC_MESSAGE_ROUTED0(P2PHostMsg_StopNetworkNotifications)
49 53
54 IPC_MESSAGE_ROUTED2(P2PHostMsg_GetHostAddress,
55 std::string /* host_name */,
56 int32 /* request_id */)
57
50 IPC_MESSAGE_ROUTED4(P2PHostMsg_CreateSocket, 58 IPC_MESSAGE_ROUTED4(P2PHostMsg_CreateSocket,
51 P2PSocketType /* type */, 59 P2PSocketType /* type */,
52 int /* socket_id */, 60 int /* socket_id */,
53 net::IPEndPoint /* local_address */, 61 net::IPEndPoint /* local_address */,
54 net::IPEndPoint /* remote_address */) 62 net::IPEndPoint /* remote_address */)
55 63
56 IPC_MESSAGE_ROUTED3(P2PHostMsg_AcceptIncomingTcpConnection, 64 IPC_MESSAGE_ROUTED3(P2PHostMsg_AcceptIncomingTcpConnection,
57 int /* listen_socket_id */, 65 int /* listen_socket_id */,
58 net::IPEndPoint /* remote_address */, 66 net::IPEndPoint /* remote_address */,
59 int /* connected_socket_id */) 67 int /* connected_socket_id */)
60 68
61 // TODO(sergeyu): Use shared memory to pass the data. 69 // TODO(sergeyu): Use shared memory to pass the data.
62 IPC_MESSAGE_ROUTED3(P2PHostMsg_Send, 70 IPC_MESSAGE_ROUTED3(P2PHostMsg_Send,
63 int /* socket_id */, 71 int /* socket_id */,
64 net::IPEndPoint /* socket_address */, 72 net::IPEndPoint /* socket_address */,
65 std::vector<char> /* data */) 73 std::vector<char> /* data */)
66 74
67 IPC_MESSAGE_ROUTED1(P2PHostMsg_DestroySocket, 75 IPC_MESSAGE_ROUTED1(P2PHostMsg_DestroySocket,
68 int /* socket_id */) 76 int /* socket_id */)
OLDNEW
« no previous file with comments | « content/browser/renderer_host/p2p/socket_dispatcher_host.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698