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

Unified Diff: webrtc/p2p/base/basicpacketsocketfactory.h

Issue 1556743002: Bind a socket to a network if the network handle is set. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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: webrtc/p2p/base/basicpacketsocketfactory.h
diff --git a/webrtc/p2p/base/basicpacketsocketfactory.h b/webrtc/p2p/base/basicpacketsocketfactory.h
index 5046e0f518d23b38d746343d5c8e3457c7ecfdf4..a4e2f185ae580f1b22ae1deb007f5e356cf5c893 100644
--- a/webrtc/p2p/base/basicpacketsocketfactory.h
+++ b/webrtc/p2p/base/basicpacketsocketfactory.h
@@ -16,6 +16,7 @@
namespace rtc {
class AsyncSocket;
+class Network;
class SocketFactory;
class Thread;
@@ -29,6 +30,11 @@ class BasicPacketSocketFactory : public PacketSocketFactory {
AsyncPacketSocket* CreateUdpSocket(const SocketAddress& local_address,
uint16_t min_port,
uint16_t max_port) override;
+ AsyncPacketSocket* CreateUdpSocketOnNetwork(
+ const SocketAddress& local_address,
+ uint16_t min_port,
+ uint16_t max_port,
+ const Network* network) override;
AsyncPacketSocket* CreateServerTcpSocket(const SocketAddress& local_address,
uint16_t min_port,
uint16_t max_port,

Powered by Google App Engine
This is Rietveld 408576698