Chromium Code Reviews| Index: net/base/host_resolver.h |
| =================================================================== |
| --- net/base/host_resolver.h (revision 85450) |
| +++ net/base/host_resolver.h (working copy) |
| @@ -131,6 +131,11 @@ |
| // concurrency. |
| static const size_t kDefaultParallelism = 0; |
| + // This value can be passed into CreateSystemHostResolver as the |
| + // |max_retry_attempts| parameter. This is the maximum number of times we |
| + // will retry for host resolution. |
| + static const size_t kDefaultRetryAttempts = 4; |
|
eroman
2011/05/16 23:26:08
(optional) I recommend using a similar model to ab
ramant (doing other things)
2011/05/17 18:46:25
Done.
|
| + |
| // If any completion callbacks are pending when the resolver is destroyed, |
| // the host resolutions are cancelled, and the completion callbacks will not |
| // be called. |
| @@ -241,7 +246,11 @@ |
| // |max_concurrent_resolves| is how many resolve requests will be allowed to |
| // run in parallel. Pass HostResolver::kDefaultParallelism to choose a |
| // default value. |
| +// |max_retry_attempts| is the maximum number of times we will retry for host |
| +// resolution. Pass HostResolver::kDefaultRetryAttempts to choose a default |
| +// value. |
| HostResolver* CreateSystemHostResolver(size_t max_concurrent_resolves, |
| + size_t max_retry_attempts, |
| NetLog* net_log); |
| } // namespace net |