| Index: ipc/ipc_message_attachment_set.cc
|
| diff --git a/ipc/ipc_message_attachment_set.cc b/ipc/ipc_message_attachment_set.cc
|
| index ed653f3466a3595aaa1e889e5f7c433ef184a8be..1a4969f505159d318d0b7d684d8368863da49f12 100644
|
| --- a/ipc/ipc_message_attachment_set.cc
|
| +++ b/ipc/ipc_message_attachment_set.cc
|
| @@ -143,6 +143,19 @@ MessageAttachmentSet::PeekBrokerableAttachments() const {
|
| return output;
|
| }
|
|
|
| +std::vector<scoped_refptr<BrokerableAttachment>>
|
| +MessageAttachmentSet::GetBrokerableAttachmentsForUpdating() {
|
| + std::vector<scoped_refptr<BrokerableAttachment>> output;
|
| + for (const scoped_refptr<MessageAttachment>& attachment : attachments_) {
|
| + if (attachment->GetType() ==
|
| + MessageAttachment::TYPE_BROKERABLE_ATTACHMENT) {
|
| + output.push_back(scoped_refptr<BrokerableAttachment>(
|
| + static_cast<BrokerableAttachment*>(attachment.get())));
|
| + }
|
| + }
|
| + return output;
|
| +}
|
| +
|
| #if defined(OS_POSIX)
|
|
|
| void MessageAttachmentSet::PeekDescriptors(base::PlatformFile* buffer) const {
|
|
|