Searched refs:RefCountedBytes (Results 1 – 3 of 3) sorted by relevance
32 RefCountedBytes::RefCountedBytes() {} in RefCountedBytes() function in base::RefCountedBytes34 RefCountedBytes::RefCountedBytes(const std::vector<unsigned char>& initializer) in RefCountedBytes() function in base::RefCountedBytes38 RefCountedBytes::RefCountedBytes(const unsigned char* p, size_t size) in RefCountedBytes() function in base::RefCountedBytes41 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()
71 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);
21 TEST(RefCountedMemoryUnitTest, RefCountedBytes) { in TEST() argument25 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()