| Index: net/dns/host_resolver.h
|
| diff --git a/net/dns/host_resolver.h b/net/dns/host_resolver.h
|
| index 2964fe600df6284e852cd7cdf29db72d9bd2c9e7..5216329548c6b9d82cd5ae5c3f3b98eedde00a5d 100644
|
| --- a/net/dns/host_resolver.h
|
| +++ b/net/dns/host_resolver.h
|
| @@ -13,6 +13,7 @@
|
| #include "net/base/host_port_pair.h"
|
| #include "net/base/net_export.h"
|
| #include "net/base/net_util.h"
|
| +#include "net/base/prioritized_dispatcher.h"
|
| #include "net/base/request_priority.h"
|
|
|
| namespace base {
|
| @@ -48,6 +49,8 @@ class NET_EXPORT HostResolver {
|
| struct NET_EXPORT Options {
|
| Options();
|
|
|
| + PrioritizedDispatcher::Limits GetDispatcherLimits() const;
|
| +
|
| size_t max_concurrent_resolves;
|
| size_t max_retry_attempts;
|
| bool enable_caching;
|
| @@ -105,13 +108,11 @@ class NET_EXPORT HostResolver {
|
| // Opaque type used to cancel a request.
|
| typedef void* RequestHandle;
|
|
|
| - // This value can be passed into CreateSystemResolver as the
|
| - // |max_concurrent_resolves| parameter. It will select a default level of
|
| - // concurrency.
|
| + // Set Options.max_concurrent_resolves to this to select a default level
|
| + // of concurrency.
|
| static const size_t kDefaultParallelism = 0;
|
|
|
| - // This value can be passed into CreateSystemResolver as the
|
| - // |max_retry_attempts| parameter.
|
| + // Set Options.max_retry_attempts to this to select a default retry value.
|
| static const size_t kDefaultRetryAttempts = -1;
|
|
|
| // If any completion callbacks are pending when the resolver is destroyed,
|
|
|