Commit 7be809df authored by wtc@chromium.org's avatar wtc@chromium.org

Fix comment nits. This is a follow-up to

https://chromiumcodereview.appspot.com/10739002/.

R=ygorshenin@chromium.org
BUG=136797
TEST=no compilation errors

Review URL: https://chromiumcodereview.appspot.com/10783029

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150362 0039d316-1c4b-4281-b951-d872f2087c98
parent f8562a33
...@@ -60,12 +60,12 @@ class NET_EXPORT DatagramServerSocket : public DatagramSocket { ...@@ -60,12 +60,12 @@ class NET_EXPORT DatagramServerSocket : public DatagramSocket {
// Set the send buffer size (in bytes) for the socket. // Set the send buffer size (in bytes) for the socket.
virtual bool SetSendBufferSize(int32 size) = 0; virtual bool SetSendBufferSize(int32 size) = 0;
// Allow the socket to share the local address to which socket will // Allow the socket to share the local address to which the socket will
// be bound with other processes. Should be called before Listen(). // be bound with other processes. Should be called before Listen().
virtual void AllowAddressReuse() = 0; virtual void AllowAddressReuse() = 0;
// Allow sending and receiving packets sent to and from broadcast // Allow sending and receiving packets to and from broadcast addresses.
// addresses. Should be called before Listen(). // Should be called before Listen().
virtual void AllowBroadcast() = 0; virtual void AllowBroadcast() = 0;
}; };
......
...@@ -104,13 +104,13 @@ class NET_EXPORT UDPSocketLibevent : public base::NonThreadSafe { ...@@ -104,13 +104,13 @@ class NET_EXPORT UDPSocketLibevent : public base::NonThreadSafe {
const BoundNetLog& NetLog() const { return net_log_; } const BoundNetLog& NetLog() const { return net_log_; }
// Sets corresponding flags in |socket_options_| to allow the socket // Sets corresponding flags in |socket_options_| to allow the socket
// to share the local address to which socket will be bound with // to share the local address to which the socket will be bound with
// other processes. Should be called before Bind(). // other processes. Should be called before Bind().
void AllowAddressReuse(); void AllowAddressReuse();
// Sets corresponding flags in |socket_options_| to allow sending // Sets corresponding flags in |socket_options_| to allow sending
// and receiving packets sent to and from broadcast // and receiving packets to and from broadcast addresses. Should be
// addresses. Should be called before Bind(). // called before Bind().
void AllowBroadcast(); void AllowBroadcast();
private: private:
...@@ -195,8 +195,8 @@ class NET_EXPORT UDPSocketLibevent : public base::NonThreadSafe { ...@@ -195,8 +195,8 @@ class NET_EXPORT UDPSocketLibevent : public base::NonThreadSafe {
int socket_; int socket_;
// Bitwise-or'd combination of SocketOptions. Specifies set of // Bitwise-or'd combination of SocketOptions. Specifies the set of
// options that should be applied to |socket_| before bind. // options that should be applied to |socket_| before Bind().
int socket_options_; int socket_options_;
// How to do source port binding, used only when UDPSocket is part of // How to do source port binding, used only when UDPSocket is part of
......
...@@ -106,13 +106,13 @@ class NET_EXPORT UDPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe) { ...@@ -106,13 +106,13 @@ class NET_EXPORT UDPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe) {
const BoundNetLog& NetLog() const { return net_log_; } const BoundNetLog& NetLog() const { return net_log_; }
// Sets corresponding flags in |socket_options_| to allow the socket // Sets corresponding flags in |socket_options_| to allow the socket
// to share the local address to which socket will be bound with // to share the local address to which the socket will be bound with
// other processes. Should be called before Bind(). // other processes. Should be called before Bind().
void AllowAddressReuse(); void AllowAddressReuse();
// Sets corresponding flags in |socket_options_| to allow sending // Sets corresponding flags in |socket_options_| to allow sending
// and receiving packets sent to and from broadcast // and receiving packets to and from broadcast addresses. Should be
// addresses. Should be called before Bind(). // called before Bind().
void AllowBroadcast(); void AllowBroadcast();
private: private:
...@@ -183,8 +183,8 @@ class NET_EXPORT UDPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe) { ...@@ -183,8 +183,8 @@ class NET_EXPORT UDPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe) {
SOCKET socket_; SOCKET socket_;
// Bitwise-or'd combination of SocketOptions. Specifies set of // Bitwise-or'd combination of SocketOptions. Specifies the set of
// options that should be applied to |socket_| before bind. // options that should be applied to |socket_| before Bind().
int socket_options_; int socket_options_;
// How to do source port binding, used only when UDPSocket is part of // How to do source port binding, used only when UDPSocket is part of
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment