Home
last modified time | relevance | path

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

12

/external/libchrome/base/memory/
Dplatform_shared_memory_region_unittest.cc29 PlatformSharedMemoryRegion region; in TEST_F()
33 PlatformSharedMemoryRegion duplicate = region.Duplicate(); in TEST_F()
40 PlatformSharedMemoryRegion region = in TEST_F()
41 PlatformSharedMemoryRegion::CreateWritable(0); in TEST_F()
44 PlatformSharedMemoryRegion region2 = in TEST_F()
45 PlatformSharedMemoryRegion::CreateUnsafe(0); in TEST_F()
54 PlatformSharedMemoryRegion region = in TEST_F()
55 PlatformSharedMemoryRegion::CreateWritable(too_large_region_size); in TEST_F()
58 PlatformSharedMemoryRegion region2 = in TEST_F()
59 PlatformSharedMemoryRegion::CreateUnsafe(too_large_region_size); in TEST_F()
[all …]
Dplatform_shared_memory_region.cc13 PlatformSharedMemoryRegion PlatformSharedMemoryRegion::CreateWritable( in CreateWritable()
19 PlatformSharedMemoryRegion PlatformSharedMemoryRegion::CreateUnsafe( in CreateUnsafe()
24 PlatformSharedMemoryRegion::PlatformSharedMemoryRegion() = default;
25 PlatformSharedMemoryRegion::PlatformSharedMemoryRegion(
26 PlatformSharedMemoryRegion&& other) = default;
27 PlatformSharedMemoryRegion& PlatformSharedMemoryRegion::operator=(
28 PlatformSharedMemoryRegion&& other) = default;
29 PlatformSharedMemoryRegion::~PlatformSharedMemoryRegion() = default;
31 PlatformSharedMemoryRegion::ScopedPlatformHandle
32 PlatformSharedMemoryRegion::PassPlatformHandle() { in PassPlatformHandle()
Dplatform_shared_memory_region.h73 class BASE_EXPORT PlatformSharedMemoryRegion {
119 static PlatformSharedMemoryRegion CreateWritable(size_t size);
120 static PlatformSharedMemoryRegion CreateUnsafe(size_t size);
128 static PlatformSharedMemoryRegion Take(ScopedPlatformHandle handle,
135 PlatformSharedMemoryRegion();
138 PlatformSharedMemoryRegion(PlatformSharedMemoryRegion&&);
139 PlatformSharedMemoryRegion& operator=(PlatformSharedMemoryRegion&&);
143 ~PlatformSharedMemoryRegion();
161 PlatformSharedMemoryRegion Duplicate() const;
206 static PlatformSharedMemoryRegion Create(Mode mode, size_t size);
[all …]
Dplatform_shared_memory_region_mac.cc22 PlatformSharedMemoryRegion PlatformSharedMemoryRegion::Take( in Take()
39 return PlatformSharedMemoryRegion(std::move(handle), mode, size, guid); in Take()
42 mach_port_t PlatformSharedMemoryRegion::GetPlatformHandle() const { in GetPlatformHandle()
46 bool PlatformSharedMemoryRegion::IsValid() const { in IsValid()
50 PlatformSharedMemoryRegion PlatformSharedMemoryRegion::Duplicate() const { in Duplicate()
65 return PlatformSharedMemoryRegion(mac::ScopedMachSendRight(handle_.get()), in Duplicate()
69 bool PlatformSharedMemoryRegion::ConvertToReadOnly() { in ConvertToReadOnly()
73 bool PlatformSharedMemoryRegion::ConvertToReadOnly(void* mapped_addr) { in ConvertToReadOnly()
116 bool PlatformSharedMemoryRegion::ConvertToUnsafe() { in ConvertToUnsafe()
127 bool PlatformSharedMemoryRegion::MapAt(off_t offset, in MapAt()
[all …]
Dplatform_shared_memory_region_posix.cc71 PlatformSharedMemoryRegion PlatformSharedMemoryRegion::Take( in Take()
109 return PlatformSharedMemoryRegion(std::move(handle), mode, size, guid); in Take()
112 FDPair PlatformSharedMemoryRegion::GetPlatformHandle() const { in GetPlatformHandle()
116 bool PlatformSharedMemoryRegion::IsValid() const { in IsValid()
121 PlatformSharedMemoryRegion PlatformSharedMemoryRegion::Duplicate() const { in Duplicate()
134 return PlatformSharedMemoryRegion({std::move(duped_fd), ScopedFD()}, mode_, in Duplicate()
138 bool PlatformSharedMemoryRegion::ConvertToReadOnly() { in ConvertToReadOnly()
150 bool PlatformSharedMemoryRegion::ConvertToUnsafe() { in ConvertToUnsafe()
162 bool PlatformSharedMemoryRegion::MapAt(off_t offset, in MapAt()
191 PlatformSharedMemoryRegion PlatformSharedMemoryRegion::Create(Mode mode, in Create()
[all …]
Dwritable_shared_memory_region.cc16 subtle::PlatformSharedMemoryRegion handle = in Create()
17 subtle::PlatformSharedMemoryRegion::CreateWritable(size); in Create()
24 subtle::PlatformSharedMemoryRegion handle) { in Deserialize()
29 subtle::PlatformSharedMemoryRegion
38 subtle::PlatformSharedMemoryRegion handle = std::move(region.handle_); in ConvertToReadOnly()
47 subtle::PlatformSharedMemoryRegion handle = std::move(region.handle_); in ConvertToUnsafe()
85 subtle::PlatformSharedMemoryRegion handle) in WritableSharedMemoryRegion()
89 subtle::PlatformSharedMemoryRegion::Mode::kWritable); in WritableSharedMemoryRegion()
Dunsafe_shared_memory_region.cc15 subtle::PlatformSharedMemoryRegion handle = in Create()
16 subtle::PlatformSharedMemoryRegion::CreateUnsafe(size); in Create()
23 subtle::PlatformSharedMemoryRegion handle) { in Deserialize()
28 subtle::PlatformSharedMemoryRegion
68 subtle::PlatformSharedMemoryRegion handle) in UnsafeSharedMemoryRegion()
72 subtle::PlatformSharedMemoryRegion::Mode::kUnsafe); in UnsafeSharedMemoryRegion()
Dread_only_shared_memory_region.cc16 subtle::PlatformSharedMemoryRegion handle = in Create()
17 subtle::PlatformSharedMemoryRegion::CreateWritable(size); in Create()
43 subtle::PlatformSharedMemoryRegion handle) { in Deserialize()
48 subtle::PlatformSharedMemoryRegion
89 subtle::PlatformSharedMemoryRegion handle) in ReadOnlySharedMemoryRegion()
93 subtle::PlatformSharedMemoryRegion::Mode::kReadOnly); in ReadOnlySharedMemoryRegion()
Dunsafe_shared_memory_region.h43 subtle::PlatformSharedMemoryRegion handle);
49 static subtle::PlatformSharedMemoryRegion TakeHandleForSerialization(
102 explicit UnsafeSharedMemoryRegion(subtle::PlatformSharedMemoryRegion handle);
106 subtle::PlatformSharedMemoryRegion::PlatformHandle GetPlatformHandle() const { in GetPlatformHandle()
111 subtle::PlatformSharedMemoryRegion handle_;
Dwritable_shared_memory_region.h40 subtle::PlatformSharedMemoryRegion handle);
46 static subtle::PlatformSharedMemoryRegion TakeHandleForSerialization(
100 subtle::PlatformSharedMemoryRegion handle);
102 subtle::PlatformSharedMemoryRegion handle_;
Dread_only_shared_memory_region.h44 subtle::PlatformSharedMemoryRegion handle);
50 static subtle::PlatformSharedMemoryRegion TakeHandleForSerialization(
100 subtle::PlatformSharedMemoryRegion handle);
102 subtle::PlatformSharedMemoryRegion handle_;
Dshared_memory_mapping.h16 class PlatformSharedMemoryRegion; variable
128 subtle::PlatformSharedMemoryRegion* region,
/external/libchrome/mojo/core/
Dshared_buffer_dispatcher.cc110 base::subtle::PlatformSharedMemoryRegion region, in CreateFromPlatformSharedMemoryRegion()
164 base::subtle::PlatformSharedMemoryRegion::Mode mode; in Deserialize()
167 mode = base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly; in Deserialize()
170 mode = base::subtle::PlatformSharedMemoryRegion::Mode::kWritable; in Deserialize()
173 mode = base::subtle::PlatformSharedMemoryRegion::Mode::kUnsafe; in Deserialize()
180 auto region = base::subtle::PlatformSharedMemoryRegion::Take( in Deserialize()
193 base::subtle::PlatformSharedMemoryRegion
197 return base::subtle::PlatformSharedMemoryRegion(); in PassPlatformSharedMemoryRegion()
211 region_ = base::subtle::PlatformSharedMemoryRegion(); in Close()
232 base::subtle::PlatformSharedMemoryRegion::Mode::kUnsafe) { in DuplicateBufferHandle()
[all …]
Dshared_buffer_dispatcher.h53 base::subtle::PlatformSharedMemoryRegion region,
67 base::subtle::PlatformSharedMemoryRegion PassPlatformSharedMemoryRegion();
70 base::subtle::PlatformSharedMemoryRegion& GetRegionForTesting() { in GetRegionForTesting()
97 base::subtle::PlatformSharedMemoryRegion region);
101 base::subtle::PlatformSharedMemoryRegion region);
116 base::subtle::PlatformSharedMemoryRegion region_;
Dplatform_shared_memory_mapping.cc38 base::subtle::PlatformSharedMemoryRegion* region, in PlatformSharedMemoryMapping()
42 base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly in PlatformSharedMemoryMapping()
64 base::subtle::PlatformSharedMemoryRegion::Mode::kUnsafe) { in PlatformSharedMemoryMapping()
75 base::subtle::PlatformSharedMemoryRegion::Mode::kWritable); in PlatformSharedMemoryMapping()
Dplatform_handle_utils.h20 base::subtle::PlatformSharedMemoryRegion::ScopedPlatformHandle handle,
27 base::subtle::PlatformSharedMemoryRegion::ScopedPlatformHandle
Dshared_buffer_unittest.cc247 base::subtle::PlatformSharedMemoryRegion& region = in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
250 base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly); in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
309 base::subtle::PlatformSharedMemoryRegion& region = in TEST_F()
312 base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly); in TEST_F()
Dplatform_handle_utils.cc25 base::subtle::PlatformSharedMemoryRegion::ScopedPlatformHandle handle, in ExtractPlatformHandlesFromSharedMemoryRegionHandle()
45 base::subtle::PlatformSharedMemoryRegion::ScopedPlatformHandle
Dcore.cc674 base::subtle::PlatformSharedMemoryRegion ring_buffer_region = in CreateDataPipe()
693 base::subtle::PlatformSharedMemoryRegion::Take( in CreateDataPipe()
695 base::subtle::PlatformSharedMemoryRegion::Mode::kUnsafe, in CreateDataPipe()
1072 base::subtle::PlatformSharedMemoryRegion::Mode mode; in WrapPlatformSharedMemoryRegion()
1075 mode = base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly; in WrapPlatformSharedMemoryRegion()
1078 mode = base::subtle::PlatformSharedMemoryRegion::Mode::kWritable; in WrapPlatformSharedMemoryRegion()
1081 mode = base::subtle::PlatformSharedMemoryRegion::Mode::kUnsafe; in WrapPlatformSharedMemoryRegion()
1087 base::subtle::PlatformSharedMemoryRegion region = in WrapPlatformSharedMemoryRegion()
1088 base::subtle::PlatformSharedMemoryRegion::Take( in WrapPlatformSharedMemoryRegion()
1136 base::subtle::PlatformSharedMemoryRegion region = in UnwrapPlatformSharedMemoryRegion()
[all …]
/external/libchrome/mojo/public/cpp/system/
Dplatform_handle.cc37 base::subtle::PlatformSharedMemoryRegion region) { in WrapPlatformSharedMemoryRegion()
43 case base::subtle::PlatformSharedMemoryRegion::Mode::kReadOnly: in WrapPlatformSharedMemoryRegion()
46 case base::subtle::PlatformSharedMemoryRegion::Mode::kWritable: in WrapPlatformSharedMemoryRegion()
49 case base::subtle::PlatformSharedMemoryRegion::Mode::kUnsafe: in WrapPlatformSharedMemoryRegion()
57 base::subtle::PlatformSharedMemoryRegion::ScopedPlatformHandle handle = in WrapPlatformSharedMemoryRegion()
79 base::subtle::PlatformSharedMemoryRegion::Mode::kWritable) { in WrapPlatformSharedMemoryRegion()
99 base::subtle::PlatformSharedMemoryRegion UnwrapPlatformSharedMemoryRegion( in UnwrapPlatformSharedMemoryRegion()
102 return base::subtle::PlatformSharedMemoryRegion(); in UnwrapPlatformSharedMemoryRegion()
115 return base::subtle::PlatformSharedMemoryRegion(); in UnwrapPlatformSharedMemoryRegion()
117 base::subtle::PlatformSharedMemoryRegion::ScopedPlatformHandle region_handle; in UnwrapPlatformSharedMemoryRegion()
[all …]
/external/libchrome/mojo/public/cpp/base/
Dshared_memory.typemap18 …"mojo_base.mojom.PlatformSharedMemoryHandle=base::subtle::PlatformSharedMemoryRegion::ScopedPlatfo…
19 "mojo_base.mojom.PlatformSharedMemoryRegion=base::subtle::PlatformSharedMemoryRegion[move_only]",
20 "mojo_base.mojom.PlatformSharedMemoryRegion.Mode=base::subtle::PlatformSharedMemoryRegion::Mode",
/external/libchrome/base/test/
Dtest_shared_memory_util.cc138 subtle::PlatformSharedMemoryRegion region) { in CheckReadOnlyPlatformSharedMemoryRegionForTesting()
139 if (region.GetMode() != subtle::PlatformSharedMemoryRegion::Mode::kReadOnly) { in CheckReadOnlyPlatformSharedMemoryRegionForTesting()
142 subtle::PlatformSharedMemoryRegion::Mode::kReadOnly) in CheckReadOnlyPlatformSharedMemoryRegionForTesting()
163 subtle::PlatformSharedMemoryRegion* region) { in MapForTesting()
168 subtle::PlatformSharedMemoryRegion* region, in MapAtForTesting()
Dtest_shared_memory_util.h23 subtle::PlatformSharedMemoryRegion region);
32 subtle::PlatformSharedMemoryRegion* region,
37 subtle::PlatformSharedMemoryRegion* region);
/external/libchrome/ipc/
Dipc_message_utils.cc797 base::subtle::PlatformSharedMemoryRegion handle = in Write()
807 base::subtle::PlatformSharedMemoryRegion handle; in Read()
824 base::subtle::PlatformSharedMemoryRegion handle = in Write()
834 base::subtle::PlatformSharedMemoryRegion handle; in Read()
851 base::subtle::PlatformSharedMemoryRegion handle = in Write()
861 base::subtle::PlatformSharedMemoryRegion handle; in Read()
876 void ParamTraits<base::subtle::PlatformSharedMemoryRegion>::Write( in Write()
912 base::subtle::PlatformSharedMemoryRegion::Mode::kWritable) { in Write()
919 bool ParamTraits<base::subtle::PlatformSharedMemoryRegion>::Read( in Read()
927 *r = base::subtle::PlatformSharedMemoryRegion(); in Read()
[all …]
/external/libchrome/mojo/public/cpp/platform/tests/
Dplatform_handle_unittest.cc161 base::subtle::PlatformSharedMemoryRegion::ScopedPlatformHandle in GetSharedMemoryContents()
169 auto generic_region = base::subtle::PlatformSharedMemoryRegion::Take( in GetSharedMemoryContents()
171 base::subtle::PlatformSharedMemoryRegion::Mode::kUnsafe, in GetSharedMemoryContents()

12