summaryrefslogtreecommitdiffstats
path: root/net/base/client_socket.h
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 19:47:21 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-18 19:47:21 +0000
commit319d9e6f29cc2d27c0f72ce701d905d2402c350a (patch)
tree5d637ba43b9aeed5c925e694e50aa251230c0b92 /net/base/client_socket.h
parent22f21125f11953e1022f5e75e560c1af9484503e (diff)
downloadchromium_src-319d9e6f29cc2d27c0f72ce701d905d2402c350a.zip
chromium_src-319d9e6f29cc2d27c0f72ce701d905d2402c350a.tar.gz
chromium_src-319d9e6f29cc2d27c0f72ce701d905d2402c350a.tar.bz2
Reduce the amount of included header files. Vast change like in "Oh God! This revision changes half of the source files!".
Review URL: http://codereview.chromium.org/20378 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/client_socket.h')
-rw-r--r--net/base/client_socket.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/base/client_socket.h b/net/base/client_socket.h
index 97495dd..b96f07b 100644
--- a/net/base/client_socket.h
+++ b/net/base/client_socket.h
@@ -5,9 +5,13 @@
#ifndef NET_BASE_CLIENT_SOCKET_H_
#define NET_BASE_CLIENT_SOCKET_H_
-#include "base/logging.h"
+#include "build/build_config.h"
+
+#if defined(OS_LINUX)
+#include <sys/socket.h>
+#endif
+
#include "net/base/socket.h"
-#include "net/base/net_errors.h"
namespace net {
@@ -46,11 +50,7 @@ class ClientSocket : public Socket {
#if defined(OS_LINUX)
// Identical to posix system call getpeername().
// Needed by ssl_client_socket_nss.
- virtual int GetPeerName(struct sockaddr *name, socklen_t *namelen) {
- // Default implementation just permits some unit tests to link.
- NOTREACHED();
- return ERR_UNEXPECTED;
- }
+ virtual int GetPeerName(struct sockaddr *name, socklen_t *namelen);
#endif
};