Home
last modified time | relevance | path

Searched refs:ReadOnlySharedMemoryRegion (Results 1 – 25 of 25) sorted by relevance

/external/libchrome/base/memory/
Dread_only_shared_memory_region.cc15 MappedReadOnlyRegion ReadOnlySharedMemoryRegion::Create(size_t size) { in Create()
33 ReadOnlySharedMemoryRegion region(std::move(handle)); in Create()
42 ReadOnlySharedMemoryRegion ReadOnlySharedMemoryRegion::Deserialize( in Deserialize()
44 return ReadOnlySharedMemoryRegion(std::move(handle)); in Deserialize()
49 ReadOnlySharedMemoryRegion::TakeHandleForSerialization( in TakeHandleForSerialization()
50 ReadOnlySharedMemoryRegion region) { in TakeHandleForSerialization()
54 ReadOnlySharedMemoryRegion::ReadOnlySharedMemoryRegion() = default;
55 ReadOnlySharedMemoryRegion::ReadOnlySharedMemoryRegion(
56 ReadOnlySharedMemoryRegion&& region) = default;
57 ReadOnlySharedMemoryRegion& ReadOnlySharedMemoryRegion::operator=(
[all …]
Dread_only_shared_memory_region.h22 class BASE_EXPORT ReadOnlySharedMemoryRegion {
43 static ReadOnlySharedMemoryRegion Deserialize(
51 ReadOnlySharedMemoryRegion region);
54 ReadOnlySharedMemoryRegion();
57 ReadOnlySharedMemoryRegion(ReadOnlySharedMemoryRegion&&);
58 ReadOnlySharedMemoryRegion& operator=(ReadOnlySharedMemoryRegion&&);
62 ~ReadOnlySharedMemoryRegion();
68 ReadOnlySharedMemoryRegion Duplicate() const;
99 explicit ReadOnlySharedMemoryRegion(
104 DISALLOW_COPY_AND_ASSIGN(ReadOnlySharedMemoryRegion);
[all …]
Dshared_memory_region_unittest.cc50 ReadOnlySharedMemoryRegion>
208 typedef ::testing::Types<UnsafeSharedMemoryRegion, ReadOnlySharedMemoryRegion>
224 ReadOnlySharedMemoryRegion GetInitiallyReadOnlyRegion(size_t size) { in GetInitiallyReadOnlyRegion()
226 ReadOnlySharedMemoryRegion::Create(size); in GetInitiallyReadOnlyRegion()
227 ReadOnlySharedMemoryRegion region = std::move(mapped_region.region); in GetInitiallyReadOnlyRegion()
231 ReadOnlySharedMemoryRegion GetConvertedToReadOnlyRegion(size_t size) { in GetConvertedToReadOnlyRegion()
234 ReadOnlySharedMemoryRegion ro_region = in GetConvertedToReadOnlyRegion()
242 ReadOnlySharedMemoryRegion region = GetInitiallyReadOnlyRegion(kRegionSize); in TEST_F()
246 ReadOnlySharedMemoryRegion::TakeHandleForSerialization( in TEST_F()
252 ReadOnlySharedMemoryRegion region = GetConvertedToReadOnlyRegion(kRegionSize); in TEST_F()
[all …]
Dshared_memory_mapping.h101 friend class ReadOnlySharedMemoryRegion;
131 friend class ReadOnlySharedMemoryRegion; variable
Dwritable_shared_memory_region.cc36 ReadOnlySharedMemoryRegion WritableSharedMemoryRegion::ConvertToReadOnly( in ConvertToReadOnly()
42 return ReadOnlySharedMemoryRegion::Deserialize(std::move(handle)); in ConvertToReadOnly()
Dref_counted_memory.h22 class ReadOnlySharedMemoryRegion; variable
176 const ReadOnlySharedMemoryRegion& region);
Dref_counted_memory_unittest.cc95 ReadOnlySharedMemoryRegion::Create(sizeof(kData)); in TEST()
110 ReadOnlySharedMemoryRegion::Create(sizeof(kData)); in TEST()
Dwritable_shared_memory_region.h51 static ReadOnlySharedMemoryRegion ConvertToReadOnly(
Dref_counted_memory.cc125 const ReadOnlySharedMemoryRegion& region) { in CreateFromWholeRegion()
/external/libchrome/mojo/public/cpp/base/
Dshared_memory_mojom_traits.cc14 base::ReadOnlySharedMemoryRegion>::
15 IsNull(const base::ReadOnlySharedMemoryRegion& region) { in IsNull()
21 base::ReadOnlySharedMemoryRegion>::
22 SetToNull(base::ReadOnlySharedMemoryRegion* region) { in SetToNull()
23 *region = base::ReadOnlySharedMemoryRegion(); in SetToNull()
29 base::ReadOnlySharedMemoryRegion>::buffer(base::ReadOnlySharedMemoryRegion& in buffer()
36 base::ReadOnlySharedMemoryRegion>::
38 base::ReadOnlySharedMemoryRegion* out) { in Read()
Dshared_memory_mojom_traits.h21 base::ReadOnlySharedMemoryRegion> { in COMPONENT_EXPORT()
22 static bool IsNull(const base::ReadOnlySharedMemoryRegion& region); in COMPONENT_EXPORT()
23 static void SetToNull(base::ReadOnlySharedMemoryRegion* region); in COMPONENT_EXPORT()
25 base::ReadOnlySharedMemoryRegion& in_region); in COMPONENT_EXPORT()
27 base::ReadOnlySharedMemoryRegion* out); in COMPONENT_EXPORT()
Dshared_memory_unittest.cc13 auto region = base::ReadOnlySharedMemoryRegion::Create(64); in TEST()
17 base::ReadOnlySharedMemoryRegion read_only_out; in TEST()
19 mojo_base::mojom::ReadOnlySharedMemoryRegion>(&region.region, in TEST()
Dshared_memory.typemap21 …"mojo_base.mojom.ReadOnlySharedMemoryRegion=base::ReadOnlySharedMemoryRegion[move_only,nullable_is…
/external/libchrome/mojo/public/cpp/system/
Dplatform_handle.h156 WrapReadOnlySharedMemoryRegion(base::ReadOnlySharedMemoryRegion region);
164 MOJO_CPP_SYSTEM_EXPORT base::ReadOnlySharedMemoryRegion
Dplatform_handle.cc360 base::ReadOnlySharedMemoryRegion region) { in WrapReadOnlySharedMemoryRegion()
362 base::ReadOnlySharedMemoryRegion::TakeHandleForSerialization( in WrapReadOnlySharedMemoryRegion()
380 base::ReadOnlySharedMemoryRegion UnwrapReadOnlySharedMemoryRegion( in UnwrapReadOnlySharedMemoryRegion()
382 return base::ReadOnlySharedMemoryRegion::Deserialize( in UnwrapReadOnlySharedMemoryRegion()
DREADME.md166 `base::ReadOnlySharedMemoryRegion`. See
/external/libchrome/mojo/public/mojom/base/
Dshared_memory.mojom9 struct ReadOnlySharedMemoryRegion {
15 // a ReadOnlySharedMemoryRegion for sharing with other clients.
/external/libchrome/mojo/core/
Dplatform_shared_memory_mapping.cc56 base::ReadOnlySharedMemoryRegion::Deserialize(std::move(*region)); in PlatformSharedMemoryMapping()
61 *region = base::ReadOnlySharedMemoryRegion::TakeHandleForSerialization( in PlatformSharedMemoryMapping()
Dshared_buffer_dispatcher.cc236 region_ = base::ReadOnlySharedMemoryRegion::TakeHandleForSerialization( in DuplicateBufferHandle()
/external/libchrome/base/test/
Dtest_shared_memory_util.cc181 std::pair<ReadOnlySharedMemoryRegion, WritableSharedMemoryMapping>
183 MappedReadOnlyRegion mapped_region = ReadOnlySharedMemoryRegion::Create(size); in CreateMappedRegion()
Dtest_shared_memory_util.h51 std::pair<ReadOnlySharedMemoryRegion, WritableSharedMemoryMapping>
/external/libchrome/ipc/
Dipc_message_utils.cc795 void ParamTraits<base::ReadOnlySharedMemoryRegion>::Write(base::Pickle* m, in Write()
798 base::ReadOnlySharedMemoryRegion::TakeHandleForSerialization( in Write()
803 bool ParamTraits<base::ReadOnlySharedMemoryRegion>::Read( in Read()
811 *r = base::ReadOnlySharedMemoryRegion::Deserialize(std::move(handle)); in Read()
815 void ParamTraits<base::ReadOnlySharedMemoryRegion>::Log(const param_type& p, in Log()
Dipc_message_utils_unittest.cc168 base::ReadOnlySharedMemoryRegion>
Dipc_message_utils.h580 struct COMPONENT_EXPORT(IPC) ParamTraits<base::ReadOnlySharedMemoryRegion> {
581 typedef base::ReadOnlySharedMemoryRegion param_type;
Dipc_channel_mojo_unittest.cc1535 using RegionType = base::ReadOnlySharedMemoryRegion;
1630 ListenerThatExpectsSharedMemoryRegion<base::ReadOnlySharedMemoryRegion> in DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT()