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 AddObserver(HostResolver::Observer* observer) OVERRIDE; | 139 virtual void AddObserver(HostResolver::Observer* observer) OVERRIDE; |
140 virtual void RemoveObserver(HostResolver::Observer* observer) OVERRIDE; | 140 virtual void RemoveObserver(HostResolver::Observer* observer) OVERRIDE; |
141 virtual void SetDefaultAddressFamily(AddressFamily address_family) OVERRIDE; | 141 virtual void SetDefaultAddressFamily(AddressFamily address_family) OVERRIDE; |
142 virtual AddressFamily GetDefaultAddressFamily() const OVERRIDE; | 142 virtual AddressFamily GetDefaultAddressFamily() const OVERRIDE; |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 HostResolverFlags additional_resolver_flags_; | 358 HostResolverFlags additional_resolver_flags_; |
359 | 359 |
360 NetLog* net_log_; | 360 NetLog* net_log_; |
361 | 361 |
362 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); | 362 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); |
363 }; | 363 }; |
364 | 364 |
365 } // namespace net | 365 } // namespace net |
366 | 366 |
367 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ | 367 #endif // NET_BASE_HOST_RESOLVER_IMPL_H_ |
OLD | NEW |