Lines Matching refs:attachment
32 for (const scoped_refptr<MessageAttachment>& attachment : attachments) { in count_attachments_of_type() local
33 if (attachment->GetType() == type) in count_attachments_of_type()
85 scoped_refptr<MessageAttachment> attachment, in AddAttachment() argument
89 if (attachment->GetType() == MessageAttachment::TYPE_PLATFORM_FILE && in AddAttachment()
96 switch (attachment->GetType()) { in AddAttachment()
99 attachments_.push_back(attachment); in AddAttachment()
105 static_cast<BrokerableAttachment*>(attachment.get()); in AddAttachment()
116 scoped_refptr<MessageAttachment> attachment) { in AddAttachment() argument
119 return AddAttachment(attachment, &index, &brokerable); in AddAttachment()
188 const scoped_refptr<BrokerableAttachment>& attachment) { in ReplacePlaceholderWithAttachment() argument
189 DCHECK_NE(BrokerableAttachment::PLACEHOLDER, attachment->GetBrokerableType()); in ReplacePlaceholderWithAttachment()
193 (*it)->GetIdentifier() == attachment->GetIdentifier()) { in ReplacePlaceholderWithAttachment()
194 *it = attachment; in ReplacePlaceholderWithAttachment()