OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/mojo_host_resolver_impl.h" | 5 #include "net/dns/mojo_host_resolver_impl.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
9 #include "net/base/address_list.h" | 8 #include "net/base/address_list.h" |
10 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
11 #include "net/dns/host_resolver.h" | 10 #include "net/dns/host_resolver.h" |
12 #include "net/dns/mojo_host_type_converters.h" | 11 #include "net/dns/mojo_host_type_converters.h" |
13 | 12 |
14 namespace net { | 13 namespace net { |
15 | 14 |
16 // Handles host resolution for a single request and sends a response when done. | 15 // Handles host resolution for a single request and sends a response when done. |
17 // Also detects connection errors for HostResolverRequestClient and cancels the | 16 // Also detects connection errors for HostResolverRequestClient and cancels the |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 void MojoHostResolverImpl::Job::OnConnectionError() { | 125 void MojoHostResolverImpl::Job::OnConnectionError() { |
127 DCHECK(thread_checker_.CalledOnValidThread()); | 126 DCHECK(thread_checker_.CalledOnValidThread()); |
128 // |resolver_service_| should always outlive us. | 127 // |resolver_service_| should always outlive us. |
129 DCHECK(resolver_service_); | 128 DCHECK(resolver_service_); |
130 DVLOG(1) << "Connection error on request for " | 129 DVLOG(1) << "Connection error on request for " |
131 << request_info_.host_port_pair().ToString(); | 130 << request_info_.host_port_pair().ToString(); |
132 resolver_service_->DeleteJob(this); | 131 resolver_service_->DeleteJob(this); |
133 } | 132 } |
134 | 133 |
135 } // namespace net | 134 } // namespace net |
OLD | NEW |