Index: base/memory/ref_counted_memory.h |
diff --git a/base/memory/ref_counted_memory.h b/base/memory/ref_counted_memory.h |
index 15a43077b4a6a085921ff45db1a6665b39de0382..a238c3a30fea1bab416b71203b9f1765820e54f0 100644 |
--- a/base/memory/ref_counted_memory.h |
+++ b/base/memory/ref_counted_memory.h |
@@ -64,8 +64,7 @@ class BASE_EXPORT RefCountedStaticMemory : public RefCountedMemory { |
DISALLOW_COPY_AND_ASSIGN(RefCountedStaticMemory); |
}; |
-// An implementation of RefCountedMemory, where we own our the data in a |
-// vector. |
+// An implementation of RefCountedMemory, where we own the data in a vector. |
class BASE_EXPORT RefCountedBytes : public RefCountedMemory { |
public: |
RefCountedBytes(); |
@@ -73,6 +72,9 @@ class BASE_EXPORT RefCountedBytes : public RefCountedMemory { |
// Constructs a RefCountedBytes object by _copying_ from |initializer|. |
explicit RefCountedBytes(const std::vector<unsigned char>& initializer); |
+ // Constructs a RefCountedBytes object by copying |size| bytes from |p|. |
+ RefCountedBytes(const unsigned char* p, size_t size); |
+ |
// Constructs a RefCountedBytes object by performing a swap. (To non |
// destructively build a RefCountedBytes, use the constructor that takes a |
// vector.) |