From 862a92ee0afc1be6470beed3e19465c24da223e2 Mon Sep 17 00:00:00 2001 From: "ericroman@google.com" Date: Fri, 26 Jun 2009 22:06:52 +0000 Subject: Make net::HostResolver refcounted. This way it can be properly shared between the url request contexts, and the dns prefetcher, and dns observer. BUG=http://crbug.com/14664 TEST=existing unit tests. Review URL: http://codereview.chromium.org/149053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19425 0039d316-1c4b-4281-b951-d872f2087c98 --- net/url_request/url_request_unittest.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'net/url_request/url_request_unittest.h') diff --git a/net/url_request/url_request_unittest.h b/net/url_request/url_request_unittest.h index a4ec2fe..dcc1757 100644 --- a/net/url_request/url_request_unittest.h +++ b/net/url_request/url_request_unittest.h @@ -51,10 +51,7 @@ class TestURLRequestContext : public URLRequestContext { } explicit TestURLRequestContext(const std::string& proxy) { - // TODO(eroman): we turn off host caching to see if synchronous - // host resolving interacts poorly with client socket pool. [experiment] - // http://crbug.com/13952 - host_resolver_ = new net::HostResolver(0, 0); + host_resolver_ = new net::HostResolver; net::ProxyConfig proxy_config; proxy_config.proxy_rules.ParseFromString(proxy); proxy_service_ = net::ProxyService::CreateFixed(proxy_config); @@ -66,7 +63,6 @@ class TestURLRequestContext : public URLRequestContext { virtual ~TestURLRequestContext() { delete http_transaction_factory_; delete proxy_service_; - delete host_resolver_; } }; -- cgit v1.1