bool MessageReceiverMap::dispatchMessage(Connection* connection, MessageID messageID, ArgumentDecoder* argumentDecoder) { if (MessageReceiver* messageReceiver = m_globalMessageReceivers.get(messageID.messageClass())) { messageReceiver->didReceiveMessage(connection, messageID, argumentDecoder); return true; } return false; }
bool MessageReceiverMap::dispatchSyncMessage(Connection* connection, MessageID messageID, ArgumentDecoder* argumentDecoder, OwnPtr<ArgumentEncoder>& reply) { if (MessageReceiver* messageReceiver = m_globalMessageReceivers.get(messageID.messageClass())) { messageReceiver->didReceiveSyncMessage(connection, messageID, argumentDecoder, reply); return true; } return false; }
bool MessageReceiverMap::knowsHowToHandleMessage(MessageID messageID) const { return m_globalMessageReceivers.contains(messageID.messageClass()); }