OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <utility> | 5 #include <utility> |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "chrome/browser/local_discovery/service_discovery_client_impl.h" | 11 #include "chrome/browser/local_discovery/service_discovery_client_impl.h" |
12 #include "net/dns/dns_protocol.h" | 12 #include "net/dns/dns_protocol.h" |
13 #include "net/dns/record_rdata.h" | 13 #include "net/dns/record_rdata.h" |
14 | 14 |
15 namespace local_discovery { | 15 namespace local_discovery { |
16 | 16 |
17 ServiceDiscoveryClientImpl::ServiceDiscoveryClientImpl() { | 17 ServiceDiscoveryClientImpl::ServiceDiscoveryClientImpl() { |
18 } | 18 } |
19 | 19 |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 377 |
378 const net::IPAddressNumber& ServiceResolverImpl::RecordToIPAddress( | 378 const net::IPAddressNumber& ServiceResolverImpl::RecordToIPAddress( |
379 const net::RecordParsed* record) const { | 379 const net::RecordParsed* record) const { |
380 DCHECK(record->type() == net::dns_protocol::kTypeA); | 380 DCHECK(record->type() == net::dns_protocol::kTypeA); |
381 const net::ARecordRdata* a_rdata = record->rdata<net::ARecordRdata>(); | 381 const net::ARecordRdata* a_rdata = record->rdata<net::ARecordRdata>(); |
382 DCHECK(a_rdata); | 382 DCHECK(a_rdata); |
383 return a_rdata->address(); | 383 return a_rdata->address(); |
384 } | 384 } |
385 | 385 |
386 } // namespace local_discovery | 386 } // namespace local_discovery |
OLD | NEW |