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

Unified Diff: net/curvecp/client_packetizer.h

Issue 8801004: base::Bind: Convert StreamSocket::Connect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes 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
« no previous file with comments | « jingle/notifier/base/proxy_resolving_client_socket.cc ('k') | net/curvecp/client_packetizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/curvecp/client_packetizer.h
diff --git a/net/curvecp/client_packetizer.h b/net/curvecp/client_packetizer.h
index 4915bbe9924fd02fc0024a2b027bbfc8b36d67d7..f8edeafef156810fc385f78eebf6608a7ddd7a57 100644
--- a/net/curvecp/client_packetizer.h
+++ b/net/curvecp/client_packetizer.h
@@ -30,8 +30,11 @@ class ClientPacketizer : public Packetizer {
int Connect(const AddressList& server,
Packetizer::Listener* listener,
OldCompletionCallback* callback);
+ int Connect(const AddressList& server,
+ Packetizer::Listener* listener,
+ const CompletionCallback& callback);
- // Packetizer methods
+ // Packetizer implementation.
virtual int SendMessage(ConnectionKey key,
const char* data,
size_t length,
@@ -83,13 +86,14 @@ class ClientPacketizer : public Packetizer {
StateType next_state_;
scoped_ptr<UDPClientSocket> socket_;
Packetizer::Listener* listener_;
- OldCompletionCallback* user_callback_;
+ OldCompletionCallback* old_user_callback_;
+ CompletionCallback user_callback_;
AddressList addresses_;
const struct addrinfo* current_address_;
int hello_attempts_; // Number of attempts to send a Hello Packet.
- bool initiate_sent_; // Indicates whether the Initialte Packet was sent.
+ bool initiate_sent_; // Indicates whether the Initiate Packet was sent.
- scoped_refptr<IOBuffer> read_buffer_; // Buffer for interal reads.
+ scoped_refptr<IOBuffer> read_buffer_; // Buffer for internal reads.
uchar shortterm_public_key_[32];
« no previous file with comments | « jingle/notifier/base/proxy_resolving_client_socket.cc ('k') | net/curvecp/client_packetizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698