Home
last modified time | relevance | path

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

/external/libchrome/base/memory/
Dunsafe_shared_memory_region.cc14 UnsafeSharedMemoryRegion UnsafeSharedMemoryRegion::Create(size_t size) { in Create()
18 return UnsafeSharedMemoryRegion(std::move(handle)); in Create()
22 UnsafeSharedMemoryRegion UnsafeSharedMemoryRegion::Deserialize( in Deserialize()
24 return UnsafeSharedMemoryRegion(std::move(handle)); in Deserialize()
29 UnsafeSharedMemoryRegion::TakeHandleForSerialization( in TakeHandleForSerialization()
30 UnsafeSharedMemoryRegion region) { in TakeHandleForSerialization()
34 UnsafeSharedMemoryRegion::UnsafeSharedMemoryRegion() = default;
35 UnsafeSharedMemoryRegion::UnsafeSharedMemoryRegion(
36 UnsafeSharedMemoryRegion&& region) = default;
37 UnsafeSharedMemoryRegion& UnsafeSharedMemoryRegion::operator=(
[all …]
Dunsafe_shared_memory_region.h29 class BASE_EXPORT UnsafeSharedMemoryRegion {
34 static UnsafeSharedMemoryRegion Create(size_t size);
42 static UnsafeSharedMemoryRegion Deserialize(
50 UnsafeSharedMemoryRegion region);
53 UnsafeSharedMemoryRegion();
56 UnsafeSharedMemoryRegion(UnsafeSharedMemoryRegion&&);
57 UnsafeSharedMemoryRegion& operator=(UnsafeSharedMemoryRegion&&);
61 ~UnsafeSharedMemoryRegion();
67 UnsafeSharedMemoryRegion Duplicate() const;
102 explicit UnsafeSharedMemoryRegion(subtle::PlatformSharedMemoryRegion handle);
[all …]
Dwritable_shared_memory_region.cc45 UnsafeSharedMemoryRegion WritableSharedMemoryRegion::ConvertToUnsafe( in ConvertToUnsafe()
51 return UnsafeSharedMemoryRegion::Deserialize(std::move(handle)); in ConvertToUnsafe()
Dwritable_shared_memory_region.h56 static UnsafeSharedMemoryRegion ConvertToUnsafe(
Dshared_memory_region_unittest.cc49 UnsafeSharedMemoryRegion,
208 typedef ::testing::Types<UnsafeSharedMemoryRegion, ReadOnlySharedMemoryRegion>
Dshared_memory_mapping.h133 friend class UnsafeSharedMemoryRegion; variable
/external/libchrome/mojo/public/cpp/base/
Dshared_memory_mojom_traits.cc45 base::UnsafeSharedMemoryRegion>::
46 IsNull(const base::UnsafeSharedMemoryRegion& region) { in IsNull()
52 base::UnsafeSharedMemoryRegion>::
53 SetToNull(base::UnsafeSharedMemoryRegion* region) { in SetToNull()
54 *region = base::UnsafeSharedMemoryRegion(); in SetToNull()
60 base::UnsafeSharedMemoryRegion>::buffer(base::UnsafeSharedMemoryRegion& in buffer()
67 base::UnsafeSharedMemoryRegion>::
69 base::UnsafeSharedMemoryRegion* out) { in Read()
Dshared_memory_mojom_traits.h33 base::UnsafeSharedMemoryRegion> { in COMPONENT_EXPORT()
34 static bool IsNull(const base::UnsafeSharedMemoryRegion& region); in COMPONENT_EXPORT()
35 static void SetToNull(base::UnsafeSharedMemoryRegion* region); in COMPONENT_EXPORT()
37 base::UnsafeSharedMemoryRegion& in_region); in COMPONENT_EXPORT()
39 base::UnsafeSharedMemoryRegion* out); in COMPONENT_EXPORT()
Dshared_memory_unittest.cc41 auto region = base::UnsafeSharedMemoryRegion::Create(64); in TEST()
46 base::UnsafeSharedMemoryRegion unsafe_out; in TEST()
49 mojo_base::mojom::UnsafeSharedMemoryRegion>(&region, &unsafe_out)); in TEST()
Dshared_memory.typemap22 …"mojo_base.mojom.UnsafeSharedMemoryRegion=base::UnsafeSharedMemoryRegion[move_only,nullable_is_sam…
/external/libchrome/mojo/core/
Ddata_pipe_producer_dispatcher.h37 base::UnsafeSharedMemoryRegion shared_ring_buffer,
78 base::UnsafeSharedMemoryRegion shared_ring_buffer,
100 base::UnsafeSharedMemoryRegion shared_ring_buffer_;
Ddata_pipe_consumer_dispatcher.h37 base::UnsafeSharedMemoryRegion shared_ring_buffer,
79 base::UnsafeSharedMemoryRegion shared_ring_buffer,
101 base::UnsafeSharedMemoryRegion shared_ring_buffer_;
Ddata_pipe_producer_dispatcher.cc75 base::UnsafeSharedMemoryRegion shared_ring_buffer, in Create()
274 base::UnsafeSharedMemoryRegion::TakeHandleForSerialization( in EndSerialize()
353 base::UnsafeSharedMemoryRegion::Deserialize(std::move(region)); in Deserialize()
380 base::UnsafeSharedMemoryRegion shared_ring_buffer, in DataPipeProducerDispatcher()
405 shared_ring_buffer_ = base::UnsafeSharedMemoryRegion(); in InitializeNoLock()
422 shared_ring_buffer_ = base::UnsafeSharedMemoryRegion(); in CloseNoLock()
Ddata_pipe_consumer_dispatcher.cc76 base::UnsafeSharedMemoryRegion shared_ring_buffer, in Create()
315 base::UnsafeSharedMemoryRegion::TakeHandleForSerialization( in EndSerialize()
392 base::UnsafeSharedMemoryRegion::Deserialize(std::move(region)); in Deserialize()
420 base::UnsafeSharedMemoryRegion shared_ring_buffer, in DataPipeConsumerDispatcher()
444 shared_ring_buffer_ = base::UnsafeSharedMemoryRegion(); in InitializeNoLock()
461 shared_ring_buffer_ = base::UnsafeSharedMemoryRegion(); in CloseNoLock()
Dembedder_unittest.cc276 auto shared_memory = base::UnsafeSharedMemoryRegion::Create(123); in TEST_F()
334 base::UnsafeSharedMemoryRegion shared_memory; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
374 auto shared_memory = base::UnsafeSharedMemoryRegion::Create(kShmSize); in TEST_F()
377 base::UnsafeSharedMemoryRegion::TakeHandleForSerialization( in TEST_F()
Dplatform_shared_memory_mapping.cc66 base::UnsafeSharedMemoryRegion::Deserialize(std::move(*region)); in PlatformSharedMemoryMapping()
71 *region = base::UnsafeSharedMemoryRegion::TakeHandleForSerialization( in PlatformSharedMemoryMapping()
Dcore.cc691 base::UnsafeSharedMemoryRegion producer_region = in CreateDataPipe()
692 base::UnsafeSharedMemoryRegion::Deserialize( in CreateDataPipe()
706 base::UnsafeSharedMemoryRegion consumer_region = producer_region.Duplicate(); in CreateDataPipe()
/external/libchrome/mojo/public/cpp/platform/tests/
Dplatform_handle_unittest.cc147 auto region = base::UnsafeSharedMemoryRegion::Create(kTestData.size()); in SetUpSharedMemory()
151 base::UnsafeSharedMemoryRegion::TakeHandleForSerialization( in SetUpSharedMemory()
174 base::UnsafeSharedMemoryRegion::Deserialize(std::move(generic_region)); in GetSharedMemoryContents()
180 generic_region = base::UnsafeSharedMemoryRegion::TakeHandleForSerialization( in GetSharedMemoryContents()
/external/libchrome/mojo/public/cpp/system/
Dplatform_handle.h159 WrapUnsafeSharedMemoryRegion(base::UnsafeSharedMemoryRegion region);
167 MOJO_CPP_SYSTEM_EXPORT base::UnsafeSharedMemoryRegion
Dplatform_handle.cc367 base::UnsafeSharedMemoryRegion region) { in WrapUnsafeSharedMemoryRegion()
369 base::UnsafeSharedMemoryRegion::TakeHandleForSerialization( in WrapUnsafeSharedMemoryRegion()
386 base::UnsafeSharedMemoryRegion UnwrapUnsafeSharedMemoryRegion( in UnwrapUnsafeSharedMemoryRegion()
388 return base::UnsafeSharedMemoryRegion::Deserialize( in UnwrapUnsafeSharedMemoryRegion()
/external/libchrome/mojo/public/mojom/base/
Dshared_memory.mojom23 struct UnsafeSharedMemoryRegion {
/external/libchrome/ipc/
Dipc_message_utils.cc849 void ParamTraits<base::UnsafeSharedMemoryRegion>::Write(base::Pickle* m, in Write()
852 base::UnsafeSharedMemoryRegion::TakeHandleForSerialization( in Write()
857 bool ParamTraits<base::UnsafeSharedMemoryRegion>::Read( in Read()
865 *r = base::UnsafeSharedMemoryRegion::Deserialize(std::move(handle)); in Read()
869 void ParamTraits<base::UnsafeSharedMemoryRegion>::Log(const param_type& p, in Log()
Dipc_message_utils_unittest.cc167 base::UnsafeSharedMemoryRegion,
Dipc_message_utils.h600 struct COMPONENT_EXPORT(IPC) ParamTraits<base::UnsafeSharedMemoryRegion> {
601 typedef base::UnsafeSharedMemoryRegion param_type;
Dipc_channel_mojo_unittest.cc1529 using RegionType = base::UnsafeSharedMemoryRegion;
1618 ListenerThatExpectsSharedMemoryRegion<base::UnsafeSharedMemoryRegion> in DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT()