summaryrefslogtreecommitdiffstats
path: root/net/curvecp/test_server.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-01 20:38:10 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-01 20:38:10 +0000
commitf1f3f0f8af3740ec2afaebcaed410950a9cc0ac8 (patch)
tree6ccdd87ccfc89adbcb372c517559fa61fbc6c6b2 /net/curvecp/test_server.h
parentd1666539b57bf8552e203d355fd09909d36f9732 (diff)
downloadchromium_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/curvecp/test_server.h')
-rw-r--r--net/curvecp/test_server.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/curvecp/test_server.h b/net/curvecp/test_server.h
index a941401..3ece594 100644
--- a/net/curvecp/test_server.h
+++ b/net/curvecp/test_server.h
@@ -19,7 +19,7 @@ class IOBuffer;
// TestServer is the server which processes the listen socket.
// It will create an EchoServer instance to handle each connection.
-class TestServer : public CompletionCallback,
+class TestServer : public OldCompletionCallback,
public CurveCPServerSocket::Acceptor {
public:
TestServer();
@@ -27,7 +27,7 @@ class TestServer : public CompletionCallback,
bool Start(int port);
- // CompletionCallback methods:
+ // OldCompletionCallback methods:
virtual void RunWithParams(const Tuple1<int>& params);
// CurveCPServerSocket::Acceptor methods:
@@ -65,8 +65,8 @@ class EchoServer {
scoped_refptr<DrainableIOBuffer> write_buffer_;
TestDataStream received_stream_;
int bytes_received_;
- CompletionCallbackImpl<EchoServer> read_callback_;
- CompletionCallbackImpl<EchoServer> write_callback_;
+ OldCompletionCallbackImpl<EchoServer> read_callback_;
+ OldCompletionCallbackImpl<EchoServer> write_callback_;
};
} // namespace net