summaryrefslogtreecommitdiffstats
path: root/net/udp/udp_socket_libevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/udp/udp_socket_libevent.h')
-rw-r--r--net/udp/udp_socket_libevent.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/net/udp/udp_socket_libevent.h b/net/udp/udp_socket_libevent.h
index 45ec1bb..6cef1c0 100644
--- a/net/udp/udp_socket_libevent.h
+++ b/net/udp/udp_socket_libevent.h
@@ -61,7 +61,6 @@ class UDPSocketLibevent : 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.
@@ -141,7 +140,7 @@ class UDPSocketLibevent : public base::NonThreadSafe {
virtual void OnFileCanReadWithoutBlocking(int /* fd */) OVERRIDE {}
virtual void OnFileCanWriteWithoutBlocking(int /* fd */) OVERRIDE {
- if (socket_->old_write_callback_)
+ if (socket_->write_callback_)
socket_->DidCompleteWrite();
}
@@ -174,10 +173,6 @@ class UDPSocketLibevent : 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);
@@ -223,8 +218,7 @@ class UDPSocketLibevent : public base::NonThreadSafe {
CompletionCallback read_callback_;
// External callback; called when write is complete.
- OldCompletionCallback* old_write_callback_;
- CompletionCallback write_callback_;
+ OldCompletionCallback* write_callback_;
BoundNetLog net_log_;