| Index: net/dns/dns_query.cc
|
| diff --git a/net/dns/dns_query.cc b/net/dns/dns_query.cc
|
| index 270757e7be9c9038cf165670f2e8686e9c91e3aa..530508a61de1b3f051e5f7139aeef16ca3cce0bd 100644
|
| --- a/net/dns/dns_query.cc
|
| +++ b/net/dns/dns_query.cc
|
| @@ -6,8 +6,8 @@
|
|
|
| #include <limits>
|
|
|
| +#include "base/big_endian.h"
|
| #include "base/sys_byteorder.h"
|
| -#include "net/base/big_endian.h"
|
| #include "net/base/dns_util.h"
|
| #include "net/base/io_buffer.h"
|
| #include "net/dns/dns_protocol.h"
|
| @@ -33,7 +33,8 @@ DnsQuery::DnsQuery(uint16 id, const base::StringPiece& qname, uint16 qtype)
|
| header->qdcount = base::HostToNet16(1);
|
|
|
| // Write question section after the header.
|
| - BigEndianWriter writer(reinterpret_cast<char*>(header + 1), question_size);
|
| + base::BigEndianWriter writer(reinterpret_cast<char*>(header + 1),
|
| + question_size);
|
| writer.WriteBytes(qname.data(), qname.size());
|
| writer.WriteU16(qtype);
|
| writer.WriteU16(dns_protocol::kClassIN);
|
| @@ -59,9 +60,8 @@ base::StringPiece DnsQuery::qname() const {
|
|
|
| uint16 DnsQuery::qtype() const {
|
| uint16 type;
|
| - ReadBigEndian<uint16>(io_buffer_->data() +
|
| - sizeof(dns_protocol::Header) +
|
| - qname_size_, &type);
|
| + base::ReadBigEndian<uint16>(
|
| + io_buffer_->data() + sizeof(dns_protocol::Header) + qname_size_, &type);
|
| return type;
|
| }
|
|
|
|
|