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 --- chrome/browser/net/dns_global.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'chrome/browser/net/dns_global.h') diff --git a/chrome/browser/net/dns_global.h b/chrome/browser/net/dns_global.h index c9a864f..e27062e 100644 --- a/chrome/browser/net/dns_global.h +++ b/chrome/browser/net/dns_global.h @@ -36,13 +36,9 @@ void EnsureDnsPrefetchShutdown(); void FreeDnsPrefetchResources(); // Lazily allocates a HostResolver to be used by the DNS prefetch system, on -// the IO thread. Must be matched by a call to FreeGlobalHostResolver(). +// the IO thread. net::HostResolver* GetGlobalHostResolver(); -// Frees the HostResolver allocated by GetGlobalHostResolver(). Must be called -// on the IO thread. -void FreeGlobalHostResolver(); - //------------------------------------------------------------------------------ // Global APIs relating to Prefetching in browser void EnableDnsPrefetch(bool enable); -- cgit v1.1