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

Unified Diff: net/base/client_socket.h

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
Index: net/base/client_socket.h
===================================================================
--- net/base/client_socket.h (revision 9942)
+++ net/base/client_socket.h (working copy)
@@ -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 @@
#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
};

Powered by Google App Engine
This is Rietveld 408576698