Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: content/common/p2p_messages.h

Issue 2140693002: Support port range for IPC P2P UDP sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile issues Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/p2p_messages.h
diff --git a/content/common/p2p_messages.h b/content/common/p2p_messages.h
index 9725b257cff2e41ac95f6849d0748cdeefaaabd9..51b01447dcf2fc183a0e199af90910197060c299 100644
--- a/content/common/p2p_messages.h
+++ b/content/common/p2p_messages.h
@@ -59,6 +59,11 @@ IPC_STRUCT_TRAITS_BEGIN(content::P2PSendPacketMetrics)
IPC_STRUCT_TRAITS_MEMBER(send_time)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(content::P2PPortRange)
+ IPC_STRUCT_TRAITS_MEMBER(min_port)
+ IPC_STRUCT_TRAITS_MEMBER(max_port)
+IPC_STRUCT_TRAITS_END()
+
// P2P Socket messages sent from the browser to the renderer.
IPC_MESSAGE_CONTROL3(P2PMsg_NetworkListChanged,
@@ -104,10 +109,11 @@ IPC_MESSAGE_CONTROL2(P2PHostMsg_GetHostAddress,
std::string /* host_name */,
int32_t /* request_id */)
-IPC_MESSAGE_CONTROL4(P2PHostMsg_CreateSocket,
+IPC_MESSAGE_CONTROL5(P2PHostMsg_CreateSocket,
content::P2PSocketType /* type */,
int /* socket_id */,
net::IPEndPoint /* local_address */,
+ content::P2PPortRange /* port_range */,
content::P2PHostAndIPEndPoint /* remote_address */)
IPC_MESSAGE_CONTROL3(P2PHostMsg_AcceptIncomingTcpConnection,

Powered by Google App Engine
This is Rietveld 408576698