diff options
| author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 17:54:42 +0000 |
|---|---|---|
| committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 17:54:42 +0000 |
| commit | 521aebb9c3a9a8dc3df9f5e6f96ab3bb8872281e (patch) | |
| tree | 4347a53f93a19613ed0760b79c60698e1c0d755e /net/spdy | |
| parent | 4451b50281e9156c5db058777c8746a11a906049 (diff) | |
| download | chromium_src-521aebb9c3a9a8dc3df9f5e6f96ab3bb8872281e.zip chromium_src-521aebb9c3a9a8dc3df9f5e6f96ab3bb8872281e.tar.gz chromium_src-521aebb9c3a9a8dc3df9f5e6f96ab3bb8872281e.tar.bz2 | |
Add net/base/sys_byteorder.h
TEST=compiles
BUG=None
Review URL: http://codereview.chromium.org/6870021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81966 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy')
| -rw-r--r-- | net/spdy/spdy_frame_builder.h | 7 | ||||
| -rw-r--r-- | net/spdy/spdy_framer.h | 6 | ||||
| -rw-r--r-- | net/spdy/spdy_protocol.h | 7 |
3 files changed, 3 insertions, 17 deletions
diff --git a/net/spdy/spdy_frame_builder.h b/net/spdy/spdy_frame_builder.h index 36a3f53..df2f16d 100644 --- a/net/spdy/spdy_frame_builder.h +++ b/net/spdy/spdy_frame_builder.h @@ -6,15 +6,10 @@ #define NET_SPDY_SPDY_FRAME_BUILDER_H_ #pragma once -#ifdef WIN32 -#include <winsock2.h> // for htonl() functions -#else -#include <arpa/inet.h> -#endif - #include <string> #include "base/basictypes.h" +#include "net/base/sys_byteorder.h" #include "net/spdy/spdy_protocol.h" namespace spdy { diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h index 688c611..332a47f 100644 --- a/net/spdy/spdy_framer.h +++ b/net/spdy/spdy_framer.h @@ -6,11 +6,6 @@ #define NET_SPDY_SPDY_FRAMER_H_ #pragma once -#ifdef _WIN32 -#include <winsock2.h> -#else -#include <arpa/inet.h> -#endif #include <list> #include <map> #include <string> @@ -19,6 +14,7 @@ #include "base/basictypes.h" #include "base/gtest_prod_util.h" #include "base/memory/scoped_ptr.h" +#include "net/base/sys_byteorder.h" #include "net/spdy/spdy_protocol.h" typedef struct z_stream_s z_stream; // Forward declaration for zlib. diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h index 2389152..aa28b3c 100644 --- a/net/spdy/spdy_protocol.h +++ b/net/spdy/spdy_protocol.h @@ -8,16 +8,11 @@ #define NET_SPDY_SPDY_PROTOCOL_H_ #pragma once -#ifdef WIN32 -#include <winsock2.h> -#else -#include <arpa/inet.h> -#endif - #include <limits> #include "base/basictypes.h" #include "base/logging.h" +#include "net/base/sys_byteorder.h" #include "net/spdy/spdy_bitmasks.h" // Data Frame Format |
