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

Unified Diff: chrome/browser/net/connection_tester.cc

Issue 8965025: Refactoring of job dispatch in HostResolverImpl in preparation for DnsClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes from try bots. Created 8 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/net/passive_log_collector.h » ('j') | net/base/prioritized_dispatcher.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/connection_tester.cc
diff --git a/chrome/browser/net/connection_tester.cc b/chrome/browser/net/connection_tester.cc
index 6aa1e9a8c438e6f5b932f00c4b2b88cb5ae5eaf4..ca4bbdd73f01a0ae4f1c2fb02b415286b068df88 100644
--- a/chrome/browser/net/connection_tester.cc
+++ b/chrome/browser/net/connection_tester.cc
@@ -110,9 +110,13 @@ class ExperimentURLRequestContext : public net::URLRequestContext {
// Create a vanilla HostResolver that disables caching.
const size_t kMaxJobs = 50u;
const size_t kMaxRetryAttempts = 4u;
+ net::PrioritizedDispatcher::Limits limits = { kMaxJobs };
net::HostResolverImpl* impl =
- new net::HostResolverImpl(NULL, NULL, kMaxJobs, kMaxRetryAttempts,
- NULL);
+ new net::HostResolverImpl(
+ NULL /* HostCache */,
+ limits,
+ net::HostResolverImpl::ProcTaskParams(NULL, kMaxRetryAttempts),
+ NULL /* NetLog */);
host_resolver->reset(impl);
« no previous file with comments | « no previous file | chrome/browser/net/passive_log_collector.h » ('j') | net/base/prioritized_dispatcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698