summaryrefslogtreecommitdiffstats
path: root/net/socket/client_socket.h
diff options
context:
space:
mode:
authorhawk@chromium.org <hawk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-03 23:05:48 +0000
committerhawk@chromium.org <hawk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-03 23:05:48 +0000
commit13f5578f84833b2dda9d2539b234d13e0712893d (patch)
treebbd4356bd68e6693583d6415ca5439255fbf3dc5 /net/socket/client_socket.h
parentaee6bbf90e2fb86525ef26134263699acc19152b (diff)
downloadchromium_src-13f5578f84833b2dda9d2539b234d13e0712893d.zip
chromium_src-13f5578f84833b2dda9d2539b234d13e0712893d.tar.gz
chromium_src-13f5578f84833b2dda9d2539b234d13e0712893d.tar.bz2
Enable SSL session resumption for Mac OS X.
BUG=19049 TEST=https sites perform identically under Mac OS X <= 10.5.6 and Mac OS X >= 10.5.7 (in particular, https://test-ssev.verisign.com/ and the three pages linked from there) Review URL: http://codereview.chromium.org/177014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/client_socket.h')
-rw-r--r--net/socket/client_socket.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/socket/client_socket.h b/net/socket/client_socket.h
index d406fc7..6594f33 100644
--- a/net/socket/client_socket.h
+++ b/net/socket/client_socket.h
@@ -7,7 +7,7 @@
#include "build/build_config.h"
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_MACOSX)
#include <sys/socket.h>
#endif
@@ -51,9 +51,9 @@ class ClientSocket : public Socket {
// have been received.
virtual bool IsConnectedAndIdle() const = 0;
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_MACOSX)
// Identical to posix system call getpeername().
- // Needed by ssl_client_socket_nss.
+ // Needed by ssl_client_socket_nss and ssl_client_socket_mac.
virtual int GetPeerName(struct sockaddr *name, socklen_t *namelen);
#endif
};