Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: net/base/host_cache.h

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/host_cache.h
===================================================================
--- net/base/host_cache.h (revision 31079)
+++ net/base/host_cache.h (working copy)
@@ -22,7 +22,6 @@
// 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 @@
// The time when this entry expires.
base::TimeTicks expiration;
+
+ private:
+ friend class base::RefCounted<Entry>;
+
+ ~Entry();
};
struct Key {

Powered by Google App Engine
This is Rietveld 408576698