| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/content_export.h" |
| 9 #include "content/common/p2p_sockets.h" | 9 #include "content/common/p2p_sockets.h" |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 net::NetworkInterfaceList /* networks */) | 28 net::NetworkInterfaceList /* networks */) |
| 29 | 29 |
| 30 IPC_MESSAGE_CONTROL2(P2PMsg_GetHostAddressResult, | 30 IPC_MESSAGE_CONTROL2(P2PMsg_GetHostAddressResult, |
| 31 int32 /* request_id */, | 31 int32 /* request_id */, |
| 32 net::IPAddressNumber /* address */) | 32 net::IPAddressNumber /* address */) |
| 33 | 33 |
| 34 IPC_MESSAGE_CONTROL2(P2PMsg_OnSocketCreated, | 34 IPC_MESSAGE_CONTROL2(P2PMsg_OnSocketCreated, |
| 35 int /* socket_id */, | 35 int /* socket_id */, |
| 36 net::IPEndPoint /* socket_address */) | 36 net::IPEndPoint /* socket_address */) |
| 37 | 37 |
| 38 IPC_MESSAGE_CONTROL1(P2PMsg_OnSendComplete, |
| 39 int /* socket_id */) |
| 40 |
| 38 IPC_MESSAGE_CONTROL1(P2PMsg_OnError, | 41 IPC_MESSAGE_CONTROL1(P2PMsg_OnError, |
| 39 int /* socket_id */) | 42 int /* socket_id */) |
| 40 | 43 |
| 41 IPC_MESSAGE_CONTROL2(P2PMsg_OnIncomingTcpConnection, | 44 IPC_MESSAGE_CONTROL2(P2PMsg_OnIncomingTcpConnection, |
| 42 int /* socket_id */, | 45 int /* socket_id */, |
| 43 net::IPEndPoint /* socket_address */) | 46 net::IPEndPoint /* socket_address */) |
| 44 | 47 |
| 45 IPC_MESSAGE_CONTROL3(P2PMsg_OnDataReceived, | 48 IPC_MESSAGE_CONTROL3(P2PMsg_OnDataReceived, |
| 46 int /* socket_id */, | 49 int /* socket_id */, |
| 47 net::IPEndPoint /* socket_address */, | 50 net::IPEndPoint /* socket_address */, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 70 int /* connected_socket_id */) | 73 int /* connected_socket_id */) |
| 71 | 74 |
| 72 // TODO(sergeyu): Use shared memory to pass the data. | 75 // TODO(sergeyu): Use shared memory to pass the data. |
| 73 IPC_MESSAGE_CONTROL3(P2PHostMsg_Send, | 76 IPC_MESSAGE_CONTROL3(P2PHostMsg_Send, |
| 74 int /* socket_id */, | 77 int /* socket_id */, |
| 75 net::IPEndPoint /* socket_address */, | 78 net::IPEndPoint /* socket_address */, |
| 76 std::vector<char> /* data */) | 79 std::vector<char> /* data */) |
| 77 | 80 |
| 78 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, | 81 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, |
| 79 int /* socket_id */) | 82 int /* socket_id */) |
| OLD | NEW |