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

Unified Diff: net/socket/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/proxy/proxy_resolver_js_bindings_unittest.cc ('k') | net/socket/client_socket_pool_base_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/client_socket.h
diff --git a/net/socket/client_socket.h b/net/socket/client_socket.h
index 28c7b4df602d1a946fa5f7565f7d48d05b72d81e..e696554d63ab0d47523e1bbea952fc2d59c4e09b 100644
--- a/net/socket/client_socket.h
+++ b/net/socket/client_socket.h
@@ -5,20 +5,11 @@
#ifndef NET_SOCKET_CLIENT_SOCKET_H_
#define NET_SOCKET_CLIENT_SOCKET_H_
-#include "build/build_config.h"
-
-// For struct sockaddr and socklen_t.
-#if defined(OS_POSIX)
-#include <sys/types.h>
-#include <sys/socket.h>
-#elif defined(OS_WIN)
-#include <ws2tcpip.h>
-#endif
-
#include "net/socket/socket.h"
namespace net {
+class AddressList;
class LoadLog;
class ClientSocket : public Socket {
@@ -57,9 +48,8 @@ class ClientSocket : public Socket {
// have been received.
virtual bool IsConnectedAndIdle() const = 0;
- // Identical to BSD socket call getpeername().
- // Needed by ssl_client_socket_nss and ssl_client_socket_mac.
- virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen) = 0;
+ // Copies the peer address to |address| and returns a network error code.
+ virtual int GetPeerAddress(AddressList* address) const = 0;
};
} // namespace net
« no previous file with comments | « net/proxy/proxy_resolver_js_bindings_unittest.cc ('k') | net/socket/client_socket_pool_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698