Home
last modified time | relevance | path

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

/external/libchrome/base/memory/
Dref_counted_memory.cc106 RefCountedSharedMemoryMapping::RefCountedSharedMemoryMapping( in RefCountedSharedMemoryMapping() function in base::RefCountedSharedMemoryMapping
112 RefCountedSharedMemoryMapping::~RefCountedSharedMemoryMapping() = default;
114 const unsigned char* RefCountedSharedMemoryMapping::front() const { in front()
118 size_t RefCountedSharedMemoryMapping::size() const { in size()
123 scoped_refptr<RefCountedSharedMemoryMapping>
124 RefCountedSharedMemoryMapping::CreateFromWholeRegion( in CreateFromWholeRegion()
129 return MakeRefCounted<RefCountedSharedMemoryMapping>(std::move(mapping)); in CreateFromWholeRegion()
Dref_counted_memory.h167 class BASE_EXPORT RefCountedSharedMemoryMapping : public RefCountedMemory {
171 explicit RefCountedSharedMemoryMapping(ReadOnlySharedMemoryMapping mapping);
175 static scoped_refptr<RefCountedSharedMemoryMapping> CreateFromWholeRegion(
183 ~RefCountedSharedMemoryMapping() override;
188 DISALLOW_COPY_AND_ASSIGN(RefCountedSharedMemoryMapping);
Dref_counted_memory_unittest.cc90 TEST(RefCountedMemoryUnitTest, RefCountedSharedMemoryMapping) { in TEST() argument
92 scoped_refptr<RefCountedSharedMemoryMapping> mem; in TEST()
100 mem = MakeRefCounted<RefCountedSharedMemoryMapping>(std::move(ro_mapping)); in TEST()
114 mem = RefCountedSharedMemoryMapping::CreateFromWholeRegion(region.region); in TEST()