| 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/host_resolver_mojo.h" |    5 #include "net/dns/host_resolver_mojo.h" | 
|    6  |    6  | 
|    7 #include <utility> |    7 #include <utility> | 
|    8  |    8  | 
|    9 #include "base/callback_helpers.h" |    9 #include "base/callback_helpers.h" | 
 |   10 #include "base/memory/ptr_util.h" | 
|   10 #include "mojo/public/cpp/bindings/binding.h" |   11 #include "mojo/public/cpp/bindings/binding.h" | 
|   11 #include "net/base/address_list.h" |   12 #include "net/base/address_list.h" | 
|   12 #include "net/base/net_errors.h" |   13 #include "net/base/net_errors.h" | 
|   13  |   14  | 
|   14 namespace net { |   15 namespace net { | 
|   15 namespace { |   16 namespace { | 
|   16  |   17  | 
|   17 // Default TTL for successful host resolutions. |   18 // Default TTL for successful host resolutions. | 
|   18 const int kCacheEntryTTLSeconds = 5; |   19 const int kCacheEntryTTLSeconds = 5; | 
|   19  |   20  | 
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  153   if (binding_.is_bound()) |  154   if (binding_.is_bound()) | 
|  154     binding_.Close(); |  155     binding_.Close(); | 
|  155   base::ResetAndReturn(&callback_).Run(error); |  156   base::ResetAndReturn(&callback_).Run(error); | 
|  156 } |  157 } | 
|  157  |  158  | 
|  158 void HostResolverMojo::Job::OnConnectionError() { |  159 void HostResolverMojo::Job::OnConnectionError() { | 
|  159   ReportResult(ERR_FAILED, AddressList()); |  160   ReportResult(ERR_FAILED, AddressList()); | 
|  160 } |  161 } | 
|  161  |  162  | 
|  162 }  // namespace net |  163 }  // namespace net | 
| OLD | NEW |