Index: net/spdy/spdy_frame_builder.h |
diff --git a/net/spdy/spdy_frame_builder.h b/net/spdy/spdy_frame_builder.h |
index 2cecd65b50e6a8392cc064d09c414f1489f5b42f..a91659ea89d8c876f1fd3d7cc6b363246bb511ee 100644 |
--- a/net/spdy/spdy_frame_builder.h |
+++ b/net/spdy/spdy_frame_builder.h |
@@ -92,21 +92,21 @@ class NET_EXPORT_PRIVATE SpdyFrameBuilder { |
return WriteBytes(&value, sizeof(value)); |
} |
bool WriteUInt16(uint16 value) { |
- value = htons(value); |
+ value = base::HostToNet16(value); |
return WriteBytes(&value, sizeof(value)); |
} |
bool WriteUInt24(uint32 value) { |
- value = htonl(value); |
+ value = base::HostToNet32(value); |
return WriteBytes(reinterpret_cast<char*>(&value) + 1, |
sizeof(value) - 1); |
} |
bool WriteUInt32(uint32 value) { |
- value = htonl(value); |
+ value = base::HostToNet32(value); |
return WriteBytes(&value, sizeof(value)); |
} |
bool WriteUInt64(uint64 value) { |
- uint32 upper = htonl(value >> 32); |
- uint32 lower = htonl(static_cast<uint32>(value)); |
+ uint32 upper = base::HostToNet32(static_cast<uint32>(value >> 32)); |
+ uint32 lower = base::HostToNet32(static_cast<uint32>(value)); |
return (WriteBytes(&upper, sizeof(upper)) && |
WriteBytes(&lower, sizeof(lower))); |
} |