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

Side by Side Diff: net/socket/socks_client_socket.h

Issue 8831001: base::Bind: Convert Socket::Write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix alignment. 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/socket/socks5_client_socket.cc ('k') | net/socket/socks_client_socket.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_SOCKET_SOCKS_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Socket implementation. 64 // Socket implementation.
65 virtual int Read(IOBuffer* buf, 65 virtual int Read(IOBuffer* buf,
66 int buf_len, 66 int buf_len,
67 OldCompletionCallback* callback) OVERRIDE; 67 OldCompletionCallback* callback) OVERRIDE;
68 virtual int Read(IOBuffer* buf, 68 virtual int Read(IOBuffer* buf,
69 int buf_len, 69 int buf_len,
70 const CompletionCallback& callback) OVERRIDE; 70 const CompletionCallback& callback) OVERRIDE;
71 virtual int Write(IOBuffer* buf, 71 virtual int Write(IOBuffer* buf,
72 int buf_len, 72 int buf_len,
73 OldCompletionCallback* callback) OVERRIDE; 73 OldCompletionCallback* callback) OVERRIDE;
74 virtual int Write(IOBuffer* buf,
75 int buf_len,
76 const CompletionCallback& callback) OVERRIDE;
74 77
75 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 78 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
76 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 79 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
77 80
78 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; 81 virtual int GetPeerAddress(AddressList* address) const OVERRIDE;
79 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 82 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
80 83
81 private: 84 private:
82 FRIEND_TEST_ALL_PREFIXES(SOCKSClientSocketTest, CompleteHandshake); 85 FRIEND_TEST_ALL_PREFIXES(SOCKSClientSocketTest, CompleteHandshake);
83 FRIEND_TEST_ALL_PREFIXES(SOCKSClientSocketTest, SOCKS4AFailedDNS); 86 FRIEND_TEST_ALL_PREFIXES(SOCKSClientSocketTest, SOCKS4AFailedDNS);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 HostResolver::RequestInfo host_request_info_; 143 HostResolver::RequestInfo host_request_info_;
141 144
142 BoundNetLog net_log_; 145 BoundNetLog net_log_;
143 146
144 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); 147 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket);
145 }; 148 };
146 149
147 } // namespace net 150 } // namespace net
148 151
149 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 152 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/socks5_client_socket.cc ('k') | net/socket/socks_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698