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/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/utility/local_discovery/service_discovery_client_impl.h" | 11 #include "chrome/common/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 namespace { | 17 namespace { |
18 // TODO(noamsml): Make this configurable through the LocalDomainResolver | 18 // TODO(noamsml): Make this configurable through the LocalDomainResolver |
19 // interface. | 19 // interface. |
20 const int kLocalDomainSecondAddressTimeoutMs = 100; | 20 const int kLocalDomainSecondAddressTimeoutMs = 100; |
21 | 21 |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 } | 575 } |
576 | 576 |
577 void LocalDomainResolverImpl::SendResolvedAddresses() { | 577 void LocalDomainResolverImpl::SendResolvedAddresses() { |
578 transaction_a_.reset(); | 578 transaction_a_.reset(); |
579 transaction_aaaa_.reset(); | 579 transaction_aaaa_.reset(); |
580 timeout_callback_.Cancel(); | 580 timeout_callback_.Cancel(); |
581 callback_.Run(IsSuccess(), address_ipv4_, address_ipv6_); | 581 callback_.Run(IsSuccess(), address_ipv4_, address_ipv6_); |
582 } | 582 } |
583 | 583 |
584 } // namespace local_discovery | 584 } // namespace local_discovery |
OLD | NEW |