Home
last modified time | relevance | path

Searched refs:RefCountedBytes (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/base/memory/
Dref_counted_memory.cc32 RefCountedBytes::RefCountedBytes() {} in RefCountedBytes() function in base::RefCountedBytes
34 RefCountedBytes::RefCountedBytes(const std::vector<unsigned char>& initializer) in RefCountedBytes() function in base::RefCountedBytes
38 RefCountedBytes::RefCountedBytes(const unsigned char* p, size_t size) in RefCountedBytes() function in base::RefCountedBytes
41 RefCountedBytes* RefCountedBytes::TakeVector( in TakeVector()
43 RefCountedBytes* bytes = new RefCountedBytes; in TakeVector()
48 const unsigned char* RefCountedBytes::front() const { in front()
54 size_t RefCountedBytes::size() const { in size()
58 RefCountedBytes::~RefCountedBytes() {} in ~RefCountedBytes()
Dref_counted_memory.h71 class BASE_EXPORT RefCountedBytes : public RefCountedMemory {
73 RefCountedBytes();
76 explicit RefCountedBytes(const std::vector<unsigned char>& initializer);
79 RefCountedBytes(const unsigned char* p, size_t size);
84 static RefCountedBytes* TakeVector(std::vector<unsigned char>* to_destroy);
94 ~RefCountedBytes() override;
98 DISALLOW_COPY_AND_ASSIGN(RefCountedBytes);
Dref_counted_memory_unittest.cc21 TEST(RefCountedMemoryUnitTest, RefCountedBytes) { in TEST() argument
25 scoped_refptr<RefCountedMemory> mem = RefCountedBytes::TakeVector(&data); in TEST()
36 mem2 = new RefCountedBytes(data2, 3); in TEST()
64 scoped_refptr<RefCountedMemory> mem2 = RefCountedBytes::TakeVector(&d2); in TEST()