Searched refs:BrokerableAttachment (Results 1 – 11 of 11) sorted by relevance
/external/libmojo/ipc/ |
D | brokerable_attachment.cc | 17 BrokerableAttachment::AttachmentId 18 BrokerableAttachment::AttachmentId::CreateIdWithRandomNonce() { in CreateIdWithRandomNonce() 25 BrokerableAttachment::AttachmentId::AttachmentId() { in AttachmentId() 26 for (size_t i = 0; i < BrokerableAttachment::kNonceSize; ++i) in AttachmentId() 30 BrokerableAttachment::AttachmentId::AttachmentId(const char* start_address, in AttachmentId() 32 DCHECK(size == BrokerableAttachment::kNonceSize); in AttachmentId() 33 for (size_t i = 0; i < BrokerableAttachment::kNonceSize; ++i) in AttachmentId() 37 void BrokerableAttachment::AttachmentId::SerializeToBuffer(char* start_address, in SerializeToBuffer() 39 DCHECK(size == BrokerableAttachment::kNonceSize); in SerializeToBuffer() 40 for (size_t i = 0; i < BrokerableAttachment::kNonceSize; ++i) in SerializeToBuffer() [all …]
|
D | attachment_broker.h | 60 const BrokerableAttachment::AttachmentId& id) = 0; 77 const scoped_refptr<BrokerableAttachment>& attachment, 82 bool GetAttachmentWithId(BrokerableAttachment::AttachmentId id, 83 scoped_refptr<BrokerableAttachment>* attachment); 118 using AttachmentVector = std::vector<scoped_refptr<BrokerableAttachment>>; 122 const scoped_refptr<BrokerableAttachment>& attachment); 125 void NotifyObservers(const BrokerableAttachment::AttachmentId& id); 130 const BrokerableAttachment::AttachmentId& id);
|
D | ipc_message.cc | 152 std::vector<scoped_refptr<IPC::BrokerableAttachment>> attachments( in SerializedIdsOfBrokerableAttachments() 155 BrokerableAttachment::kNonceSize); in SerializedIdsOfBrokerableAttachments() 156 size_t size = attachments.size() * BrokerableAttachment::kNonceSize; in SerializedIdsOfBrokerableAttachments() 159 char* start_range = buffer + i * BrokerableAttachment::kNonceSize; in SerializedIdsOfBrokerableAttachments() 160 BrokerableAttachment::AttachmentId id = attachments[i]->GetIdentifier(); in SerializedIdsOfBrokerableAttachments() 161 id.SerializeToBuffer(start_range, BrokerableAttachment::kNonceSize); in SerializedIdsOfBrokerableAttachments() 199 if (num_attachments >= max_size_t / BrokerableAttachment::kNonceSize) in FindNext() 202 size_t attachment_length = num_attachments * BrokerableAttachment::kNonceSize; in FindNext() 213 pickle_end + i * BrokerableAttachment::kNonceSize; in FindNext() 214 BrokerableAttachment::AttachmentId id(attachment_start, in FindNext() [all …]
|
D | ipc_message_attachment_set.cc | 104 BrokerableAttachment* brokerable_attachment = in AddAttachment() 105 static_cast<BrokerableAttachment*>(attachment.get()); in AddAttachment() 106 scoped_refptr<BrokerableAttachment> a(brokerable_attachment); in AddAttachment() 172 scoped_refptr<BrokerableAttachment> brokerable_attachment( in GetBrokerableAttachmentAt() 182 std::vector<scoped_refptr<IPC::BrokerableAttachment>> 188 const scoped_refptr<BrokerableAttachment>& attachment) { in ReplacePlaceholderWithAttachment() 189 DCHECK_NE(BrokerableAttachment::PLACEHOLDER, attachment->GetBrokerableType()); in ReplacePlaceholderWithAttachment() 192 if ((*it)->GetBrokerableType() == BrokerableAttachment::PLACEHOLDER && in ReplacePlaceholderWithAttachment()
|
D | brokerable_attachment.h | 22 class IPC_EXPORT BrokerableAttachment : public MessageAttachment { 77 BrokerableAttachment(); 78 BrokerableAttachment(const AttachmentId& id); 79 ~BrokerableAttachment() override; 86 DISALLOW_COPY_AND_ASSIGN(BrokerableAttachment);
|
D | ipc_message_attachment_set.h | 23 class BrokerableAttachment; variable 93 std::vector<scoped_refptr<IPC::BrokerableAttachment>> 99 const scoped_refptr<BrokerableAttachment>& attachment); 150 std::vector<scoped_refptr<BrokerableAttachment>> brokerable_attachments_;
|
D | placeholder_brokerable_attachment.h | 16 class IPC_EXPORT PlaceholderBrokerableAttachment : public BrokerableAttachment { 19 : BrokerableAttachment(id){}; in PlaceholderBrokerableAttachment()
|
D | placeholder_brokerable_attachment.cc | 9 BrokerableAttachment::BrokerableType
|
D | ipc_message.h | 197 std::vector<BrokerableAttachment::AttachmentId> attachment_ids; 220 BrokerableAttachment::AttachmentId id);
|
D | ipc_message_utils.cc | 589 void ParamTraits<BrokerableAttachment::AttachmentId>::Write( in Write() 592 m->WriteBytes(p.nonce, BrokerableAttachment::kNonceSize); in Write() 595 bool ParamTraits<BrokerableAttachment::AttachmentId>::Read( in Read() 600 if (!iter->ReadBytes(&data, BrokerableAttachment::kNonceSize)) in Read() 602 memcpy(r->nonce, data, BrokerableAttachment::kNonceSize); in Read() 606 void ParamTraits<BrokerableAttachment::AttachmentId>::Log(const param_type& p, in Log() 608 l->append(base::HexEncode(p.nonce, BrokerableAttachment::kNonceSize)); in Log()
|
D | ipc_message_utils.h | 517 struct IPC_EXPORT ParamTraits<BrokerableAttachment::AttachmentId> { 518 typedef BrokerableAttachment::AttachmentId param_type;
|