Index: net/udp/udp_socket_win.h |
diff --git a/net/udp/udp_socket_win.h b/net/udp/udp_socket_win.h |
index 6aace29d9653b2ddcd712ef18cd10e449f1d8612..d49f64d6523f01b9cc640a85f30e00451afd9118 100644 |
--- a/net/udp/udp_socket_win.h |
+++ b/net/udp/udp_socket_win.h |
@@ -55,13 +55,12 @@ class UDPSocketWin : public base::NonThreadSafe { |
// Read from the socket. |
// Only usable from the client-side of a UDP socket, after the socket |
// has been connected. |
- int Read(IOBuffer* buf, int buf_len, OldCompletionCallback* callback); |
int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback); |
// Write to the socket. |
// Only usable from the client-side of a UDP socket, after the socket |
// has been connected. |
- int Write(IOBuffer* buf, int buf_len, OldCompletionCallback* callback); |
+ int Write(IOBuffer* buf, int buf_len, const CompletionCallback& callback); |
// Read from a socket and receive sender address information. |
// |buf| is the buffer to read data into. |
@@ -79,10 +78,6 @@ class UDPSocketWin : public base::NonThreadSafe { |
int RecvFrom(IOBuffer* buf, |
int buf_len, |
IPEndPoint* address, |
- OldCompletionCallback* callback); |
- int RecvFrom(IOBuffer* buf, |
- int buf_len, |
- IPEndPoint* address, |
const CompletionCallback& callback); |
// Send to a socket with a particular destination. |
@@ -97,7 +92,7 @@ class UDPSocketWin : public base::NonThreadSafe { |
int SendTo(IOBuffer* buf, |
int buf_len, |
const IPEndPoint& address, |
- OldCompletionCallback* callback); |
+ const CompletionCallback& callback); |
// Set the receive buffer size (in bytes) for the socket. |
bool SetReceiveBufferSize(int32 size); |
@@ -155,7 +150,7 @@ class UDPSocketWin : public base::NonThreadSafe { |
int SendToOrWrite(IOBuffer* buf, |
int buf_len, |
const IPEndPoint* address, |
- OldCompletionCallback* callback); |
+ const CompletionCallback& callback); |
int InternalConnect(const IPEndPoint& address); |
int InternalRecvFrom(IOBuffer* buf, int buf_len, IPEndPoint* address); |
@@ -208,11 +203,10 @@ class UDPSocketWin : public base::NonThreadSafe { |
scoped_refptr<IOBuffer> write_iobuffer_; |
// External callback; called when read is complete. |
- OldCompletionCallback* old_read_callback_; |
CompletionCallback read_callback_; |
// External callback; called when write is complete. |
- OldCompletionCallback* write_callback_; |
+ CompletionCallback write_callback_; |
BoundNetLog net_log_; |