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

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

Issue 598071: Really connect to the same server in FTP network transaction. (Closed)
Patch Set: updates Created 10 years, 10 months 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
« 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual bool IsConnected() const; 45 virtual bool IsConnected() const;
46 virtual bool IsConnectedAndIdle() const; 46 virtual bool IsConnectedAndIdle() const;
47 47
48 // Socket methods: 48 // Socket methods:
49 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 49 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
50 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 50 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
51 51
52 virtual bool SetReceiveBufferSize(int32 size); 52 virtual bool SetReceiveBufferSize(int32 size);
53 virtual bool SetSendBufferSize(int32 size); 53 virtual bool SetSendBufferSize(int32 size);
54 54
55 virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen); 55 virtual int GetPeerAddress(AddressList* address) const;
56 56
57 private: 57 private:
58 FRIEND_TEST(SOCKSClientSocketTest, CompleteHandshake); 58 FRIEND_TEST(SOCKSClientSocketTest, CompleteHandshake);
59 FRIEND_TEST(SOCKSClientSocketTest, SOCKS4AFailedDNS); 59 FRIEND_TEST(SOCKSClientSocketTest, SOCKS4AFailedDNS);
60 FRIEND_TEST(SOCKSClientSocketTest, SOCKS4AIfDomainInIPv6); 60 FRIEND_TEST(SOCKSClientSocketTest, SOCKS4AIfDomainInIPv6);
61 61
62 enum State { 62 enum State {
63 STATE_RESOLVE_HOST, 63 STATE_RESOLVE_HOST,
64 STATE_RESOLVE_HOST_COMPLETE, 64 STATE_RESOLVE_HOST_COMPLETE,
65 STATE_HANDSHAKE_WRITE, 65 STATE_HANDSHAKE_WRITE,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 HostResolver::RequestInfo host_request_info_; 126 HostResolver::RequestInfo host_request_info_;
127 127
128 scoped_refptr<LoadLog> load_log_; 128 scoped_refptr<LoadLog> load_log_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); 130 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket);
131 }; 131 };
132 132
133 } // namespace net 133 } // namespace net
134 134
135 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 135 #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