Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: ppapi/host/host_message_context.h

Issue 231883002: Refactor some ResourceMessageReply usages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after great git cl format event. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « content/renderer/pepper/pepper_device_enumeration_host_helper.cc ('k') | ppapi/host/host_message_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698