diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-12 00:47:37 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-12 00:47:37 +0000 |
commit | a540c2d2927d84f850bbe85c151e79965ae6e29b (patch) | |
tree | b78177428ba1f731794f7c85ee41275089c6bdbe /net/websockets/websocket_throttle.cc | |
parent | 707904a603fe25d4f9872a9c57244a5005cf7a16 (diff) | |
download | chromium_src-a540c2d2927d84f850bbe85c151e79965ae6e29b.zip chromium_src-a540c2d2927d84f850bbe85c151e79965ae6e29b.tar.gz chromium_src-a540c2d2927d84f850bbe85c151e79965ae6e29b.tar.bz2 |
Minor cleanup: add a sys_addrinfo.h header that hides the platform-specific includes needed for struct addrinfo / struct sockaddr, since we were duplicating that #if #else logic in a growing number of places.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/491038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/websockets/websocket_throttle.cc')
-rw-r--r-- | net/websockets/websocket_throttle.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/websockets/websocket_throttle.cc b/net/websockets/websocket_throttle.cc index db41248..8d0d1fb 100644 --- a/net/websockets/websocket_throttle.cc +++ b/net/websockets/websocket_throttle.cc @@ -4,12 +4,6 @@ #include "net/websockets/websocket_throttle.h" -#if defined(OS_WIN) -#include <ws2tcpip.h> -#else -#include <netdb.h> -#endif - #include <string> #include "base/message_loop.h" @@ -17,6 +11,7 @@ #include "base/singleton.h" #include "base/string_util.h" #include "net/base/io_buffer.h" +#include "net/base/sys_addrinfo.h" #include "net/socket_stream/socket_stream.h" namespace net { |