Searched refs:MessageAttachment (Results 1 – 13 of 13) sorted by relevance
29 const std::vector<scoped_refptr<MessageAttachment>>& attachments, in count_attachments_of_type()30 MessageAttachment::Type type) { in count_attachments_of_type()32 for (const scoped_refptr<MessageAttachment>& attachment : attachments) { in count_attachments_of_type()63 MessageAttachment::TYPE_PLATFORM_FILE); in num_descriptors()68 MessageAttachment::TYPE_MOJO_HANDLE); in num_mojo_handles()85 scoped_refptr<MessageAttachment> attachment, in AddAttachment()89 if (attachment->GetType() == MessageAttachment::TYPE_PLATFORM_FILE && in AddAttachment()97 case MessageAttachment::TYPE_PLATFORM_FILE: in AddAttachment()98 case MessageAttachment::TYPE_MOJO_HANDLE: in AddAttachment()103 case MessageAttachment::TYPE_BROKERABLE_ATTACHMENT: in AddAttachment()[all …]
24 class MessageAttachment; variable67 bool AddAttachment(scoped_refptr<MessageAttachment> attachment,72 bool AddAttachment(scoped_refptr<MessageAttachment> attachment);81 scoped_refptr<MessageAttachment> GetNonBrokerableAttachmentAt(unsigned index);85 scoped_refptr<MessageAttachment> GetBrokerableAttachmentAt(unsigned index);147 std::vector<scoped_refptr<MessageAttachment>> attachments_;
19 class IPC_EXPORT MessageAttachment : public base::Pickle::Attachment {34 friend class base::RefCountedThreadSafe<MessageAttachment>;35 MessageAttachment();36 ~MessageAttachment() override;38 DISALLOW_COPY_AND_ASSIGN(MessageAttachment);
9 MessageAttachment::MessageAttachment() { in MessageAttachment() function in IPC::MessageAttachment12 MessageAttachment::~MessageAttachment() { in ~MessageAttachment()
22 MessageAttachment::Type PlatformFileAttachment::GetType() const { in GetType()32 scoped_refptr<MessageAttachment> attachment) { in GetPlatformFile()33 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()
18 class IPC_EXPORT PlatformFileAttachment : public MessageAttachment {38 base::PlatformFile GetPlatformFile(scoped_refptr<MessageAttachment> attachment);
20 MessageAttachment::Type MojoHandleAttachment::GetType() const { in GetType()
23 class IPC_EXPORT MojoHandleAttachment : public MessageAttachment {
22 class IPC_EXPORT BrokerableAttachment : public MessageAttachment {
35 class MessageAttachment; variable
248 make_scoped_refptr(static_cast<MessageAttachment*>(attachment.get())), in WriteAttachment()
682 static_cast<MessageAttachment*>(attachment.get())->TakePlatformFile(), in Read()