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

Side by Side Diff: net/udp/udp_client_socket.cc

Issue 8889036: Revert 113699 - base::Bind: Convert Socket::Write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/udp/udp_client_socket.h ('k') | net/udp/udp_socket_libevent.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/udp/udp_client_socket.h" 5 #include "net/udp/udp_client_socket.h"
6 6
7 #include "net/base/net_log.h" 7 #include "net/base/net_log.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 20 matching lines...) Expand all
31 int buf_len, 31 int buf_len,
32 const CompletionCallback& callback) { 32 const CompletionCallback& callback) {
33 return socket_.Read(buf, buf_len, callback); 33 return socket_.Read(buf, buf_len, callback);
34 } 34 }
35 35
36 int UDPClientSocket::Write(IOBuffer* buf, 36 int UDPClientSocket::Write(IOBuffer* buf,
37 int buf_len, 37 int buf_len,
38 OldCompletionCallback* callback) { 38 OldCompletionCallback* callback) {
39 return socket_.Write(buf, buf_len, callback); 39 return socket_.Write(buf, buf_len, callback);
40 } 40 }
41 int UDPClientSocket::Write(IOBuffer* buf,
42 int buf_len,
43 const CompletionCallback& callback) {
44 return socket_.Write(buf, buf_len, callback);
45 }
46 41
47 void UDPClientSocket::Close() { 42 void UDPClientSocket::Close() {
48 socket_.Close(); 43 socket_.Close();
49 } 44 }
50 45
51 int UDPClientSocket::GetPeerAddress(IPEndPoint* address) const { 46 int UDPClientSocket::GetPeerAddress(IPEndPoint* address) const {
52 return socket_.GetPeerAddress(address); 47 return socket_.GetPeerAddress(address);
53 } 48 }
54 49
55 int UDPClientSocket::GetLocalAddress(IPEndPoint* address) const { 50 int UDPClientSocket::GetLocalAddress(IPEndPoint* address) const {
56 return socket_.GetLocalAddress(address); 51 return socket_.GetLocalAddress(address);
57 } 52 }
58 53
59 bool UDPClientSocket::SetReceiveBufferSize(int32 size) { 54 bool UDPClientSocket::SetReceiveBufferSize(int32 size) {
60 return socket_.SetReceiveBufferSize(size); 55 return socket_.SetReceiveBufferSize(size);
61 } 56 }
62 57
63 bool UDPClientSocket::SetSendBufferSize(int32 size) { 58 bool UDPClientSocket::SetSendBufferSize(int32 size) {
64 return socket_.SetSendBufferSize(size); 59 return socket_.SetSendBufferSize(size);
65 } 60 }
66 61
67 const BoundNetLog& UDPClientSocket::NetLog() const { 62 const BoundNetLog& UDPClientSocket::NetLog() const {
68 return socket_.NetLog(); 63 return socket_.NetLog();
69 } 64 }
70 65
71 } // namespace net 66 } // namespace net
OLDNEW
« no previous file with comments | « net/udp/udp_client_socket.h ('k') | net/udp/udp_socket_libevent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698