Home
last modified time | relevance | path

Searched refs:SharedMemoryHandle (Results 1 – 22 of 22) sorted by relevance

/external/libchrome/base/memory/
Dshared_memory_handle_mac.cc17 SharedMemoryHandle::SharedMemoryHandle() {} in SharedMemoryHandle() function in base::SharedMemoryHandle
19 SharedMemoryHandle::SharedMemoryHandle(mach_vm_size_t size) { in SharedMemoryHandle() function in base::SharedMemoryHandle
39 SharedMemoryHandle::SharedMemoryHandle(mach_port_t memory_object, in SharedMemoryHandle() function in base::SharedMemoryHandle
47 SharedMemoryHandle::SharedMemoryHandle(const SharedMemoryHandle& handle) { in SharedMemoryHandle() function in base::SharedMemoryHandle
51 SharedMemoryHandle& SharedMemoryHandle::operator=( in operator =()
52 const SharedMemoryHandle& handle) { in operator =()
60 SharedMemoryHandle SharedMemoryHandle::Duplicate() const { in Duplicate()
62 return SharedMemoryHandle(MACH_PORT_NULL, 0, 0); in Duplicate()
68 SharedMemoryHandle handle(*this); in Duplicate()
73 bool SharedMemoryHandle::operator==(const SharedMemoryHandle& handle) const { in operator ==()
[all …]
Dshared_memory_handle.h32 typedef FileDescriptor SharedMemoryHandle; typedef
34 class BASE_EXPORT SharedMemoryHandle {
37 SharedMemoryHandle();
38 SharedMemoryHandle(HANDLE h, base::ProcessId pid);
42 SharedMemoryHandle(const SharedMemoryHandle& handle);
46 SharedMemoryHandle& operator=(const SharedMemoryHandle& handle);
49 bool operator==(const SharedMemoryHandle& handle) const;
50 bool operator!=(const SharedMemoryHandle& handle) const;
86 class BASE_EXPORT SharedMemoryHandle {
89 SharedMemoryHandle();
[all …]
Dshared_memory.h84 SharedMemory(const SharedMemoryHandle& handle, bool read_only);
91 static bool IsHandleValid(const SharedMemoryHandle& handle);
94 static SharedMemoryHandle NULLHandle();
97 static void CloseHandle(const SharedMemoryHandle& handle);
104 static SharedMemoryHandle DuplicateHandle(const SharedMemoryHandle& handle);
108 static int GetFdFromSharedMemoryHandle(const SharedMemoryHandle& handle);
115 static bool GetSizeFromSharedMemoryHandle(const SharedMemoryHandle& handle,
195 SharedMemoryHandle handle() const;
213 SharedMemoryHandle* new_handle) { in ShareReadOnlyToProcess()
224 SharedMemoryHandle* new_handle) { in GiveReadOnlyToProcess()
[all …]
Dshared_memory_mac.cc33 bool MakeMachSharedMemoryHandleReadOnly(SharedMemoryHandle* new_handle, in MakeMachSharedMemoryHandleReadOnly()
34 SharedMemoryHandle handle, in MakeMachSharedMemoryHandleReadOnly()
66 *new_handle = SharedMemoryHandle(named_right, size, base::GetCurrentProcId()); in MakeMachSharedMemoryHandleReadOnly()
80 SharedMemory::SharedMemory(const SharedMemoryHandle& handle, bool read_only) in SharedMemory()
93 bool SharedMemory::IsHandleValid(const SharedMemoryHandle& handle) { in IsHandleValid()
98 SharedMemoryHandle SharedMemory::NULLHandle() { in NULLHandle()
99 return SharedMemoryHandle(); in NULLHandle()
103 void SharedMemory::CloseHandle(const SharedMemoryHandle& handle) { in CloseHandle()
114 SharedMemoryHandle SharedMemory::DuplicateHandle( in DuplicateHandle()
115 const SharedMemoryHandle& handle) { in DuplicateHandle()
[all …]
Dshared_memory_posix.cc121 SharedMemory::SharedMemory(const SharedMemoryHandle& handle, bool read_only) in SharedMemory()
136 bool SharedMemory::IsHandleValid(const SharedMemoryHandle& handle) { in IsHandleValid()
141 SharedMemoryHandle SharedMemory::NULLHandle() { in NULLHandle()
142 return SharedMemoryHandle(); in NULLHandle()
146 void SharedMemory::CloseHandle(const SharedMemoryHandle& handle) { in CloseHandle()
158 SharedMemoryHandle SharedMemory::DuplicateHandle( in DuplicateHandle()
159 const SharedMemoryHandle& handle) { in DuplicateHandle()
168 const SharedMemoryHandle& handle) { in GetFdFromSharedMemoryHandle()
179 const SharedMemoryHandle& handle, in GetSizeFromSharedMemoryHandle()
387 SharedMemoryHandle SharedMemory::handle() const { in handle()
[all …]
Dshared_memory_mac_unittest.cc58 SharedMemoryHandle shm(size); in CreateSharedMemory()
249 SharedMemoryHandle shm(memory_object, in MULTIPROCESS_TEST_MAIN()
265 SharedMemoryHandle shm(s_memory_size); in TEST_F()
289 SharedMemoryHandle shm(memory_object, in MULTIPROCESS_TEST_MAIN()
311 SharedMemoryHandle shm(s_memory_size); in TEST_F()
350 SharedMemoryHandle shm(s_memory_size); in TEST_F()
369 SharedMemoryHandle shm2 = shared_memory->handle().Duplicate(); in TEST_F()
384 SharedMemoryHandle shm2; in TEST_F()
412 SharedMemoryHandle shm2; in TEST_F()
446 SharedMemoryHandle shm2; in TEST_F()
Dshared_memory_unittest.cc333 SharedMemoryHandle readonly_handle; in TEST()
359 SharedMemoryHandle handle = readonly_shmem.handle(); in TEST()
413 SharedMemoryHandle shared_handle; in TEST()
425 shared_handle = SharedMemoryHandle(); in TEST()
596 SharedMemoryHandle(section_handle.Take(), ::GetCurrentProcessId()), true); in TEST()
611 SharedMemoryHandle(handle_no_query, ::GetCurrentProcessId()), true); in TEST()
/external/libmojo/mojo/edk/embedder/
Dplatform_shared_buffer.cc30 base::SharedMemoryHandle memory_handle) { in SharedMemoryToPlatformHandle()
100 base::SharedMemoryHandle handle) { in CreateFromSharedMemoryHandle()
143 base::SharedMemoryHandle handle; in MapNoCheck()
161 base::SharedMemoryHandle handle; in DuplicatePlatformHandle()
184 base::SharedMemoryHandle PlatformSharedBuffer::DuplicateSharedMemoryHandle() { in DuplicateSharedMemoryHandle()
196 base::SharedMemoryHandle handle; in CreateReadOnlyDuplicate()
203 base::SharedMemoryHandle handle; in CreateReadOnlyDuplicate()
239 base::SharedMemoryHandle handle(platform_handle.release().handle, in InitFromPlatformHandle()
242 base::SharedMemoryHandle handle; in InitFromPlatformHandle()
243 handle = base::SharedMemoryHandle(platform_handle.release().port, num_bytes_, in InitFromPlatformHandle()
[all …]
Dplatform_shared_buffer.h62 base::SharedMemoryHandle handle);
88 base::SharedMemoryHandle DuplicateSharedMemoryHandle();
118 void InitFromSharedMemoryHandle(base::SharedMemoryHandle handle);
151 PlatformSharedBufferMapping(base::SharedMemoryHandle handle, in PlatformSharedBufferMapping()
Dembedder.h103 CreateSharedBufferWrapper(base::SharedMemoryHandle shared_memory_handle,
117 base::SharedMemoryHandle* shared_memory_handle,
Dembedder.cc101 base::SharedMemoryHandle shared_memory_handle, in CreateSharedBufferWrapper()
111 base::SharedMemoryHandle* shared_memory_handle, in PassSharedMemoryHandle()
Dembedder_unittest.cc348 base::SharedMemoryHandle shm_handle = base::SharedMemory::DuplicateHandle( in TEST_F()
405 base::SharedMemoryHandle shm_handle; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
427 base::SharedMemoryHandle shm_handle = base::SharedMemory::DuplicateHandle( in TEST_F()
501 base::SharedMemoryHandle shm_handle = in TEST_F()
/external/libmojo/mojo/public/cpp/system/
Dplatform_handle.cc61 const base::SharedMemoryHandle& memory_handle, in WrapSharedMemoryHandle()
91 base::SharedMemoryHandle* memory_handle, in UnwrapSharedMemoryHandle()
112 *memory_handle = base::SharedMemoryHandle( in UnwrapSharedMemoryHandle()
117 *memory_handle = base::SharedMemoryHandle( in UnwrapSharedMemoryHandle()
121 *memory_handle = base::SharedMemoryHandle( in UnwrapSharedMemoryHandle()
Dplatform_handle.h63 const base::SharedMemoryHandle& memory_handle,
70 base::SharedMemoryHandle* memory_handle,
/external/libmojo/ipc/
Dipc_message_utils.cc698 void ParamTraits<base::SharedMemoryHandle>::GetSize(base::PickleSizer* sizer, in GetSize()
705 void ParamTraits<base::SharedMemoryHandle>::Write(base::Pickle* m, in Write()
720 bool ParamTraits<base::SharedMemoryHandle>::Read(const base::Pickle* m, in Read()
731 *r = base::SharedMemoryHandle(mach_port_mac.get_mach_port(), in Read()
737 void ParamTraits<base::SharedMemoryHandle>::Log(const param_type& p, in Log()
744 void ParamTraits<base::SharedMemoryHandle>::GetSize(base::PickleSizer* s, in GetSize()
754 void ParamTraits<base::SharedMemoryHandle>::Write(base::Pickle* m, in Write()
771 bool ParamTraits<base::SharedMemoryHandle>::Read(const base::Pickle* m, in Read()
782 *r = base::SharedMemoryHandle(handle_win.get_handle(), in Read()
791 *r = base::SharedMemoryHandle(handle, base::GetCurrentProcId()); in Read()
[all …]
Dipc_message_utils.h46 class SharedMemoryHandle; variable
569 struct IPC_EXPORT ParamTraits<base::SharedMemoryHandle> {
570 typedef base::SharedMemoryHandle param_type;
/external/libmojo/mojo/edk/system/
Dcore.h94 base::SharedMemoryHandle shared_memory_handle,
101 base::SharedMemoryHandle* shared_memory_handle,
Dshared_buffer_unittest.cc239 base::SharedMemoryHandle shm_handle; in DEFINE_TEST_CLIENT_TEST_WITH_PIPE()
301 base::SharedMemoryHandle shm_handle; in TEST_F()
Dcore.cc247 base::SharedMemoryHandle shared_memory_handle, in CreateSharedBufferWrapper()
272 base::SharedMemoryHandle* shared_memory_handle, in PassSharedMemoryHandle()
/external/libchrome/base/metrics/
Dpersistent_histogram_allocator.h417 static void CreateWithSharedMemoryHandle(const SharedMemoryHandle& handle,
Dpersistent_memory_allocator_unittest.cc523 SharedMemoryHandle shared_handle_1; in TEST()
524 SharedMemoryHandle shared_handle_2; in TEST()
Dpersistent_histogram_allocator.cc738 const SharedMemoryHandle& handle, in CreateWithSharedMemoryHandle()