Lines Matching refs:msg
70 bool SyncMessage::IsMessageReplyTo(const Message& msg, int request_id) { in IsMessageReplyTo() argument
71 if (!msg.is_reply()) in IsMessageReplyTo()
74 return GetMessageId(msg) == request_id; in IsMessageReplyTo()
77 PickleIterator SyncMessage::GetDataIterator(const Message* msg) { in GetDataIterator() argument
78 PickleIterator iter(*msg); in GetDataIterator()
85 int SyncMessage::GetMessageId(const Message& msg) { in GetMessageId() argument
86 if (!msg.is_sync() && !msg.is_reply()) in GetMessageId()
90 if (!ReadSyncHeader(msg, &header)) in GetMessageId()
96 Message* SyncMessage::GenerateReply(const Message* msg) { in GenerateReply() argument
97 DCHECK(msg->is_sync()); in GenerateReply()
99 Message* reply = new Message(msg->routing_id(), IPC_REPLY_ID, in GenerateReply()
100 msg->priority()); in GenerateReply()
106 header.message_id = GetMessageId(*msg); in GenerateReply()
112 bool SyncMessage::ReadSyncHeader(const Message& msg, SyncHeader* header) { in ReadSyncHeader() argument
113 DCHECK(msg.is_sync() || msg.is_reply()); in ReadSyncHeader()
115 PickleIterator iter(msg); in ReadSyncHeader()
116 bool result = msg.ReadInt(&iter, &header->message_id); in ReadSyncHeader()
125 bool SyncMessage::WriteSyncHeader(Message* msg, const SyncHeader& header) { in WriteSyncHeader() argument
126 DCHECK(msg->is_sync() || msg->is_reply()); in WriteSyncHeader()
127 DCHECK(msg->payload_size() == 0); in WriteSyncHeader()
128 bool result = msg->WriteInt(header.message_id); in WriteSyncHeader()
135 DCHECK(kSyncMessageHeaderSize == msg->payload_size()); in WriteSyncHeader()
141 bool MessageReplyDeserializer::SerializeOutputParameters(const Message& msg) { in SerializeOutputParameters() argument
142 return SerializeOutputParameters(msg, SyncMessage::GetDataIterator(&msg)); in SerializeOutputParameters()