Home
last modified time | relevance | path

Searched refs:MessageAttachment (Results 1 – 17 of 17) sorted by relevance

/external/libchrome/ipc/
Dnative_handle_type_converters.cc10 IPC::MessageAttachment::Type
11 TypeConverter<IPC::MessageAttachment::Type, native::SerializedHandle_Type>::
15 return IPC::MessageAttachment::Type::MOJO_HANDLE; in Convert()
17 return IPC::MessageAttachment::Type::PLATFORM_FILE; in Convert()
19 return IPC::MessageAttachment::Type::WIN_HANDLE; in Convert()
21 return IPC::MessageAttachment::Type::MACH_PORT; in Convert()
23 return IPC::MessageAttachment::Type::FUCHSIA_HANDLE; in Convert()
26 return IPC::MessageAttachment::Type::MOJO_HANDLE; in Convert()
32 IPC::MessageAttachment::Type>::Convert(IPC::MessageAttachment::Type type) { in Convert()
34 case IPC::MessageAttachment::Type::MOJO_HANDLE: in Convert()
[all …]
Dipc_message_attachment_set.cc21 const std::vector<scoped_refptr<MessageAttachment>>& attachments, in count_attachments_of_type()
22 MessageAttachment::Type type) { in count_attachments_of_type()
24 for (const scoped_refptr<MessageAttachment>& attachment : attachments) { in count_attachments_of_type()
55 MessageAttachment::Type::PLATFORM_FILE); in num_descriptors()
63 scoped_refptr<MessageAttachment> attachment, in AddAttachment()
66 if (attachment->GetType() == MessageAttachment::Type::PLATFORM_FILE && in AddAttachment()
74 case MessageAttachment::Type::PLATFORM_FILE: in AddAttachment()
75 case MessageAttachment::Type::MOJO_HANDLE: in AddAttachment()
76 case MessageAttachment::Type::WIN_HANDLE: in AddAttachment()
77 case MessageAttachment::Type::MACH_PORT: in AddAttachment()
[all …]
Dipc_message_attachment.h20 class IPC_MESSAGE_SUPPORT_EXPORT MessageAttachment
31 static scoped_refptr<MessageAttachment> CreateFromMojoHandle(
40 friend class base::RefCountedThreadSafe<MessageAttachment>;
41 MessageAttachment();
42 ~MessageAttachment() override;
44 DISALLOW_COPY_AND_ASSIGN(MessageAttachment);
Dipc_message_attachment_set.h19 class MessageAttachment; variable
43 bool AddAttachment(scoped_refptr<MessageAttachment> attachment,
47 bool AddAttachment(scoped_refptr<MessageAttachment> attachment);
55 scoped_refptr<MessageAttachment> GetAttachmentAt(unsigned index);
83 std::vector<scoped_refptr<MessageAttachment>> attachments_;
Dnative_handle_type_converters.h15 struct TypeConverter<IPC::MessageAttachment::Type,
17 static IPC::MessageAttachment::Type Convert(
23 IPC::MessageAttachment::Type> {
25 IPC::MessageAttachment::Type type);
Dipc_message_attachment.cc43 MessageAttachment::MessageAttachment() = default;
45 MessageAttachment::~MessageAttachment() = default;
47 mojo::ScopedHandle MessageAttachment::TakeMojoHandle() { in TakeMojoHandle()
107 scoped_refptr<MessageAttachment> MessageAttachment::CreateFromMojoHandle( in CreateFromMojoHandle()
Dipc_platform_file_attachment_posix.cc21 MessageAttachment::Type PlatformFileAttachment::GetType() const { in GetType()
31 scoped_refptr<MessageAttachment> attachment) { in GetPlatformFile()
32 DCHECK_EQ(attachment->GetType(), MessageAttachment::Type::PLATFORM_FILE); in GetPlatformFile()
Dipc_mojo_message_helper.cc33 MessageAttachment::Type type = in ReadMessagePipeFrom()
34 static_cast<MessageAttachment*>(attachment.get())->GetType(); in ReadMessagePipeFrom()
35 if (type != MessageAttachment::Type::MOJO_HANDLE) { in ReadMessagePipeFrom()
Dipc_mojo_param_traits.cc69 MessageAttachment::Type type = in Read()
70 static_cast<MessageAttachment*>(attachment.get())->GetType(); in Read()
71 if (type != MessageAttachment::Type::MOJO_HANDLE) { in Read()
Dipc_platform_file_attachment_posix.h19 : public MessageAttachment {
39 base::PlatformFile GetPlatformFile(scoped_refptr<MessageAttachment> attachment);
Dipc_mojo_handle_attachment.cc19 MessageAttachment::Type MojoHandleAttachment::GetType() const { in GetType()
Dipc_mojo_handle_attachment.h24 : public MessageAttachment {
Dipc_channel_mojo.cc310 scoped_refptr<MessageAttachment> unwrapped_attachment = in WriteToMessageAttachmentSet()
311 MessageAttachment::CreateFromMojoHandle( in WriteToMessageAttachmentSet()
313 mojo::ConvertTo<MessageAttachment::Type>(handle->type)); in WriteToMessageAttachmentSet()
Dipc_message_utils.cc552 if (static_cast<MessageAttachment*>(attachment.get())->GetType() != in Read()
553 MessageAttachment::Type::PLATFORM_FILE) { in Read()
622 static_cast<MessageAttachment*>(tracking_pipe_attachment.get()) in Read()
733 if (static_cast<MessageAttachment*>(attachment.get())->GetType() != in Read()
734 MessageAttachment::Type::PLATFORM_FILE) { in Read()
964 if (static_cast<MessageAttachment*>(attachment.get())->GetType() != in Read()
965 MessageAttachment::Type::PLATFORM_FILE) { in Read()
981 if (static_cast<MessageAttachment*>(readonly_attachment.get())->GetType() != in Read()
982 MessageAttachment::Type::PLATFORM_FILE) { in Read()
Dipc_message.cc170 base::WrapRefCounted(static_cast<MessageAttachment*>(attachment.get())), in WriteAttachment()
Dipc_channel_mojo_unittest.cc445 IPC::MessageAttachment::Type::PLATFORM_FILE, in ReadReceivedFile()
446 static_cast<IPC::MessageAttachment*>(attachment.get())->GetType()); in ReadReceivedFile()
/external/libchrome/mojo/public/cpp/bindings/lib/
Dnative_struct_serialization.cc115 auto attachment = IPC::MessageAttachment::CreateFromMojoHandle( in DeserializeMessageAttachments()
117 mojo::ConvertTo<IPC::MessageAttachment::Type>( in DeserializeMessageAttachments()