diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 23:34:24 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 23:34:24 +0000 |
commit | 5389bc7ba5360633af04b9cf15497d56ce640ead (patch) | |
tree | 4518c05f3bad18a5b2f4739fc1a1c187651f9799 /net/base/host_cache.h | |
parent | 4070a6b1efcb2dbea12508a0b912cfa3bc86f47e (diff) | |
download | chromium_src-5389bc7ba5360633af04b9cf15497d56ce640ead.zip chromium_src-5389bc7ba5360633af04b9cf15497d56ce640ead.tar.gz chromium_src-5389bc7ba5360633af04b9cf15497d56ce640ead.tar.bz2 |
Second patch in making destructors of refcounted objects private.
BUG=26749
Review URL: http://codereview.chromium.org/368001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31165 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/host_cache.h')
-rw-r--r-- | net/base/host_cache.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/base/host_cache.h b/net/base/host_cache.h index b36af35..c7127b0 100644 --- a/net/base/host_cache.h +++ b/net/base/host_cache.h @@ -22,7 +22,6 @@ class HostCache { // Stores the latest address list that was looked up for a hostname. struct Entry : public base::RefCounted<Entry> { Entry(int error, const AddressList& addrlist, base::TimeTicks expiration); - ~Entry(); // The resolve results for this entry. int error; @@ -30,6 +29,11 @@ class HostCache { // The time when this entry expires. base::TimeTicks expiration; + + private: + friend class base::RefCounted<Entry>; + + ~Entry(); }; struct Key { |