| 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 "net/dns/mdns_client_impl.h" | 5 #include "net/dns/mdns_client_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "base/time/clock.h" | 17 #include "base/time/clock.h" |
| 18 #include "base/time/default_clock.h" | 18 #include "base/time/default_clock.h" |
| 19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 20 #include "base/timer/timer.h" | 20 #include "base/timer/timer.h" |
| 21 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
| 22 #include "net/base/rand_callback.h" | 22 #include "net/base/rand_callback.h" |
| 23 #include "net/dns/dns_protocol.h" | 23 #include "net/dns/dns_protocol.h" |
| 24 #include "net/dns/dns_util.h" | 24 #include "net/dns/dns_util.h" |
| 25 #include "net/dns/record_rdata.h" | 25 #include "net/dns/record_rdata.h" |
| 26 #include "net/log/net_log.h" | |
| 27 #include "net/udp/datagram_socket.h" | 26 #include "net/udp/datagram_socket.h" |
| 28 | 27 |
| 29 // TODO(gene): Remove this temporary method of disabling NSEC support once it | 28 // TODO(gene): Remove this temporary method of disabling NSEC support once it |
| 30 // becomes clear whether this feature should be | 29 // becomes clear whether this feature should be |
| 31 // supported. http://crbug.com/255232 | 30 // supported. http://crbug.com/255232 |
| 32 #define ENABLE_NSEC | 31 #define ENABLE_NSEC |
| 33 | 32 |
| 34 namespace net { | 33 namespace net { |
| 35 | 34 |
| 36 namespace { | 35 namespace { |
| (...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 | 748 |
| 750 void MDnsTransactionImpl::OnNsecRecord(const std::string& name, unsigned type) { | 749 void MDnsTransactionImpl::OnNsecRecord(const std::string& name, unsigned type) { |
| 751 TriggerCallback(RESULT_NSEC, NULL); | 750 TriggerCallback(RESULT_NSEC, NULL); |
| 752 } | 751 } |
| 753 | 752 |
| 754 void MDnsTransactionImpl::OnCachePurged() { | 753 void MDnsTransactionImpl::OnCachePurged() { |
| 755 // TODO(noamsml): Cache purge situations not yet implemented | 754 // TODO(noamsml): Cache purge situations not yet implemented |
| 756 } | 755 } |
| 757 | 756 |
| 758 } // namespace net | 757 } // namespace net |
| OLD | NEW |