Home
last modified time | relevance | path

Searched refs:MessageAttachment (Results 1 – 13 of 13) sorted by relevance

/external/libmojo/ipc/
Dipc_message_attachment_set.cc29 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 …]
Dipc_message_attachment_set.h24 class MessageAttachment; variable
67 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_;
Dipc_message_attachment.h19 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);
Dipc_message_attachment.cc9 MessageAttachment::MessageAttachment() { in MessageAttachment() function in IPC::MessageAttachment
12 MessageAttachment::~MessageAttachment() { in ~MessageAttachment()
Dipc_platform_file_attachment_posix.cc22 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()
Dipc_mojo_message_helper.cc33 MessageAttachment::Type type = in ReadMessagePipeFrom()
34 static_cast<MessageAttachment*>(attachment.get())->GetType(); in ReadMessagePipeFrom()
35 if (type != MessageAttachment::TYPE_MOJO_HANDLE) { in ReadMessagePipeFrom()
Dipc_platform_file_attachment_posix.h18 class IPC_EXPORT PlatformFileAttachment : public MessageAttachment {
38 base::PlatformFile GetPlatformFile(scoped_refptr<MessageAttachment> attachment);
Dipc_mojo_handle_attachment.cc20 MessageAttachment::Type MojoHandleAttachment::GetType() const { in GetType()
Dipc_mojo_handle_attachment.h23 class IPC_EXPORT MojoHandleAttachment : public MessageAttachment {
Dbrokerable_attachment.h22 class IPC_EXPORT BrokerableAttachment : public MessageAttachment {
Dipc_message.h35 class MessageAttachment; variable
Dipc_message.cc248 make_scoped_refptr(static_cast<MessageAttachment*>(attachment.get())), in WriteAttachment()
Dipc_message_utils.cc682 static_cast<MessageAttachment*>(attachment.get())->TakePlatformFile(), in Read()