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

Unified Diff: net/curvecp/test_client.h

Issue 8824006: Migrate net/socket/socket.h, net/socket/stream_socket.h to base::Bind(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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 | « net/curvecp/server_packetizer.cc ('k') | net/curvecp/test_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/curvecp/test_client.h
diff --git a/net/curvecp/test_client.h b/net/curvecp/test_client.h
index 59a3d59db35fe087a5d3246e9f01a4060792f187..07ae3a6053708a8fa319bfc93daba8091c477c1b 100644
--- a/net/curvecp/test_client.h
+++ b/net/curvecp/test_client.h
@@ -35,7 +35,7 @@ class TestClient {
// Returns true if successful in starting the client.
bool Start(const HostPortPair& server,
int bytes_to_send,
- OldCompletionCallback* callback);
+ const CompletionCallback& callback);
// Returns the number of errors this server encountered.
int error_count() { return errors_; }
@@ -59,10 +59,7 @@ class TestClient {
int bytes_to_send_;
TestDataStream sent_stream_;
TestDataStream received_stream_;
- OldCompletionCallbackImpl<TestClient> connect_callback_;
- OldCompletionCallbackImpl<TestClient> read_callback_;
- OldCompletionCallbackImpl<TestClient> write_callback_;
- OldCompletionCallback* finished_callback_;
+ CompletionCallback finished_callback_;
};
} // namespace net
« no previous file with comments | « net/curvecp/server_packetizer.cc ('k') | net/curvecp/test_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698