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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 virtual void RemoveObserver(HostResolver::Observer* observer); | 98 virtual void RemoveObserver(HostResolver::Observer* observer); |
99 | 99 |
100 // Set address family, and disable IPv6 probe support. | 100 // Set address family, and disable IPv6 probe support. |
101 virtual void SetDefaultAddressFamily(AddressFamily address_family); | 101 virtual void SetDefaultAddressFamily(AddressFamily address_family); |
102 virtual AddressFamily GetDefaultAddressFamily() const; | 102 virtual AddressFamily GetDefaultAddressFamily() const; |
103 | 103 |
104 // Continuously observe whether IPv6 is supported, and set the allowable | 104 // Continuously observe whether IPv6 is supported, and set the allowable |
105 // address family to IPv4 iff IPv6 is not supported. | 105 // address family to IPv4 iff IPv6 is not supported. |
106 void ProbeIPv6Support(); | 106 void ProbeIPv6Support(); |
107 | 107 |
108 virtual HostResolverImpl* GetAsHostResolverImpl() { return this; } | 108 virtual HostResolverImpl* GetAsHostResolverImpl(); |
109 | 109 |
110 // TODO(eroman): hack for http://crbug.com/15513 | 110 // TODO(eroman): hack for http://crbug.com/15513 |
111 virtual void Shutdown(); | 111 virtual void Shutdown(); |
112 | 112 |
113 // Returns the cache this resolver uses, or NULL if caching is disabled. | 113 // Returns the cache this resolver uses, or NULL if caching is disabled. |
114 HostCache* cache() { return cache_.get(); } | 114 HostCache* cache() { return cache_.get(); } |
115 | 115 |
116 // Applies a set of constraints for requests that belong to the specified | 116 // Applies a set of constraints for requests that belong to the specified |
117 // pool. NOTE: Don't call this after requests have been already been started. | 117 // pool. NOTE: Don't call this after requests have been already been started. |
118 // | 118 // |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 HostResolverFlags additional_resolver_flags_; | 276 HostResolverFlags additional_resolver_flags_; |
277 | 277 |
278 NetLog* net_log_; | 278 NetLog* net_log_; |
279 | 279 |
280 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); | 280 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); |
281 }; | 281 }; |
282 | 282 |
283 } // namespace net | 283 } // namespace net |
284 | 284 |
285 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ | 285 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ |
OLD | NEW |