OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/dns/dns_response.h" | 5 #include "net/dns/dns_response.h" |
6 | 6 |
| 7 #include "base/sys_byteorder.h" |
7 #include "net/base/big_endian.h" | 8 #include "net/base/big_endian.h" |
8 #include "net/base/io_buffer.h" | 9 #include "net/base/io_buffer.h" |
9 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
10 #include "net/base/sys_byteorder.h" | |
11 #include "net/dns/dns_protocol.h" | 11 #include "net/dns/dns_protocol.h" |
12 #include "net/dns/dns_query.h" | 12 #include "net/dns/dns_query.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 DnsResourceRecord::DnsResourceRecord() { | 16 DnsResourceRecord::DnsResourceRecord() { |
17 } | 17 } |
18 | 18 |
19 DnsResourceRecord::~DnsResourceRecord() { | 19 DnsResourceRecord::~DnsResourceRecord() { |
20 } | 20 } |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 DnsRecordParser DnsResponse::Parser() const { | 185 DnsRecordParser DnsResponse::Parser() const { |
186 DCHECK(parser_.IsValid()); | 186 DCHECK(parser_.IsValid()); |
187 return parser_; | 187 return parser_; |
188 } | 188 } |
189 | 189 |
190 const dns_protocol::Header* DnsResponse::header() const { | 190 const dns_protocol::Header* DnsResponse::header() const { |
191 return reinterpret_cast<const dns_protocol::Header*>(io_buffer_->data()); | 191 return reinterpret_cast<const dns_protocol::Header*>(io_buffer_->data()); |
192 } | 192 } |
193 | 193 |
194 } // namespace net | 194 } // namespace net |
OLD | NEW |