summaryrefslogtreecommitdiffstats
path: root/chromium/base/memory/ref_counted_memory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/memory/ref_counted_memory.cc')
-rw-r--r--chromium/base/memory/ref_counted_memory.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chromium/base/memory/ref_counted_memory.cc b/chromium/base/memory/ref_counted_memory.cc
index b1deee11201..477c941355c 100644
--- a/chromium/base/memory/ref_counted_memory.cc
+++ b/chromium/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;