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

Unified Diff: net/base/address_list.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
« no previous file with comments | « no previous file | net/base/cert_verifier.cc » ('j') | net/http/http_auth_handler_digest.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_list.h
===================================================================
--- net/base/address_list.h (revision 31079)
+++ net/base/address_list.h (working copy)
@@ -54,11 +54,15 @@
struct Data : public base::RefCountedThreadSafe<Data> {
Data(struct addrinfo* ai, bool is_system_created)
: head(ai), is_system_created(is_system_created) {}
- ~Data();
struct addrinfo* head;
// Indicates which free function to use for |head|.
bool is_system_created;
+
+ private:
+ friend class base::RefCountedThreadSafe<Data>;
+
+ ~Data();
};
explicit AddressList(Data* data) : data_(data) {}
« no previous file with comments | « no previous file | net/base/cert_verifier.cc » ('j') | net/http/http_auth_handler_digest.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698