Index: mojo/public/cpp/bindings/lib/message_builder.h |
diff --git a/mojo/public/cpp/bindings/lib/message_builder.h b/mojo/public/cpp/bindings/lib/message_builder.h |
index a9c5330f3e84ad54e401743c2287756a53e8c2a9..e728492ef6c2e881c937463a156bde41a0413f5d 100644 |
--- a/mojo/public/cpp/bindings/lib/message_builder.h |
+++ b/mojo/public/cpp/bindings/lib/message_builder.h |
@@ -48,6 +48,14 @@ class RequestMessageBuilder : public MessageWithRequestIDBuilder { |
payload_size, |
kMessageExpectsResponse, |
0) {} |
+ |
+ RequestMessageBuilder(uint32_t name, |
+ size_t payload_size, |
+ uint32_t extra_flags) |
+ : MessageWithRequestIDBuilder(name, |
+ payload_size, |
+ kMessageExpectsResponse | extra_flags, |
+ 0) {} |
}; |
class ResponseMessageBuilder : public MessageWithRequestIDBuilder { |
@@ -59,6 +67,15 @@ class ResponseMessageBuilder : public MessageWithRequestIDBuilder { |
payload_size, |
kMessageIsResponse, |
request_id) {} |
+ |
+ ResponseMessageBuilder(uint32_t name, |
+ size_t payload_size, |
+ uint64_t request_id, |
+ uint32_t extra_flags) |
+ : MessageWithRequestIDBuilder(name, |
+ payload_size, |
+ kMessageIsResponse | extra_flags, |
+ request_id) {} |
}; |
} // namespace internal |