diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-27 01:50:14 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-27 01:50:14 +0000 |
commit | 94a0d3d91b7200e66a4d23bb49b38cae7e74f7db (patch) | |
tree | 7f6b01af9e6e2a741dc4938d8e524be9f277aa3a /net/base/host_resolver.h | |
parent | afef5e483bc3782ecaf2572493442e0a2bd22bac (diff) | |
download | chromium_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 'net/base/host_resolver.h')
-rw-r--r-- | net/base/host_resolver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/base/host_resolver.h b/net/base/host_resolver.h index 0b5c3fc..a912661 100644 --- a/net/base/host_resolver.h +++ b/net/base/host_resolver.h @@ -57,7 +57,7 @@ class HostMapper; // Thread safety: This class is not threadsafe, and must only be called // from one thread! // -class HostResolver { +class HostResolver : public base::RefCounted<HostResolver> { public: // The parameters for doing a Resolve(). |hostname| and |port| are required, // the rest are optional (and have reasonable defaults). @@ -236,7 +236,7 @@ class SingleRequestHostResolver { void OnResolveCompletion(int result); // The actual host resolver that will handle the request. - HostResolver* resolver_; + scoped_refptr<HostResolver> resolver_; // The current request (if any). HostResolver::Request* cur_request_; |