| Index: base/memory/ref_counted_memory.cc
|
| diff --git a/base/memory/ref_counted_memory.cc b/base/memory/ref_counted_memory.cc
|
| index b1deee1120167d8517e41b782b7e8690d4e11b80..477c941355c23660b77961d1b775fa4f8e45aa8f 100644
|
| --- a/base/memory/ref_counted_memory.cc
|
| +++ b/base/memory/ref_counted_memory.cc
|
| @@ -37,6 +37,9 @@ RefCountedBytes::RefCountedBytes(const std::vector<unsigned char>& initializer)
|
| : data_(initializer) {
|
| }
|
|
|
| +RefCountedBytes::RefCountedBytes(const unsigned char* p, size_t size)
|
| + : data_(p, p + size) {}
|
| +
|
| RefCountedBytes* RefCountedBytes::TakeVector(
|
| std::vector<unsigned char>* to_destroy) {
|
| RefCountedBytes* bytes = new RefCountedBytes;
|
|
|