Lines Matching refs:MessageAttachment
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()
116 scoped_refptr<MessageAttachment> attachment) { in AddAttachment()
122 scoped_refptr<MessageAttachment>
127 return scoped_refptr<MessageAttachment>(); in GetNonBrokerableAttachmentAt()
157 return scoped_refptr<MessageAttachment>(); in GetNonBrokerableAttachmentAt()
164 scoped_refptr<MessageAttachment>
169 return scoped_refptr<MessageAttachment>(); in GetBrokerableAttachmentAt()
174 return scoped_refptr<MessageAttachment>(brokerable_attachment.get()); in GetBrokerableAttachmentAt()