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

Unified Diff: net/udp/udp_client_socket.h

Issue 1416213003: Add DatagramClientSocket::BindToDefaultNetwork(),GetBoundNetwork() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « net/udp/datagram_client_socket.h ('k') | net/udp/udp_client_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/udp_client_socket.h
diff --git a/net/udp/udp_client_socket.h b/net/udp/udp_client_socket.h
index 60fa720271a006acbe44118052990a482b5833b5..c0bcddaaef479f031baecb631cd37440c99d9004 100644
--- a/net/udp/udp_client_socket.h
+++ b/net/udp/udp_client_socket.h
@@ -25,6 +25,8 @@ class NET_EXPORT_PRIVATE UDPClientSocket : public DatagramClientSocket {
// DatagramClientSocket implementation.
int BindToNetwork(NetworkChangeNotifier::NetworkHandle network) override;
+ int BindToDefaultNetwork() override;
+ NetworkChangeNotifier::NetworkHandle GetBoundNetwork() override;
int Connect(const IPEndPoint& address) override;
int Read(IOBuffer* buf,
int buf_len,
@@ -47,6 +49,7 @@ class NET_EXPORT_PRIVATE UDPClientSocket : public DatagramClientSocket {
private:
UDPSocket socket_;
+ NetworkChangeNotifier::NetworkHandle network_;
DISALLOW_COPY_AND_ASSIGN(UDPClientSocket);
};
« no previous file with comments | « net/udp/datagram_client_socket.h ('k') | net/udp/udp_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698