Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: net/base/host_resolver.h

Issue 9101011: [net/dns] Refactoring of job dispatch in HostResolverImpl in preparation for DnsTransactionFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed use of MutableSetPort. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_H_ 5 #ifndef NET_BASE_HOST_RESOLVER_H_
6 #define NET_BASE_HOST_RESOLVER_H_ 6 #define NET_BASE_HOST_RESOLVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // run in parallel. Pass HostResolver::kDefaultParallelism to choose a 175 // run in parallel. Pass HostResolver::kDefaultParallelism to choose a
176 // default value. 176 // default value.
177 // |max_retry_attempts| is the maximum number of times we will retry for host 177 // |max_retry_attempts| is the maximum number of times we will retry for host
178 // resolution. Pass HostResolver::kDefaultRetryAttempts to choose a default 178 // resolution. Pass HostResolver::kDefaultRetryAttempts to choose a default
179 // value. 179 // value.
180 NET_EXPORT HostResolver* CreateSystemHostResolver( 180 NET_EXPORT HostResolver* CreateSystemHostResolver(
181 size_t max_concurrent_resolves, 181 size_t max_concurrent_resolves,
182 size_t max_retry_attempts, 182 size_t max_retry_attempts,
183 NetLog* net_log); 183 NetLog* net_log);
184 184
185 // As above, but the created HostResolver does not use a cache.
186 NET_EXPORT HostResolver* CreateNonCachingSystemHostResolver(
187 size_t max_concurrent_resolves,
188 size_t max_retry_attempts,
189 NetLog* net_log);
190
185 // Creates a HostResolver implementation that sends actual DNS queries to 191 // Creates a HostResolver implementation that sends actual DNS queries to
186 // the specified DNS server and parses response and returns results. 192 // the specified DNS server and parses response and returns results.
187 NET_EXPORT HostResolver* CreateAsyncHostResolver(size_t max_concurrent_resolves, 193 NET_EXPORT HostResolver* CreateAsyncHostResolver(size_t max_concurrent_resolves,
188 const IPAddressNumber& dns_ip, 194 const IPAddressNumber& dns_ip,
189 NetLog* net_log); 195 NetLog* net_log);
190 } // namespace net 196 } // namespace net
191 197
192 #endif // NET_BASE_HOST_RESOLVER_H_ 198 #endif // NET_BASE_HOST_RESOLVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698