/external/libmojo/mojo/public/cpp/system/ |
D | platform_handle.cc | 30 MojoPlatformHandle platform_handle; in WrapPlatformFile() local 31 platform_handle.struct_size = sizeof(MojoPlatformHandle); in WrapPlatformFile() 32 platform_handle.type = kPlatformFileHandleType; in WrapPlatformFile() 33 platform_handle.value = PlatformHandleValueFromPlatformFile(platform_file); in WrapPlatformFile() 36 MojoResult result = MojoWrapPlatformHandle(&platform_handle, &mojo_handle); in WrapPlatformFile() 43 MojoPlatformHandle platform_handle; in UnwrapPlatformFile() local 44 platform_handle.struct_size = sizeof(MojoPlatformHandle); in UnwrapPlatformFile() 46 &platform_handle); in UnwrapPlatformFile() 50 if (platform_handle.type == MOJO_PLATFORM_HANDLE_TYPE_INVALID) { in UnwrapPlatformFile() 53 CHECK_EQ(platform_handle.type, kPlatformFileHandleType); in UnwrapPlatformFile() [all …]
|
D | BUILD.gn | 15 "platform_handle.cc", 16 "platform_handle.h",
|
/external/libmojo/mojo/edk/embedder/ |
D | platform_handle_utils_win.cc | 14 ScopedPlatformHandle DuplicatePlatformHandle(PlatformHandle platform_handle) { in DuplicatePlatformHandle() argument 15 DCHECK(platform_handle.is_valid()); in DuplicatePlatformHandle() 18 CHECK_NE(platform_handle.handle, INVALID_HANDLE_VALUE); in DuplicatePlatformHandle() 19 if (!DuplicateHandle(GetCurrentProcess(), platform_handle.handle, in DuplicatePlatformHandle()
|
D | platform_handle_utils_posix.cc | 14 ScopedPlatformHandle DuplicatePlatformHandle(PlatformHandle platform_handle) { in DuplicatePlatformHandle() argument 15 DCHECK(platform_handle.is_valid()); in DuplicatePlatformHandle() 18 return ScopedPlatformHandle(PlatformHandle(dup(platform_handle.handle))); in DuplicatePlatformHandle()
|
D | entrypoints.cc | 223 MojoResult MojoWrapPlatformHandleImpl(const MojoPlatformHandle* platform_handle, in MojoWrapPlatformHandleImpl() argument 225 return g_core->WrapPlatformHandle(platform_handle, mojo_handle); in MojoWrapPlatformHandleImpl() 229 MojoPlatformHandle* platform_handle) { in MojoUnwrapPlatformHandleImpl() argument 230 return g_core->UnwrapPlatformHandle(mojo_handle, platform_handle); in MojoUnwrapPlatformHandleImpl() 234 const MojoPlatformHandle* platform_handle, in MojoWrapPlatformSharedBufferHandleImpl() argument 238 return g_core->WrapPlatformSharedBufferHandle(platform_handle, num_bytes, in MojoWrapPlatformSharedBufferHandleImpl() 244 MojoPlatformHandle* platform_handle, in MojoUnwrapPlatformSharedBufferHandleImpl() argument 247 return g_core->UnwrapPlatformSharedBufferHandle(mojo_handle, platform_handle, in MojoUnwrapPlatformSharedBufferHandleImpl()
|
D | platform_shared_buffer.cc | 61 ScopedPlatformHandle platform_handle) { in CreateFromPlatformHandle() argument 65 if (!rv->InitFromPlatformHandle(std::move(platform_handle))) { in CreateFromPlatformHandle() 235 ScopedPlatformHandle platform_handle) { in InitFromPlatformHandle() argument 239 base::SharedMemoryHandle handle(platform_handle.release().handle, in InitFromPlatformHandle() 243 handle = base::SharedMemoryHandle(platform_handle.release().port, num_bytes_, in InitFromPlatformHandle() 246 base::SharedMemoryHandle handle(platform_handle.release().handle, false); in InitFromPlatformHandle()
|
D | embedder.cc | 88 ScopedPlatformHandle platform_handle, in CreatePlatformHandleWrapper() argument 91 std::move(platform_handle), platform_handle_wrapper_handle); in CreatePlatformHandleWrapper() 95 ScopedPlatformHandle* platform_handle) { in PassWrappedPlatformHandle() argument 97 platform_handle_wrapper_handle, platform_handle); in PassWrappedPlatformHandle()
|
D | BUILD.gn | 14 "platform_handle.h", 86 "platform_handle.cc", 87 "platform_handle.h",
|
D | embedder.h | 87 CreatePlatformHandleWrapper(ScopedPlatformHandle platform_handle, 95 ScopedPlatformHandle* platform_handle);
|
D | platform_shared_buffer.h | 47 ScopedPlatformHandle platform_handle); 113 bool InitFromPlatformHandle(ScopedPlatformHandle platform_handle);
|
D | platform_handle_utils.h | 28 DuplicatePlatformHandle(PlatformHandle platform_handle);
|
/external/libmojo/mojo/edk/system/ |
D | core.cc | 61 const MojoPlatformHandle* platform_handle, in MojoPlatformHandleToScopedPlatformHandle() argument 63 if (platform_handle->struct_size != sizeof(MojoPlatformHandle)) in MojoPlatformHandleToScopedPlatformHandle() 66 if (platform_handle->type == MOJO_PLATFORM_HANDLE_TYPE_INVALID) { in MojoPlatformHandleToScopedPlatformHandle() 72 switch (platform_handle->type) { in MojoPlatformHandleToScopedPlatformHandle() 75 handle.handle = static_cast<int>(platform_handle->value); in MojoPlatformHandleToScopedPlatformHandle() 82 handle.port = static_cast<mach_port_t>(platform_handle->value); in MojoPlatformHandleToScopedPlatformHandle() 88 handle.handle = reinterpret_cast<HANDLE>(platform_handle->value); in MojoPlatformHandleToScopedPlatformHandle() 102 MojoPlatformHandle* platform_handle) { in ScopedPlatformHandleToMojoPlatformHandle() argument 103 if (platform_handle->struct_size != sizeof(MojoPlatformHandle)) in ScopedPlatformHandleToMojoPlatformHandle() 107 platform_handle->type = MOJO_PLATFORM_HANDLE_TYPE_INVALID; in ScopedPlatformHandleToMojoPlatformHandle() [all …]
|
D | core.h | 56 ScopedPlatformHandle platform_handle, 64 void InitChild(ScopedPlatformHandle platform_handle); 87 MojoResult CreatePlatformHandleWrapper(ScopedPlatformHandle platform_handle, 91 ScopedPlatformHandle* platform_handle); 243 MojoResult WrapPlatformHandle(const MojoPlatformHandle* platform_handle, 246 MojoPlatformHandle* platform_handle); 248 const MojoPlatformHandle* platform_handle, 254 MojoPlatformHandle* platform_handle,
|
D | platform_handle_dispatcher.cc | 15 ScopedPlatformHandle platform_handle) { in Create() argument 16 return new PlatformHandleDispatcher(std::move(platform_handle)); in Create() 95 ScopedPlatformHandle platform_handle) in PlatformHandleDispatcher() argument 96 : platform_handle_(std::move(platform_handle)) {} in PlatformHandleDispatcher()
|
D | broker_posix.cc | 26 bool WaitForBrokerMessage(PlatformHandle platform_handle, in WaitForBrokerMessage() argument 34 platform_handle, const_cast<void*>(message->data()), in WaitForBrokerMessage() 68 Broker::Broker(ScopedPlatformHandle platform_handle) in Broker() argument 69 : sync_channel_(std::move(platform_handle)) { in Broker()
|
D | broker_host_posix.cc | 31 BrokerHost::BrokerHost(ScopedPlatformHandle platform_handle) { in BrokerHost() argument 32 CHECK(platform_handle.is_valid()); in BrokerHost() 36 channel_ = Channel::Create(this, std::move(platform_handle), in BrokerHost()
|
D | platform_handle_dispatcher.h | 21 ScopedPlatformHandle platform_handle); 47 PlatformHandleDispatcher(ScopedPlatformHandle platform_handle);
|
D | node_controller.cc | 166 ScopedPlatformHandle platform_handle, in ConnectToChild() argument 201 base::Passed(&platform_handle), in ConnectToChild() 230 void NodeController::ConnectToParent(ScopedPlatformHandle platform_handle) { in ConnectToParent() argument 236 broker_.reset(new Broker(std::move(platform_handle))); in ConnectToParent() 237 platform_handle = broker_->GetParentPlatformHandle(); in ConnectToParent() 241 if (!platform_handle.is_valid()) { in ConnectToParent() 254 base::Passed(&platform_handle))); in ConnectToParent() 379 ScopedPlatformHandle platform_handle, in ConnectToChildOnIOThread() argument 387 BrokerHost* broker_host = new BrokerHost(std::move(platform_handle)); in ConnectToChildOnIOThread() 394 NodeChannel::Create(this, std::move(platform_handle), io_task_runner_, in ConnectToChildOnIOThread() [all …]
|
D | node_controller.h | 76 ScopedPlatformHandle platform_handle, 86 void ConnectToParent(ScopedPlatformHandle platform_handle); 144 ScopedPlatformHandle platform_handle, 147 void ConnectToParentOnIOThread(ScopedPlatformHandle platform_handle);
|
D | shared_buffer_dispatcher.cc | 141 PlatformHandle platform_handle; in Deserialize() local 144 std::swap(platform_handle, *platform_handles); in Deserialize() 152 ScopedPlatformHandle(platform_handle))); in Deserialize()
|
D | broker.h | 23 explicit Broker(ScopedPlatformHandle platform_handle);
|
/external/libmojo/mojo/public/c/system/ |
D | platform_handle.h | 103 MojoWrapPlatformHandle(const struct MojoPlatformHandle* platform_handle, 120 struct MojoPlatformHandle* platform_handle); // Out 146 const struct MojoPlatformHandle* platform_handle, 176 struct MojoPlatformHandle* platform_handle,
|
D | thunks.cc | 245 const struct MojoPlatformHandle* platform_handle, in MojoWrapPlatformHandle() argument 248 return g_thunks.WrapPlatformHandle(platform_handle, mojo_handle); in MojoWrapPlatformHandle() 253 struct MojoPlatformHandle* platform_handle) { in MojoUnwrapPlatformHandle() argument 255 return g_thunks.UnwrapPlatformHandle(mojo_handle, platform_handle); in MojoUnwrapPlatformHandle() 259 const struct MojoPlatformHandle* platform_handle, in MojoWrapPlatformSharedBufferHandle() argument 264 return g_thunks.WrapPlatformSharedBufferHandle(platform_handle, num_bytes, in MojoWrapPlatformSharedBufferHandle() 270 struct MojoPlatformHandle* platform_handle, in MojoUnwrapPlatformSharedBufferHandle() argument 274 return g_thunks.UnwrapPlatformSharedBufferHandle(mojo_handle, platform_handle, in MojoUnwrapPlatformSharedBufferHandle()
|
D | thunks.h | 141 const struct MojoPlatformHandle* platform_handle, 145 struct MojoPlatformHandle* platform_handle); 147 const struct MojoPlatformHandle* platform_handle, 153 struct MojoPlatformHandle* platform_handle,
|
/external/libchrome/base/threading/ |
D | platform_thread_posix.cc | 67 PlatformThread::CurrentHandle().platform_handle(), in ThreadFunc() 73 PlatformThread::CurrentHandle().platform_handle(), in ThreadFunc() 209 CHECK_EQ(0, pthread_join(thread_handle.platform_handle(), NULL)); in Join() 214 CHECK_EQ(0, pthread_detach(thread_handle.platform_handle())); in Detach()
|