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

Unified Diff: net/udp/datagram_server_socket.h

Issue 690903002: Remove timing limitation of SetOption invocation for PPAPI sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: net/udp/datagram_server_socket.h
diff --git a/net/udp/datagram_server_socket.h b/net/udp/datagram_server_socket.h
index d3796c363281e7e84c5bdeb3549834fdeac240cb..a0e7f917ae509872f17c014be5297497edf5e254 100644
--- a/net/udp/datagram_server_socket.h
+++ b/net/udp/datagram_server_socket.h
@@ -64,12 +64,18 @@ class NET_EXPORT DatagramServerSocket : public DatagramSocket {
virtual int SetSendBufferSize(int32 size) = 0;
// Allow the socket to share the local address to which the socket will
- // be bound with other processes. Should be called before Listen().
- virtual void AllowAddressReuse() = 0;
+ // be bound with other processes.
+ virtual int AllowAddressReuse() = 0;
+
+ // Disallow the socket to share the local address to which the socket will
+ // be bound with other processes.
+ virtual int DisallowAddressReuse() = 0;
// Allow sending and receiving packets to and from broadcast addresses.
- // Should be called before Listen().
- virtual void AllowBroadcast() = 0;
+ virtual int AllowBroadcast() = 0;
+
+ // Disallow sending and receiving packets to and from broadcast addresses.
+ virtual int DisallowBroadcast() = 0;
// Join the multicast group with address |group_address|.
// Returns a network error code.

Powered by Google App Engine
This is Rietveld 408576698