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

Unified Diff: content/common/p2p_messages.h

Issue 759923003: Detect situation when there is no missing send completion signal in P2PSocket implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_udp.cc ('k') | content/common/p2p_socket_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/p2p_messages.h
diff --git a/content/common/p2p_messages.h b/content/common/p2p_messages.h
index e1237947743fffe4aba0899a4a15c719dd674356..a2847bd5cede6ba8e8de0d6d3b31dbdee297a969 100644
--- a/content/common/p2p_messages.h
+++ b/content/common/p2p_messages.h
@@ -49,6 +49,10 @@ IPC_STRUCT_TRAITS_BEGIN(content::P2PHostAndIPEndPoint)
IPC_STRUCT_TRAITS_MEMBER(ip_address)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(content::P2PSendPacketMetrics)
+ IPC_STRUCT_TRAITS_MEMBER(packet_id)
+IPC_STRUCT_TRAITS_END()
+
// P2P Socket messages sent from the browser to the renderer.
IPC_MESSAGE_CONTROL1(P2PMsg_NetworkListChanged,
@@ -63,8 +67,10 @@ IPC_MESSAGE_CONTROL3(P2PMsg_OnSocketCreated,
net::IPEndPoint /* local_address */,
net::IPEndPoint /* remote_address */)
-IPC_MESSAGE_CONTROL1(P2PMsg_OnSendComplete,
- int /* socket_id */)
+// |send_metrics| carries packet_id for this packet.
+IPC_MESSAGE_CONTROL2(P2PMsg_OnSendComplete,
+ int /* socket_id */,
+ content::P2PSendPacketMetrics /* send_metrics */)
IPC_MESSAGE_CONTROL1(P2PMsg_OnError,
int /* socket_id */)
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_udp.cc ('k') | content/common/p2p_socket_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698