OLD | NEW |
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/content_export.h" |
8 #include "content/common/p2p_sockets.h" | 9 #include "content/common/p2p_sockets.h" |
9 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
10 #include "net/base/ip_endpoint.h" | 11 #include "net/base/ip_endpoint.h" |
11 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
12 | 13 |
| 14 #undef IPC_MESSAGE_EXPORT |
| 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
13 #define IPC_MESSAGE_START P2PMsgStart | 16 #define IPC_MESSAGE_START P2PMsgStart |
14 | 17 |
15 IPC_ENUM_TRAITS(content::P2PSocketType) | 18 IPC_ENUM_TRAITS(content::P2PSocketType) |
16 | 19 |
17 IPC_STRUCT_TRAITS_BEGIN(net::NetworkInterface) | 20 IPC_STRUCT_TRAITS_BEGIN(net::NetworkInterface) |
18 IPC_STRUCT_TRAITS_MEMBER(name) | 21 IPC_STRUCT_TRAITS_MEMBER(name) |
19 IPC_STRUCT_TRAITS_MEMBER(address) | 22 IPC_STRUCT_TRAITS_MEMBER(address) |
20 IPC_STRUCT_TRAITS_END() | 23 IPC_STRUCT_TRAITS_END() |
21 | 24 |
22 // P2P Socket messages sent from the browser to the renderer. | 25 // P2P Socket messages sent from the browser to the renderer. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 int /* connected_socket_id */) | 70 int /* connected_socket_id */) |
68 | 71 |
69 // TODO(sergeyu): Use shared memory to pass the data. | 72 // TODO(sergeyu): Use shared memory to pass the data. |
70 IPC_MESSAGE_ROUTED3(P2PHostMsg_Send, | 73 IPC_MESSAGE_ROUTED3(P2PHostMsg_Send, |
71 int /* socket_id */, | 74 int /* socket_id */, |
72 net::IPEndPoint /* socket_address */, | 75 net::IPEndPoint /* socket_address */, |
73 std::vector<char> /* data */) | 76 std::vector<char> /* data */) |
74 | 77 |
75 IPC_MESSAGE_ROUTED1(P2PHostMsg_DestroySocket, | 78 IPC_MESSAGE_ROUTED1(P2PHostMsg_DestroySocket, |
76 int /* socket_id */) | 79 int /* socket_id */) |
OLD | NEW |