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..44368607b0ec39c3fa41d6b605cc395305d0566f 100644 |
--- a/net/udp/udp_socket_win.h |
+++ b/net/udp/udp_socket_win.h |
@@ -62,6 +62,7 @@ class UDPSocketWin : public base::NonThreadSafe { |
// 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. |
@@ -156,6 +157,10 @@ class UDPSocketWin : public base::NonThreadSafe { |
int buf_len, |
const IPEndPoint* address, |
OldCompletionCallback* callback); |
+ int SendToOrWrite(IOBuffer* buf, |
+ int buf_len, |
+ const IPEndPoint* address, |
+ const CompletionCallback& callback); |
int InternalConnect(const IPEndPoint& address); |
int InternalRecvFrom(IOBuffer* buf, int buf_len, IPEndPoint* address); |
@@ -212,7 +217,8 @@ class UDPSocketWin : public base::NonThreadSafe { |
CompletionCallback read_callback_; |
// External callback; called when write is complete. |
- OldCompletionCallback* write_callback_; |
+ OldCompletionCallback* old_write_callback_; |
+ CompletionCallback write_callback_; |
BoundNetLog net_log_; |