| 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_DNS_HOST_RESOLVER_IMPL_H_ | 5 #ifndef NET_DNS_HOST_RESOLVER_IMPL_H_ |
| 6 #define NET_DNS_HOST_RESOLVER_IMPL_H_ | 6 #define NET_DNS_HOST_RESOLVER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 // https://crbug.com/696569 for further context. | 357 // https://crbug.com/696569 for further context. |
| 358 bool assume_ipv6_failure_on_wifi_; | 358 bool assume_ipv6_failure_on_wifi_; |
| 359 | 359 |
| 360 // True if DnsConfigService detected that system configuration depends on | 360 // True if DnsConfigService detected that system configuration depends on |
| 361 // local IPv6 connectivity. Disables probing. | 361 // local IPv6 connectivity. Disables probing. |
| 362 bool use_local_ipv6_; | 362 bool use_local_ipv6_; |
| 363 | 363 |
| 364 base::TimeTicks last_ipv6_probe_time_; | 364 base::TimeTicks last_ipv6_probe_time_; |
| 365 bool last_ipv6_probe_result_; | 365 bool last_ipv6_probe_result_; |
| 366 | 366 |
| 367 // True iff ProcTask has successfully resolved a hostname known to have IPv6 | |
| 368 // addresses using ADDRESS_FAMILY_UNSPECIFIED. Reset on IP address change. | |
| 369 bool resolved_known_ipv6_hostname_; | |
| 370 | |
| 371 // Any resolver flags that should be added to a request by default. | 367 // Any resolver flags that should be added to a request by default. |
| 372 HostResolverFlags additional_resolver_flags_; | 368 HostResolverFlags additional_resolver_flags_; |
| 373 | 369 |
| 374 // Allow fallback to ProcTask if DnsTask fails. | 370 // Allow fallback to ProcTask if DnsTask fails. |
| 375 bool fallback_to_proctask_; | 371 bool fallback_to_proctask_; |
| 376 | 372 |
| 377 // Task runner used for DNS lookups using the platform resolver, and other | 373 // Task runner used for DNS lookups using the platform resolver, and other |
| 378 // blocking operations. Usually just the WorkerPool's task runner for slow | 374 // blocking operations. Usually just the WorkerPool's task runner for slow |
| 379 // tasks, but can be overridden for tests. | 375 // tasks, but can be overridden for tests. |
| 380 scoped_refptr<base::TaskRunner> worker_task_runner_; | 376 scoped_refptr<base::TaskRunner> worker_task_runner_; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 401 // This function is only exposed so it can be unit-tested. | 397 // This function is only exposed so it can be unit-tested. |
| 402 // TODO(tfarina): It would be better to change the tests so this function | 398 // TODO(tfarina): It would be better to change the tests so this function |
| 403 // gets exercised indirectly through HostResolverImpl. | 399 // gets exercised indirectly through HostResolverImpl. |
| 404 NET_EXPORT_PRIVATE bool ResolveLocalHostname(base::StringPiece host, | 400 NET_EXPORT_PRIVATE bool ResolveLocalHostname(base::StringPiece host, |
| 405 uint16_t port, | 401 uint16_t port, |
| 406 AddressList* address_list); | 402 AddressList* address_list); |
| 407 | 403 |
| 408 } // namespace net | 404 } // namespace net |
| 409 | 405 |
| 410 #endif // NET_DNS_HOST_RESOLVER_IMPL_H_ | 406 #endif // NET_DNS_HOST_RESOLVER_IMPL_H_ |
| OLD | NEW |