| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 IPC_STRUCT_TRAITS_END() | 51 IPC_STRUCT_TRAITS_END() |
| 52 | 52 |
| 53 IPC_STRUCT_TRAITS_BEGIN(content::P2PSendPacketMetrics) | 53 IPC_STRUCT_TRAITS_BEGIN(content::P2PSendPacketMetrics) |
| 54 IPC_STRUCT_TRAITS_MEMBER(packet_id) | 54 IPC_STRUCT_TRAITS_MEMBER(packet_id) |
| 55 IPC_STRUCT_TRAITS_MEMBER(rtc_packet_id) | 55 IPC_STRUCT_TRAITS_MEMBER(rtc_packet_id) |
| 56 IPC_STRUCT_TRAITS_MEMBER(send_time) | 56 IPC_STRUCT_TRAITS_MEMBER(send_time) |
| 57 IPC_STRUCT_TRAITS_END() | 57 IPC_STRUCT_TRAITS_END() |
| 58 | 58 |
| 59 // P2P Socket messages sent from the browser to the renderer. | 59 // P2P Socket messages sent from the browser to the renderer. |
| 60 | 60 |
| 61 IPC_MESSAGE_CONTROL1(P2PMsg_NetworkListChanged, | 61 IPC_MESSAGE_CONTROL3(P2PMsg_NetworkListChanged, |
| 62 net::NetworkInterfaceList /* networks */) | 62 net::NetworkInterfaceList /* networks */, |
| 63 net::IPAddressNumber /* default_ipv4_local_address */, |
| 64 net::IPAddressNumber /* default_ipv6_local_address */) |
| 63 | 65 |
| 64 IPC_MESSAGE_CONTROL2(P2PMsg_GetHostAddressResult, | 66 IPC_MESSAGE_CONTROL2(P2PMsg_GetHostAddressResult, |
| 65 int32 /* request_id */, | 67 int32 /* request_id */, |
| 66 net::IPAddressList /* address list*/) | 68 net::IPAddressList /* address list*/) |
| 67 | 69 |
| 68 IPC_MESSAGE_CONTROL3(P2PMsg_OnSocketCreated, | 70 IPC_MESSAGE_CONTROL3(P2PMsg_OnSocketCreated, |
| 69 int /* socket_id */, | 71 int /* socket_id */, |
| 70 net::IPEndPoint /* local_address */, | 72 net::IPEndPoint /* local_address */, |
| 71 net::IPEndPoint /* remote_address */) | 73 net::IPEndPoint /* remote_address */) |
| 72 | 74 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 rtc::PacketOptions /* packet options */, | 120 rtc::PacketOptions /* packet options */, |
| 119 uint64 /* packet_id */) | 121 uint64 /* packet_id */) |
| 120 | 122 |
| 121 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, | 123 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, |
| 122 int /* socket_id */) | 124 int /* socket_id */) |
| 123 | 125 |
| 124 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, | 126 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, |
| 125 int /* socket_id */, | 127 int /* socket_id */, |
| 126 content::P2PSocketOption /* socket option type */, | 128 content::P2PSocketOption /* socket option type */, |
| 127 int /* value */) | 129 int /* value */) |
| OLD | NEW |