Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1692)

Side by Side Diff: net/dns/dns_response.cc

Issue 8949026: Move net/base/sys_byteorder.h to base/sys_byteorder.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Once more, with feeling Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 DnsRecordParser::DnsRecordParser() : packet_(NULL), length_(0), cur_(0) { 16 DnsRecordParser::DnsRecordParser() : packet_(NULL), length_(0), cur_(0) {
17 } 17 }
18 18
19 DnsRecordParser::DnsRecordParser(const void* packet, 19 DnsRecordParser::DnsRecordParser(const void* packet,
20 size_t length, 20 size_t length,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 DnsRecordParser DnsResponse::Parser() const { 179 DnsRecordParser DnsResponse::Parser() const {
180 DCHECK(parser_.IsValid()); 180 DCHECK(parser_.IsValid());
181 return parser_; 181 return parser_;
182 } 182 }
183 183
184 const dns_protocol::Header* DnsResponse::header() const { 184 const dns_protocol::Header* DnsResponse::header() const {
185 return reinterpret_cast<const dns_protocol::Header*>(io_buffer_->data()); 185 return reinterpret_cast<const dns_protocol::Header*>(io_buffer_->data());
186 } 186 }
187 187
188 } // namespace net 188 } // namespace net
OLDNEW
« base/sys_byteorder.h ('K') | « net/dns/dns_query.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698