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

Unified Diff: net/udp/datagram_socket.h

Issue 2250473007: Move UseNonBlockingIO from a windows-only method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: socket_host_udp_unittest.cc Created 4 years, 4 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/socket/socket_test_util.cc ('k') | net/udp/fuzzed_datagram_client_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/datagram_socket.h
diff --git a/net/udp/datagram_socket.h b/net/udp/datagram_socket.h
index f0e9fa10baa7fb181b9b2cc6810459c6c31359d6..b61e831bdf499ca93be031049d162db36bda1609 100644
--- a/net/udp/datagram_socket.h
+++ b/net/udp/datagram_socket.h
@@ -34,6 +34,10 @@ class NET_EXPORT_PRIVATE DatagramSocket {
// (similar to getsockname)
virtual int GetLocalAddress(IPEndPoint* address) const = 0;
+ // Switch to use non-blocking IO. Must be called right after construction and
+ // before other calls.
+ virtual void UseNonBlockingIO() = 0;
+
// Gets the NetLog for this socket.
virtual const BoundNetLog& NetLog() const = 0;
};
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/udp/fuzzed_datagram_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698