Searched refs:MessageAttachment (Results 1 – 19 of 19) sorted by relevance
10 IPC::MessageAttachment::Type11 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 …]
21 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 …]
20 class IPC_MESSAGE_SUPPORT_EXPORT MessageAttachment31 static scoped_refptr<MessageAttachment> CreateFromMojoHandle(40 friend class base::RefCountedThreadSafe<MessageAttachment>;41 MessageAttachment();42 ~MessageAttachment() override;44 DISALLOW_COPY_AND_ASSIGN(MessageAttachment);
19 class MessageAttachment; variable43 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_;
43 MessageAttachment::MessageAttachment() = default;45 MessageAttachment::~MessageAttachment() = default;47 mojo::ScopedHandle MessageAttachment::TakeMojoHandle() { in TakeMojoHandle()107 scoped_refptr<MessageAttachment> MessageAttachment::CreateFromMojoHandle( in CreateFromMojoHandle()
15 struct TypeConverter<IPC::MessageAttachment::Type,17 static IPC::MessageAttachment::Type Convert(23 IPC::MessageAttachment::Type> {25 IPC::MessageAttachment::Type type);
21 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()
33 MessageAttachment::Type type = in ReadMessagePipeFrom()34 static_cast<MessageAttachment*>(attachment.get())->GetType(); in ReadMessagePipeFrom()35 if (type != MessageAttachment::Type::MOJO_HANDLE) { in ReadMessagePipeFrom()
69 MessageAttachment::Type type = in Read()70 static_cast<MessageAttachment*>(attachment.get())->GetType(); in Read()71 if (type != MessageAttachment::Type::MOJO_HANDLE) { in Read()
19 : public MessageAttachment {39 base::PlatformFile GetPlatformFile(scoped_refptr<MessageAttachment> attachment);
21 class MessageAttachment; variable101 std::vector<scoped_refptr<MessageAttachment>> input_attachments_;
310 scoped_refptr<MessageAttachment> unwrapped_attachment = in WriteToMessageAttachmentSet()311 MessageAttachment::CreateFromMojoHandle( in WriteToMessageAttachmentSet()313 mojo::ConvertTo<MessageAttachment::Type>(handle->type)); in WriteToMessageAttachmentSet()
19 MessageAttachment::Type MojoHandleAttachment::GetType() const { in GetType()
24 : public MessageAttachment {
552 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()
288 scoped_refptr<MessageAttachment> attachment = in ProcessOutgoingMessages()290 DCHECK_EQ(MessageAttachment::Type::PLATFORM_FILE, attachment->GetType()); in ProcessOutgoingMessages()
170 base::WrapRefCounted(static_cast<MessageAttachment*>(attachment.get())), in WriteAttachment()
445 IPC::MessageAttachment::Type::PLATFORM_FILE, in ReadReceivedFile()446 static_cast<IPC::MessageAttachment*>(attachment.get())->GetType()); in ReadReceivedFile()
115 auto attachment = IPC::MessageAttachment::CreateFromMojoHandle( in DeserializeMessageAttachments()117 mojo::ConvertTo<IPC::MessageAttachment::Type>( in DeserializeMessageAttachments()