summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 22:07:26 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 22:07:26 +0000
commit0484d7b02b002cd4561e93dcaafb7bdea4ae3a33 (patch)
tree424c746ba30879866fdd6e1ad44ccc0dbe85e08a
parentc848d3d965724a00356d0bb92ae98505f2853a6c (diff)
downloadchromium_src-0484d7b02b002cd4561e93dcaafb7bdea4ae3a33.zip
chromium_src-0484d7b02b002cd4561e93dcaafb7bdea4ae3a33.tar.gz
chromium_src-0484d7b02b002cd4561e93dcaafb7bdea4ae3a33.tar.bz2
Make a destructor protected per darin@'s request in a previous code review.
TBR=darin@chromium.org BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3390010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59737 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/ref_counted_memory.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/ref_counted_memory.h b/base/ref_counted_memory.h
index 1de786d5..418405a 100644
--- a/base/ref_counted_memory.h
+++ b/base/ref_counted_memory.h
@@ -64,13 +64,15 @@ class RefCountedBytes : public RefCountedMemory {
// Constructs a RefCountedBytes object by _copying_ from |initializer|.
RefCountedBytes(const std::vector<unsigned char>& initializer);
- virtual ~RefCountedBytes();
-
virtual const unsigned char* front() const;
virtual size_t size() const;
std::vector<unsigned char> data;
+ protected:
+ friend class base::RefCountedThreadSafe<RefCountedBytes>;
+ virtual ~RefCountedBytes();
+
private:
DISALLOW_COPY_AND_ASSIGN(RefCountedBytes);
};