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

Unified Diff: net/udp/datagram_client_socket.h

Issue 1416213003: Add DatagramClientSocket::BindToDefaultNetwork(),GetBoundNetwork() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: loop only twice Created 5 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 | « net/socket/socket_test_util.cc ('k') | net/udp/udp_client_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/datagram_client_socket.h
diff --git a/net/udp/datagram_client_socket.h b/net/udp/datagram_client_socket.h
index ac4632ed2e33ff27fbf1a2a8fb7f3f365660e2fe..eecd7f31cd0e664774a3bd007d115f19daa9d375 100644
--- a/net/udp/datagram_client_socket.h
+++ b/net/udp/datagram_client_socket.h
@@ -25,6 +25,15 @@ class NET_EXPORT_PRIVATE DatagramClientSocket : public DatagramSocket,
// Returns a net error code.
virtual int BindToNetwork(NetworkChangeNotifier::NetworkHandle network) = 0;
+ // Same as BindToNetwork, except that the current default network is used.
+ // Returns a net error code.
+ virtual int BindToDefaultNetwork() = 0;
+
+ // Returns the network that either BindToNetwork() or BindToDefaultNetwork()
+ // bound this socket to. Returns NetworkChangeNotifier::kInvalidNetworkHandle
+ // if not explicitly bound via BindToNetwork() or BindToDefaultNetwork().
+ virtual NetworkChangeNotifier::NetworkHandle GetBoundNetwork() = 0;
+
// Initialize this socket as a client socket to server at |address|.
// Returns a network error code.
virtual int Connect(const IPEndPoint& address) = 0;
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/udp/udp_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698