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

Unified Diff: content/common/p2p_socket_type.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/common/p2p_messages.h ('k') | content/renderer/p2p/ipc_socket_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/p2p_socket_type.h
diff --git a/content/common/p2p_socket_type.h b/content/common/p2p_socket_type.h
index b47ae933134ef1c8da8d3b315ccedb569245ff26..ed77296b28de513dc2fcbacb949afd41199342bc 100644
--- a/content/common/p2p_socket_type.h
+++ b/content/common/p2p_socket_type.h
@@ -48,6 +48,16 @@ struct P2PHostAndIPEndPoint {
net::IPEndPoint ip_address;
};
+// Stuct which keeps track of metrics during a send operation on P2P sockets.
+// Currently, it only carries packet_id but could be expanded to include
+// timestamps when packet arrives at various points.
+struct P2PSendPacketMetrics {
+ P2PSendPacketMetrics() : packet_id(0) {}
+ explicit P2PSendPacketMetrics(uint64_t packet_id) : packet_id(packet_id) {}
+
+ uint64_t packet_id;
+};
+
} // namespace content
#endif // CONTENT_COMMON_P2P_SOCKET_TYPE_H_
« no previous file with comments | « content/common/p2p_messages.h ('k') | content/renderer/p2p/ipc_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698