summaryrefslogtreecommitdiffstats
path: root/net/base/client_socket_factory.cc
diff options
context:
space:
mode:
authorpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-25 19:47:30 +0000
committerpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-25 19:47:30 +0000
commit68bf915b57f9e781622c433f8795153cca8b5b9e (patch)
tree9951f7fa93ba72213f2057e82b13f84248f904b6 /net/base/client_socket_factory.cc
parentec9a68914f38540671f2d1ea1b3d8e10e29e50c6 (diff)
downloadchromium_src-68bf915b57f9e781622c433f8795153cca8b5b9e.zip
chromium_src-68bf915b57f9e781622c433f8795153cca8b5b9e.tar.gz
chromium_src-68bf915b57f9e781622c433f8795153cca8b5b9e.tar.bz2
add http layer and unit tests to mac build. stub out file uploading in upload_data_stream until we have a common file wrapper.
Review URL: http://codereview.chromium.org/4090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/client_socket_factory.cc')
-rw-r--r--net/base/client_socket_factory.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/base/client_socket_factory.cc b/net/base/client_socket_factory.cc
index 1701970..fb5c182 100644
--- a/net/base/client_socket_factory.cc
+++ b/net/base/client_socket_factory.cc
@@ -5,7 +5,10 @@
#include "net/base/client_socket_factory.h"
#include "base/singleton.h"
+#include "build/build_config.h"
+#if defined(OS_WIN)
#include "net/base/ssl_client_socket.h"
+#endif
#include "net/base/tcp_client_socket.h"
namespace net {
@@ -20,7 +23,13 @@ class DefaultClientSocketFactory : public ClientSocketFactory {
virtual ClientSocket* CreateSSLClientSocket(
ClientSocket* transport_socket,
const std::string& hostname) {
+#if defined(OS_WIN)
return new SSLClientSocket(transport_socket, hostname);
+#else
+ // TODO(pinkerton): turn on when we port SSL socket from win32
+ NOTIMPLEMENTED();
+ return NULL;
+#endif
}
};