diff options
Diffstat (limited to 'ipc/ipc_message_utils_impl.h')
-rw-r--r-- | ipc/ipc_message_utils_impl.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ipc/ipc_message_utils_impl.h b/ipc/ipc_message_utils_impl.h index ba11990..53c7986 100644 --- a/ipc/ipc_message_utils_impl.h +++ b/ipc/ipc_message_utils_impl.h @@ -25,6 +25,19 @@ MessageWithTuple<ParamType>::MessageWithTuple( // subclass needs to have Log() to call Read(), which instantiates the above // template. +template <class SendParamType, class ReplyParamType> +MessageWithReply<SendParamType, ReplyParamType>::MessageWithReply( + int32 routing_id, uint32 type, + const RefSendParam& send, + const ReplyParam& reply) + : SyncMessage(routing_id, type, PRIORITY_NORMAL, + new ParamDeserializer<ReplyParam>(reply)) { + WriteParam(this, send); +} + +// TODO(erg): Migrate ReadSendParam()/ReadReplyParam() here when we can force +// the visibility/linkage. + } // namespace IPC #endif // IPC_IPC_MESSAGE_UTILS_IMPL_H_ |