summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
};