From 43455f28145b0620e37b0d508f2f92c35931293f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Wed, 22 Jun 2022 09:14:11 +0200 Subject: [PATCH] Comment on PacketSocketFactory injection. Document how PeerConnectionFactoryDependencies::packet_socket_factory interacts with injected port allocator. Bug: webrtc:7447 Change-Id: Id79b345c1b708944c84f466680c4b3fba77e4feb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/266480 Commit-Queue: Niels Moller Commit-Queue: Harald Alvestrand Reviewed-by: Harald Alvestrand Auto-Submit: Niels Moller Cr-Commit-Position: refs/heads/main@{#37298} --- api/peer_connection_interface.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/peer_connection_interface.h b/api/peer_connection_interface.h index 8a6ae960bd..7e16ad96be 100644 --- a/api/peer_connection_interface.h +++ b/api/peer_connection_interface.h @@ -1421,6 +1421,8 @@ struct RTC_EXPORT PeerConnectionFactoryDependencies final { rtc::Thread* worker_thread = nullptr; rtc::Thread* signaling_thread = nullptr; rtc::SocketFactory* socket_factory = nullptr; + // The `packet_socket_factory` will only be used if CreatePeerConnection is + // called without a `port_allocator`. std::unique_ptr packet_socket_factory; std::unique_ptr task_queue_factory; std::unique_ptr media_engine;