| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef NET_BASE_HOST_RESOLVER_IMPL_H_ | 5 #ifndef NET_BASE_HOST_RESOLVER_IMPL_H_ |
| 6 #define NET_BASE_HOST_RESOLVER_IMPL_H_ | 6 #define NET_BASE_HOST_RESOLVER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // run at once. This upper-bounds the total number of outstanding | 108 // run at once. This upper-bounds the total number of outstanding |
| 109 // DNS transactions (not counting retransmissions and retries). | 109 // DNS transactions (not counting retransmissions and retries). |
| 110 // | 110 // |
| 111 // |dns_config_service| will be used to detect changes to DNS configuration | 111 // |dns_config_service| will be used to detect changes to DNS configuration |
| 112 // and obtain DnsConfig for DnsClient. | 112 // and obtain DnsConfig for DnsClient. |
| 113 // | 113 // |
| 114 // |dns_client|, if set, will be used to resolve requests. | 114 // |dns_client|, if set, will be used to resolve requests. |
| 115 // | 115 // |
| 116 // |net_log| must remain valid for the life of the HostResolverImpl. | 116 // |net_log| must remain valid for the life of the HostResolverImpl. |
| 117 // TODO(szym): change to scoped_ptr<HostCache>. | 117 // TODO(szym): change to scoped_ptr<HostCache>. |
| 118 HostResolverImpl(HostCache* cache, | 118 HostResolverImpl(scoped_ptr<HostCache> cache, |
| 119 const PrioritizedDispatcher::Limits& job_limits, | 119 const PrioritizedDispatcher::Limits& job_limits, |
| 120 const ProcTaskParams& proc_params, | 120 const ProcTaskParams& proc_params, |
| 121 scoped_ptr<DnsClient> dns_client, | 121 scoped_ptr<DnsClient> dns_client, |
| 122 NetLog* net_log); | 122 NetLog* net_log); |
| 123 | 123 |
| 124 // If any completion callbacks are pending when the resolver is destroyed, | 124 // If any completion callbacks are pending when the resolver is destroyed, |
| 125 // the host resolutions are cancelled, and the completion callbacks will not | 125 // the host resolutions are cancelled, and the completion callbacks will not |
| 126 // be called. | 126 // be called. |
| 127 virtual ~HostResolverImpl(); | 127 virtual ~HostResolverImpl(); |
| 128 | 128 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 HostResolverFlags additional_resolver_flags_; | 266 HostResolverFlags additional_resolver_flags_; |
| 267 | 267 |
| 268 NetLog* net_log_; | 268 NetLog* net_log_; |
| 269 | 269 |
| 270 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); | 270 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); |
| 271 }; | 271 }; |
| 272 | 272 |
| 273 } // namespace net | 273 } // namespace net |
| 274 | 274 |
| 275 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ | 275 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ |
| OLD | NEW |