From f1f3f0f8af3740ec2afaebcaed410950a9cc0ac8 Mon Sep 17 00:00:00 2001 From: "willchan@chromium.org" Date: Sat, 1 Oct 2011 20:38:10 +0000 Subject: Begin CompletionCallback switchover. Rename CompletionCallback to OldCompletionCallback in preparation for introducing a new CompletionCallback based on base::Callback. Also renames other CompletionCallback types like CancelableCompletionCallback and TestCompletionCallback and CompletionCallbackImpl. All using sed with s/CompletionCallback/OldCompletionCallback/g. BUG=98719 TEST=none Review URL: http://codereview.chromium.org/8070013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103650 0039d316-1c4b-4281-b951-d872f2087c98 --- net/udp/udp_socket_libevent.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'net/udp/udp_socket_libevent.h') diff --git a/net/udp/udp_socket_libevent.h b/net/udp/udp_socket_libevent.h index a078150..d6a99b1 100644 --- a/net/udp/udp_socket_libevent.h +++ b/net/udp/udp_socket_libevent.h @@ -55,12 +55,12 @@ class UDPSocketLibevent : 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, CompletionCallback* callback); + int Read(IOBuffer* buf, int buf_len, OldCompletionCallback* 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, CompletionCallback* callback); + int Write(IOBuffer* buf, int buf_len, OldCompletionCallback* callback); // Read from a socket and receive sender address information. // |buf| is the buffer to read data into. @@ -78,7 +78,7 @@ class UDPSocketLibevent : public base::NonThreadSafe { int RecvFrom(IOBuffer* buf, int buf_len, IPEndPoint* address, - CompletionCallback* callback); + OldCompletionCallback* callback); // Send to a socket with a particular destination. // |buf| is the buffer to send @@ -92,7 +92,7 @@ class UDPSocketLibevent : public base::NonThreadSafe { int SendTo(IOBuffer* buf, int buf_len, const IPEndPoint& address, - CompletionCallback* callback); + OldCompletionCallback* callback); // Returns true if the socket is already connected or bound. bool is_connected() const { return socket_ != kInvalidSocket; } @@ -154,7 +154,7 @@ class UDPSocketLibevent : public base::NonThreadSafe { int SendToOrWrite(IOBuffer* buf, int buf_len, const IPEndPoint* address, - CompletionCallback* callback); + OldCompletionCallback* callback); int InternalRecvFrom(IOBuffer* buf, int buf_len, IPEndPoint* address); int InternalSendTo(IOBuffer* buf, int buf_len, const IPEndPoint* address); @@ -195,10 +195,10 @@ class UDPSocketLibevent : public base::NonThreadSafe { scoped_ptr send_to_address_; // External callback; called when read is complete. - CompletionCallback* read_callback_; + OldCompletionCallback* read_callback_; // External callback; called when write is complete. - CompletionCallback* write_callback_; + OldCompletionCallback* write_callback_; BoundNetLog net_log_; -- cgit v1.1