summaryrefslogtreecommitdiffstats
path: root/net/socket/client_socket.cc
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-30 20:16:29 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-30 20:16:29 +0000
commit4dcdb14d4d5a69bed1dd9bbaa84389ef5a078737 (patch)
treea1de6c21540f352b8b24a2a7ca61886a71c74440 /net/socket/client_socket.cc
parentcd70bdff829e7587d889824841f808425772a29e (diff)
downloadchromium_src-4dcdb14d4d5a69bed1dd9bbaa84389ef5a078737.zip
chromium_src-4dcdb14d4d5a69bed1dd9bbaa84389ef5a078737.tar.gz
chromium_src-4dcdb14d4d5a69bed1dd9bbaa84389ef5a078737.tar.bz2
Define the GetPeerName method of the ClientSocket interface for all
platforms, in preparation for using SSLClientSocketNSS on Windows. nss_memio.c does not need to include <unistd.h> Fix style nits. R=eroman BUG=28744 TEST=none Review URL: http://codereview.chromium.org/440031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/client_socket.cc')
-rw-r--r--net/socket/client_socket.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/socket/client_socket.cc b/net/socket/client_socket.cc
index e01045be..a3f204a 100644
--- a/net/socket/client_socket.cc
+++ b/net/socket/client_socket.cc
@@ -9,14 +9,12 @@
namespace net {
-#if defined(OS_LINUX) || defined(OS_MACOSX)
-// Identical to posix system call getpeername().
+// Identical to BSD socket call getpeername().
// Needed by ssl_client_socket_nss and ssl_client_socket_mac.
-int ClientSocket::GetPeerName(struct sockaddr *name, socklen_t *namelen) {
+int ClientSocket::GetPeerName(struct sockaddr* name, socklen_t* namelen) {
// Default implementation just permits some unit tests to link.
NOTREACHED();
return ERR_UNEXPECTED;
}
-#endif
} // namespace net