Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(902)

Unified Diff: net/curvecp/messenger.h

Issue 8801005: base::Bind: Convert Socket::Read. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/curvecp/messenger.h
diff --git a/net/curvecp/messenger.h b/net/curvecp/messenger.h
index b6b2d6979db170ce4706e1741127f55fc8b8148d..bb67946a9bfc4fb4cab4dca934e273b45ec16f20 100644
--- a/net/curvecp/messenger.h
+++ b/net/curvecp/messenger.h
@@ -34,9 +34,10 @@ class Messenger : public base::NonThreadSafe,
virtual ~Messenger();
int Read(IOBuffer* buf, int buf_len, OldCompletionCallback* callback);
+ int Read(IOBuffer* buf, int buf_len, const CompletionCallback& callback);
int Write(IOBuffer* buf, int buf_len, OldCompletionCallback* callback);
- // Packetizer::Listener methods:
+ // Packetizer::Listener implementation.
virtual void OnConnection(ConnectionKey key) OVERRIDE;
virtual void OnClose(Packetizer* packetizer, ConnectionKey key);
virtual void OnMessage(Packetizer* packetizer,
@@ -76,7 +77,8 @@ class Messenger : public base::NonThreadSafe,
// The read_buffer is a list of pending data which has been unpacked from
// messages and is awaiting delivery to the application.
- OldCompletionCallback* receive_complete_callback_;
+ OldCompletionCallback* old_receive_complete_callback_;
+ CompletionCallback receive_complete_callback_;
scoped_refptr<IOBuffer> pending_receive_;
int pending_receive_length_;

Powered by Google App Engine
This is Rietveld 408576698