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

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: sync and rework 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
Index: net/udp/udp_client_socket.h
diff --git a/net/udp/udp_client_socket.h b/net/udp/udp_client_socket.h
index 3ca62e988331d589f273d0f62f05f9a390318e48..b10912d959c285578b2a3336d2f645771687776e 100644
--- a/net/udp/udp_client_socket.h
+++ b/net/udp/udp_client_socket.h
@@ -27,6 +27,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,
@@ -49,6 +51,7 @@ class NET_EXPORT_PRIVATE UDPClientSocket : public DatagramClientSocket {
private:
UDPSocket socket_;
+ NetworkChangeNotifier::NetworkHandle network_;
DISALLOW_COPY_AND_ASSIGN(UDPClientSocket);
};

Powered by Google App Engine
This is Rietveld 408576698