| 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 "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/common/p2p_socket_type.h" | 10 #include "content/common/p2p_socket_type.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 IPC_STRUCT_TRAITS_BEGIN(rtc::PacketOptions) | 42 IPC_STRUCT_TRAITS_BEGIN(rtc::PacketOptions) |
| 43 IPC_STRUCT_TRAITS_MEMBER(dscp) | 43 IPC_STRUCT_TRAITS_MEMBER(dscp) |
| 44 IPC_STRUCT_TRAITS_MEMBER(packet_time_params) | 44 IPC_STRUCT_TRAITS_MEMBER(packet_time_params) |
| 45 IPC_STRUCT_TRAITS_END() | 45 IPC_STRUCT_TRAITS_END() |
| 46 | 46 |
| 47 IPC_STRUCT_TRAITS_BEGIN(content::P2PHostAndIPEndPoint) | 47 IPC_STRUCT_TRAITS_BEGIN(content::P2PHostAndIPEndPoint) |
| 48 IPC_STRUCT_TRAITS_MEMBER(hostname) | 48 IPC_STRUCT_TRAITS_MEMBER(hostname) |
| 49 IPC_STRUCT_TRAITS_MEMBER(ip_address) | 49 IPC_STRUCT_TRAITS_MEMBER(ip_address) |
| 50 IPC_STRUCT_TRAITS_END() | 50 IPC_STRUCT_TRAITS_END() |
| 51 | 51 |
| 52 IPC_STRUCT_TRAITS_BEGIN(content::P2PSendPacketMetrics) |
| 53 IPC_STRUCT_TRAITS_MEMBER(packet_id) |
| 54 IPC_STRUCT_TRAITS_END() |
| 55 |
| 52 // P2P Socket messages sent from the browser to the renderer. | 56 // P2P Socket messages sent from the browser to the renderer. |
| 53 | 57 |
| 54 IPC_MESSAGE_CONTROL1(P2PMsg_NetworkListChanged, | 58 IPC_MESSAGE_CONTROL1(P2PMsg_NetworkListChanged, |
| 55 net::NetworkInterfaceList /* networks */) | 59 net::NetworkInterfaceList /* networks */) |
| 56 | 60 |
| 57 IPC_MESSAGE_CONTROL2(P2PMsg_GetHostAddressResult, | 61 IPC_MESSAGE_CONTROL2(P2PMsg_GetHostAddressResult, |
| 58 int32 /* request_id */, | 62 int32 /* request_id */, |
| 59 net::IPAddressList /* address list*/) | 63 net::IPAddressList /* address list*/) |
| 60 | 64 |
| 61 IPC_MESSAGE_CONTROL3(P2PMsg_OnSocketCreated, | 65 IPC_MESSAGE_CONTROL3(P2PMsg_OnSocketCreated, |
| 62 int /* socket_id */, | 66 int /* socket_id */, |
| 63 net::IPEndPoint /* local_address */, | 67 net::IPEndPoint /* local_address */, |
| 64 net::IPEndPoint /* remote_address */) | 68 net::IPEndPoint /* remote_address */) |
| 65 | 69 |
| 66 IPC_MESSAGE_CONTROL1(P2PMsg_OnSendComplete, | 70 // |send_metrics| carries packet_id for this packet. |
| 67 int /* socket_id */) | 71 IPC_MESSAGE_CONTROL2(P2PMsg_OnSendComplete, |
| 72 int /* socket_id */, |
| 73 content::P2PSendPacketMetrics /* send_metrics */) |
| 68 | 74 |
| 69 IPC_MESSAGE_CONTROL1(P2PMsg_OnError, | 75 IPC_MESSAGE_CONTROL1(P2PMsg_OnError, |
| 70 int /* socket_id */) | 76 int /* socket_id */) |
| 71 | 77 |
| 72 IPC_MESSAGE_CONTROL2(P2PMsg_OnIncomingTcpConnection, | 78 IPC_MESSAGE_CONTROL2(P2PMsg_OnIncomingTcpConnection, |
| 73 int /* socket_id */, | 79 int /* socket_id */, |
| 74 net::IPEndPoint /* socket_address */) | 80 net::IPEndPoint /* socket_address */) |
| 75 | 81 |
| 76 IPC_MESSAGE_CONTROL4(P2PMsg_OnDataReceived, | 82 IPC_MESSAGE_CONTROL4(P2PMsg_OnDataReceived, |
| 77 int /* socket_id */, | 83 int /* socket_id */, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 rtc::PacketOptions /* packet options */, | 115 rtc::PacketOptions /* packet options */, |
| 110 uint64 /* packet_id */) | 116 uint64 /* packet_id */) |
| 111 | 117 |
| 112 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, | 118 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, |
| 113 int /* socket_id */) | 119 int /* socket_id */) |
| 114 | 120 |
| 115 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, | 121 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, |
| 116 int /* socket_id */, | 122 int /* socket_id */, |
| 117 content::P2PSocketOption /* socket option type */, | 123 content::P2PSocketOption /* socket option type */, |
| 118 int /* value */) | 124 int /* value */) |
| OLD | NEW |