OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // Set address family, and disable IPv6 probe support. | 92 // Set address family, and disable IPv6 probe support. |
93 virtual void SetDefaultAddressFamily(AddressFamily address_family); | 93 virtual void SetDefaultAddressFamily(AddressFamily address_family); |
94 | 94 |
95 // Continuously observe whether IPv6 is supported, and set the allowable | 95 // Continuously observe whether IPv6 is supported, and set the allowable |
96 // address family to IPv4 iff IPv6 is not supported. | 96 // address family to IPv4 iff IPv6 is not supported. |
97 void ProbeIPv6Support(); | 97 void ProbeIPv6Support(); |
98 | 98 |
99 virtual HostResolverImpl* GetAsHostResolverImpl() { return this; } | 99 virtual HostResolverImpl* GetAsHostResolverImpl() { return this; } |
100 | 100 |
101 // TODO(eroman): hack for http://crbug.com/15513 | 101 // TODO(eroman): hack for http://crbug.com/15513 |
102 virtual void Shutdown(); | 102 void Shutdown(); |
103 | 103 |
104 // Returns the cache this resolver uses, or NULL if caching is disabled. | 104 // Returns the cache this resolver uses, or NULL if caching is disabled. |
105 HostCache* cache() { return cache_.get(); } | 105 HostCache* cache() { return cache_.get(); } |
106 | 106 |
107 // Applies a set of constraints for requests that belong to the specified | 107 // Applies a set of constraints for requests that belong to the specified |
108 // pool. NOTE: Don't call this after requests have been already been started. | 108 // pool. NOTE: Don't call this after requests have been already been started. |
109 // | 109 // |
110 // |pool_index| -- Specifies which pool these constraints should be applied | 110 // |pool_index| -- Specifies which pool these constraints should be applied |
111 // to. | 111 // to. |
112 // |max_outstanding_jobs| -- How many concurrent jobs are allowed for this | 112 // |max_outstanding_jobs| -- How many concurrent jobs are allowed for this |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 251 |
252 // The last un-cancelled IPv6ProbeJob (if any). | 252 // The last un-cancelled IPv6ProbeJob (if any). |
253 scoped_refptr<IPv6ProbeJob> ipv6_probe_job_; | 253 scoped_refptr<IPv6ProbeJob> ipv6_probe_job_; |
254 | 254 |
255 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); | 255 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); |
256 }; | 256 }; |
257 | 257 |
258 } // namespace net | 258 } // namespace net |
259 | 259 |
260 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ | 260 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ |
OLD | NEW |