Index: ppapi/host/host_message_context.h |
diff --git a/ppapi/host/host_message_context.h b/ppapi/host/host_message_context.h |
index 916dab51b64b5199874141716c93f0ee88e2aa13..4074904b4cff23142fe6dccda167044fc149f4bf 100644 |
--- a/ppapi/host/host_message_context.h |
+++ b/ppapi/host/host_message_context.h |
@@ -22,6 +22,9 @@ struct PPAPI_HOST_EXPORT ReplyMessageContext { |
int routing_id); |
~ReplyMessageContext(); |
+ // Returns a value indicating whether this context is valid or "null". |
+ bool is_valid() const { return params.pp_resource() != 0; } |
+ |
// The "reply params" struct with the same resource and sequence number |
// as the original resource message call. |
ppapi::proxy::ResourceMessageReplyParams params; |