Lines Matching refs:messageID
34 #include "MessageID.h"
57 class MessageID;
85 virtual void didReceiveMessage(Connection*, MessageID, ArgumentDecoder*) = 0;
86 virtual SyncReplyMode didReceiveSyncMessage(Connection*, MessageID, ArgumentDecoder*, ArgumentEncoder*) { ASSERT_NOT_REACHED(); return AutomaticReply; }
95 virtual void didReceiveInvalidMessage(Connection*, MessageID) = 0;
147 bool sendMessage(MessageID, PassOwnPtr<ArgumentEncoder>, unsigned messageSendFlags = 0);
152 template<typename E, typename T> bool deprecatedSend(E messageID, uint64_t destinationID, const T& arguments);
153 template<typename E, typename T, typename U> bool deprecatedSendSync(E messageID, uint64_t destinationID, const T& arguments, const U& reply, double timeout = NoTimeout);
154 template<typename E> PassOwnPtr<ArgumentDecoder> deprecatedWaitFor(E messageID, uint64_t destinationID, double timeout);
164 Message(MessageID messageID, PassOwnPtr<T> arguments)
165 : m_messageID(messageID)
170 MessageID messageID() const { return m_messageID; }
184 MessageID m_messageID;
198 PassOwnPtr<ArgumentDecoder> waitForMessage(MessageID, uint64_t destinationID, double timeout);
200 PassOwnPtr<ArgumentDecoder> sendSyncMessage(MessageID, uint64_t syncRequestID, PassOwnPtr<ArgumentEncoder>, double timeout);
204 void processIncomingMessage(MessageID, PassOwnPtr<ArgumentDecoder>);
210 bool sendOutgoingMessage(MessageID, PassOwnPtr<ArgumentEncoder>);
219 void dispatchSyncMessage(MessageID, ArgumentDecoder*);
340 return sendMessage(MessageID(T::messageID), argumentEncoder.release(), messageSendFlags);
352 OwnPtr<ArgumentDecoder> replyDecoder = sendSyncMessage(MessageID(T::messageID), syncRequestID, argumentEncoder.release(), timeout);
362 OwnPtr<ArgumentDecoder> decoder = waitForMessage(MessageID(T::messageID), destinationID, timeout);
367 m_client->didReceiveMessage(this, MessageID(T::messageID), decoder.get());
374 inline bool Connection::deprecatedSendSync(E messageID, uint64_t destinationID, const T& arguments, const U& reply, double timeout)
383 OwnPtr<ArgumentDecoder> replyDecoder = sendSyncMessage(MessageID(messageID), syncRequestID, argumentEncoder.release(), timeout);
392 bool Connection::deprecatedSend(E messageID, uint64_t destinationID, const T& arguments)
397 return sendMessage(MessageID(messageID), argumentEncoder.release());
400 template<typename E> inline PassOwnPtr<ArgumentDecoder> Connection::deprecatedWaitFor(E messageID, uint64_t destinationID, double timeout)
402 return waitForMessage(MessageID(messageID), destinationID, timeout);