diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-01 20:38:10 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-01 20:38:10 +0000 |
commit | f1f3f0f8af3740ec2afaebcaed410950a9cc0ac8 (patch) | |
tree | 6ccdd87ccfc89adbcb372c517559fa61fbc6c6b2 /net/udp/udp_socket_libevent.h | |
parent | d1666539b57bf8552e203d355fd09909d36f9732 (diff) | |
download | chromium_src-f1f3f0f8af3740ec2afaebcaed410950a9cc0ac8.zip chromium_src-f1f3f0f8af3740ec2afaebcaed410950a9cc0ac8.tar.gz chromium_src-f1f3f0f8af3740ec2afaebcaed410950a9cc0ac8.tar.bz2 |
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
Diffstat (limited to 'net/udp/udp_socket_libevent.h')
-rw-r--r-- | net/udp/udp_socket_libevent.h | 14 |
1 files changed, 7 insertions, 7 deletions
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<IPEndPoint> 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_; |