Esempio n. 1
0
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;
}
Esempio n. 2
0
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;
}
Esempio n. 3
0
bool MessageReceiverMap::knowsHowToHandleMessage(MessageID messageID) const
{
    return m_globalMessageReceivers.contains(messageID.messageClass());
}