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

Side by Side Diff: net/curvecp/curvecp_client_socket.cc

Issue 8801005: base::Bind: Convert Socket::Read. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/curvecp/curvecp_client_socket.h ('k') | net/curvecp/curvecp_server_socket.h » ('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 #include "net/base/ip_endpoint.h" 5 #include "net/base/ip_endpoint.h"
6 #include "net/base/net_errors.h" 6 #include "net/base/net_errors.h"
7 #include "net/base/sys_addrinfo.h" 7 #include "net/base/sys_addrinfo.h"
8 #include "net/curvecp/curvecp_client_socket.h" 8 #include "net/curvecp/curvecp_client_socket.h"
9 #include "net/curvecp/messenger.h" 9 #include "net/curvecp/messenger.h"
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 base::TimeDelta CurveCPClientSocket::GetConnectTimeMicros() const { 99 base::TimeDelta CurveCPClientSocket::GetConnectTimeMicros() const {
100 return base::TimeDelta::FromMicroseconds(-1); 100 return base::TimeDelta::FromMicroseconds(-1);
101 } 101 }
102 102
103 int CurveCPClientSocket::Read(IOBuffer* buf, 103 int CurveCPClientSocket::Read(IOBuffer* buf,
104 int buf_len, 104 int buf_len,
105 OldCompletionCallback* callback) { 105 OldCompletionCallback* callback) {
106 return messenger_.Read(buf, buf_len, callback); 106 return messenger_.Read(buf, buf_len, callback);
107 } 107 }
108 int CurveCPClientSocket::Read(IOBuffer* buf,
109 int buf_len,
110 const CompletionCallback& callback) {
111 return messenger_.Read(buf, buf_len, callback);
112 }
108 113
109 int CurveCPClientSocket::Write(IOBuffer* buf, 114 int CurveCPClientSocket::Write(IOBuffer* buf,
110 int buf_len, 115 int buf_len,
111 OldCompletionCallback* callback) { 116 OldCompletionCallback* callback) {
112 return messenger_.Write(buf, buf_len, callback); 117 return messenger_.Write(buf, buf_len, callback);
113 } 118 }
114 119
115 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) { 120 bool CurveCPClientSocket::SetReceiveBufferSize(int32 size) {
116 return true; 121 return true;
117 } 122 }
118 123
119 bool CurveCPClientSocket::SetSendBufferSize(int32 size) { 124 bool CurveCPClientSocket::SetSendBufferSize(int32 size) {
120 return true; 125 return true;
121 } 126 }
122 127
123 } // namespace net 128 } // namespace net
OLDNEW
« no previous file with comments | « net/curvecp/curvecp_client_socket.h ('k') | net/curvecp/curvecp_server_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698