summaryrefslogtreecommitdiffstats
path: root/base/memory
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-25 08:15:42 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-25 08:15:42 +0000
commit8df905e2ff5ffad361b2c9eba9ae549c87c37c06 (patch)
tree9d7c78511b7050a86493a257d686520e6d3c2c8f /base/memory
parent61ea7e9781a5451b09b8093af693cb5d14bcbcb6 (diff)
downloadchromium_src-8df905e2ff5ffad361b2c9eba9ae549c87c37c06.zip
chromium_src-8df905e2ff5ffad361b2c9eba9ae549c87c37c06.tar.gz
chromium_src-8df905e2ff5ffad361b2c9eba9ae549c87c37c06.tar.bz2
RefCounted types should not have public destructors
Change content::ResourceResponse to be base::RefCountedData<> rather than directly inheriting from both ResourceResponseHead and base::RefCounted. BUG=123295 TEST=existing Review URL: https://chromiumcodereview.appspot.com/10416003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143880 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/memory')
-rw-r--r--base/memory/ref_counted.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/memory/ref_counted.h b/base/memory/ref_counted.h
index 64615f1..858ed2b 100644
--- a/base/memory/ref_counted.h
+++ b/base/memory/ref_counted.h
@@ -164,6 +164,10 @@ class RefCountedData : public base::RefCounted< base::RefCountedData<T> > {
RefCountedData(const T& in_value) : data(in_value) {}
T data;
+
+ private:
+ friend class base::RefCounted<base::RefCountedData<T> >;
+ ~RefCountedData() {}
};
} // namespace base