OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // before we start dropping requests. Dropped | 122 // before we start dropping requests. Dropped |
123 // requests fail with | 123 // requests fail with |
124 // ERR_HOST_RESOLVER_QUEUE_TOO_LARGE. | 124 // ERR_HOST_RESOLVER_QUEUE_TOO_LARGE. |
125 void SetPoolConstraints(JobPoolIndex pool_index, | 125 void SetPoolConstraints(JobPoolIndex pool_index, |
126 size_t max_outstanding_jobs, | 126 size_t max_outstanding_jobs, |
127 size_t max_pending_requests); | 127 size_t max_pending_requests); |
128 | 128 |
129 // HostResolver methods: | 129 // HostResolver methods: |
130 virtual int Resolve(const RequestInfo& info, | 130 virtual int Resolve(const RequestInfo& info, |
131 AddressList* addresses, | 131 AddressList* addresses, |
132 OldCompletionCallback* callback, | 132 const CompletionCallback& callback, |
133 RequestHandle* out_req, | 133 RequestHandle* out_req, |
134 const BoundNetLog& source_net_log) OVERRIDE; | 134 const BoundNetLog& source_net_log) OVERRIDE; |
135 virtual int ResolveFromCache(const RequestInfo& info, | 135 virtual int ResolveFromCache(const RequestInfo& info, |
136 AddressList* addresses, | 136 AddressList* addresses, |
137 const BoundNetLog& source_net_log) OVERRIDE; | 137 const BoundNetLog& source_net_log) OVERRIDE; |
138 virtual void CancelRequest(RequestHandle req) OVERRIDE; | 138 virtual void CancelRequest(RequestHandle req) OVERRIDE; |
139 virtual void SetDefaultAddressFamily(AddressFamily address_family) OVERRIDE; | 139 virtual void SetDefaultAddressFamily(AddressFamily address_family) OVERRIDE; |
140 virtual AddressFamily GetDefaultAddressFamily() const OVERRIDE; | 140 virtual AddressFamily GetDefaultAddressFamily() const OVERRIDE; |
141 virtual void ProbeIPv6Support() OVERRIDE; | 141 virtual void ProbeIPv6Support() OVERRIDE; |
142 virtual HostCache* GetHostCache() OVERRIDE; | 142 virtual HostCache* GetHostCache() OVERRIDE; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 HostResolverFlags additional_resolver_flags_; | 344 HostResolverFlags additional_resolver_flags_; |
345 | 345 |
346 NetLog* net_log_; | 346 NetLog* net_log_; |
347 | 347 |
348 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); | 348 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); |
349 }; | 349 }; |
350 | 350 |
351 } // namespace net | 351 } // namespace net |
352 | 352 |
353 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ | 353 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ |
OLD | NEW |