| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 IPC_STRUCT_TRAITS_MEMBER(hostname) | 52 IPC_STRUCT_TRAITS_MEMBER(hostname) |
| 53 IPC_STRUCT_TRAITS_MEMBER(ip_address) | 53 IPC_STRUCT_TRAITS_MEMBER(ip_address) |
| 54 IPC_STRUCT_TRAITS_END() | 54 IPC_STRUCT_TRAITS_END() |
| 55 | 55 |
| 56 IPC_STRUCT_TRAITS_BEGIN(content::P2PSendPacketMetrics) | 56 IPC_STRUCT_TRAITS_BEGIN(content::P2PSendPacketMetrics) |
| 57 IPC_STRUCT_TRAITS_MEMBER(packet_id) | 57 IPC_STRUCT_TRAITS_MEMBER(packet_id) |
| 58 IPC_STRUCT_TRAITS_MEMBER(rtc_packet_id) | 58 IPC_STRUCT_TRAITS_MEMBER(rtc_packet_id) |
| 59 IPC_STRUCT_TRAITS_MEMBER(send_time) | 59 IPC_STRUCT_TRAITS_MEMBER(send_time) |
| 60 IPC_STRUCT_TRAITS_END() | 60 IPC_STRUCT_TRAITS_END() |
| 61 | 61 |
| 62 IPC_STRUCT_TRAITS_BEGIN(content::P2PPortRange) |
| 63 IPC_STRUCT_TRAITS_MEMBER(min_port) |
| 64 IPC_STRUCT_TRAITS_MEMBER(max_port) |
| 65 IPC_STRUCT_TRAITS_END() |
| 66 |
| 62 // P2P Socket messages sent from the browser to the renderer. | 67 // P2P Socket messages sent from the browser to the renderer. |
| 63 | 68 |
| 64 IPC_MESSAGE_CONTROL3(P2PMsg_NetworkListChanged, | 69 IPC_MESSAGE_CONTROL3(P2PMsg_NetworkListChanged, |
| 65 net::NetworkInterfaceList /* networks */, | 70 net::NetworkInterfaceList /* networks */, |
| 66 net::IPAddress /* default_ipv4_local_address */, | 71 net::IPAddress /* default_ipv4_local_address */, |
| 67 net::IPAddress /* default_ipv6_local_address */) | 72 net::IPAddress /* default_ipv6_local_address */) |
| 68 | 73 |
| 69 IPC_MESSAGE_CONTROL2(P2PMsg_GetHostAddressResult, | 74 IPC_MESSAGE_CONTROL2(P2PMsg_GetHostAddressResult, |
| 70 int32_t /* request_id */, | 75 int32_t /* request_id */, |
| 71 net::IPAddressList /* address list*/) | 76 net::IPAddressList /* address list*/) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 97 | 102 |
| 98 // Start/stop sending P2PMsg_NetworkListChanged messages when network | 103 // Start/stop sending P2PMsg_NetworkListChanged messages when network |
| 99 // configuration changes. | 104 // configuration changes. |
| 100 IPC_MESSAGE_CONTROL0(P2PHostMsg_StartNetworkNotifications) | 105 IPC_MESSAGE_CONTROL0(P2PHostMsg_StartNetworkNotifications) |
| 101 IPC_MESSAGE_CONTROL0(P2PHostMsg_StopNetworkNotifications) | 106 IPC_MESSAGE_CONTROL0(P2PHostMsg_StopNetworkNotifications) |
| 102 | 107 |
| 103 IPC_MESSAGE_CONTROL2(P2PHostMsg_GetHostAddress, | 108 IPC_MESSAGE_CONTROL2(P2PHostMsg_GetHostAddress, |
| 104 std::string /* host_name */, | 109 std::string /* host_name */, |
| 105 int32_t /* request_id */) | 110 int32_t /* request_id */) |
| 106 | 111 |
| 107 IPC_MESSAGE_CONTROL4(P2PHostMsg_CreateSocket, | 112 IPC_MESSAGE_CONTROL5(P2PHostMsg_CreateSocket, |
| 108 content::P2PSocketType /* type */, | 113 content::P2PSocketType /* type */, |
| 109 int /* socket_id */, | 114 int /* socket_id */, |
| 110 net::IPEndPoint /* local_address */, | 115 net::IPEndPoint /* local_address */, |
| 116 content::P2PPortRange /* port_range */, |
| 111 content::P2PHostAndIPEndPoint /* remote_address */) | 117 content::P2PHostAndIPEndPoint /* remote_address */) |
| 112 | 118 |
| 113 IPC_MESSAGE_CONTROL3(P2PHostMsg_AcceptIncomingTcpConnection, | 119 IPC_MESSAGE_CONTROL3(P2PHostMsg_AcceptIncomingTcpConnection, |
| 114 int /* listen_socket_id */, | 120 int /* listen_socket_id */, |
| 115 net::IPEndPoint /* remote_address */, | 121 net::IPEndPoint /* remote_address */, |
| 116 int /* connected_socket_id */) | 122 int /* connected_socket_id */) |
| 117 | 123 |
| 118 // TODO(sergeyu): Use shared memory to pass the data. | 124 // TODO(sergeyu): Use shared memory to pass the data. |
| 119 IPC_MESSAGE_CONTROL5(P2PHostMsg_Send, | 125 IPC_MESSAGE_CONTROL5(P2PHostMsg_Send, |
| 120 int /* socket_id */, | 126 int /* socket_id */, |
| 121 net::IPEndPoint /* socket_address */, | 127 net::IPEndPoint /* socket_address */, |
| 122 std::vector<char> /* data */, | 128 std::vector<char> /* data */, |
| 123 rtc::PacketOptions /* packet options */, | 129 rtc::PacketOptions /* packet options */, |
| 124 uint64_t /* packet_id */) | 130 uint64_t /* packet_id */) |
| 125 | 131 |
| 126 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, | 132 IPC_MESSAGE_CONTROL1(P2PHostMsg_DestroySocket, |
| 127 int /* socket_id */) | 133 int /* socket_id */) |
| 128 | 134 |
| 129 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, | 135 IPC_MESSAGE_CONTROL3(P2PHostMsg_SetOption, |
| 130 int /* socket_id */, | 136 int /* socket_id */, |
| 131 content::P2PSocketOption /* socket option type */, | 137 content::P2PSocketOption /* socket option type */, |
| 132 int /* value */) | 138 int /* value */) |
| OLD | NEW |