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

Side by Side Diff: net/curvecp/test_server.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/curvecp/test_client.cc ('k') | net/curvecp/test_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_CURVECP_TEST_SERVER_H_ 5 #ifndef NET_CURVECP_TEST_SERVER_H_
6 #define NET_CURVECP_TEST_SERVER_H_ 6 #define NET_CURVECP_TEST_SERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 void ReadData(); 60 void ReadData();
61 61
62 private: 62 private:
63 static const int kMaxMessage = 1024; 63 static const int kMaxMessage = 1024;
64 CurveCPServerSocket* socket_; 64 CurveCPServerSocket* socket_;
65 scoped_refptr<IOBuffer> read_buffer_; 65 scoped_refptr<IOBuffer> read_buffer_;
66 scoped_refptr<DrainableIOBuffer> write_buffer_; 66 scoped_refptr<DrainableIOBuffer> write_buffer_;
67 TestDataStream received_stream_; 67 TestDataStream received_stream_;
68 int bytes_received_; 68 int bytes_received_;
69 OldCompletionCallbackImpl<EchoServer> read_callback_;
70 OldCompletionCallbackImpl<EchoServer> write_callback_;
71 }; 69 };
72 70
73 } // namespace net 71 } // namespace net
74 72
75 #endif // NET_CURVECP_TEST_SERVER_H_ 73 #endif // NET_CURVECP_TEST_SERVER_H_
OLDNEW
« no previous file with comments | « net/curvecp/test_client.cc ('k') | net/curvecp/test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698