summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/dns_global.h
diff options
context:
space:
mode:
authorericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-27 01:50:14 +0000
committerericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-27 01:50:14 +0000
commit94a0d3d91b7200e66a4d23bb49b38cae7e74f7db (patch)
tree7f6b01af9e6e2a741dc4938d8e524be9f277aa3a /chrome/browser/net/dns_global.h
parentafef5e483bc3782ecaf2572493442e0a2bd22bac (diff)
downloadchromium_src-94a0d3d91b7200e66a4d23bb49b38cae7e74f7db.zip
chromium_src-94a0d3d91b7200e66a4d23bb49b38cae7e74f7db.tar.gz
chromium_src-94a0d3d91b7200e66a4d23bb49b38cae7e74f7db.tar.bz2
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@19451 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/dns_global.h')
-rw-r--r--chrome/browser/net/dns_global.h6
1 files changed, 1 insertions, 5 deletions
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);