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

Unified Diff: ppapi/proxy/ppapi_messages.h

Issue 10560030: Add resource message call and reply infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/proxy/ppapi_messages.h
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h
index cd54ae96c3f12e95a911dd7ecc6c7082b59db0cc..d569b825e4d1e6e362e7106277c36b133cb88008 100644
--- a/ppapi/proxy/ppapi_messages.h
+++ b/ppapi/proxy/ppapi_messages.h
@@ -37,6 +37,7 @@
#include "ppapi/c/private/ppp_flash_browser_operations.h"
#include "ppapi/proxy/ppapi_param_traits.h"
#include "ppapi/proxy/ppapi_proxy_export.h"
+#include "ppapi/proxy/resource_message_params.h"
#include "ppapi/proxy/serialized_flash_menu.h"
#include "ppapi/proxy/serialized_structs.h"
#include "ppapi/shared_impl/ppapi_preferences.h"
@@ -1384,4 +1385,34 @@ IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER,
// PPB_Font.
IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
std::string /* result */)
+
#endif // !defined(OS_NACL)
+
+//-----------------------------------------------------------------------------
+// New-style resource call/reply messages.
bbudge 2012/06/18 17:23:47 A more informative comment about the idea of resou
+
+// Notification that the a resource has been created in the plugin. The nested
bbudge 2012/06/18 17:23:47 s/the a/a/
+// message will be resource-type-specific.
+IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated,
+ ppapi::proxy::ResourceMessageCallParams /* call_params */,
+ PP_Instance /* instance */,
+ IPC::Message /* nested_msg */)
+
+// Notificaition that a resource has been destroyed in the plugin.
bbudge 2012/06/18 17:23:47 sp. Notification
+IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed,
+ PP_Resource /* resource */)
+
+// A resource call is a request from the plugin to the host. It may or may not
+// require a reply, depending on the params. The nested message will be
+// resource-type-specific.
+IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall,
+ ppapi::proxy::ResourceMessageCallParams /* call_params */,
+ IPC::Message /* nested_msg */)
+
+// A resource reply is a response from a ResourceCall from a host to the
bbudge 2012/06/18 17:23:47 s/response from/response to
+// plugin. The resource ID + sequence number in the params will correspond to
+// that of a previous ResourceCall.
bbudge 2012/06/18 17:23:47 A "previous" ResourceCall or the one that this is
+IPC_MESSAGE_CONTROL2(
+ PpapiPluginMsg_ResourceReply,
+ ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
+ IPC::Message /* nested_msg */)

Powered by Google App Engine
This is Rietveld 408576698