Index: ppapi/proxy/ppapi_messages.h |
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h |
index 8d9abe6f553442dafcdb8d65537ac9db9103d374..f8ed15f87a442f7edf6b72320b215ffb3df8a5c5 100644 |
--- a/ppapi/proxy/ppapi_messages.h |
+++ b/ppapi/proxy/ppapi_messages.h |
@@ -1295,6 +1295,28 @@ IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall, |
ppapi::proxy::ResourceMessageReplyParams /* reply_params */, |
IPC::Message /* reply_msg */) |
+// This message is sent from the renderer to the browser when it wants to create |
+// a ResourceHost in the browser. It contains the process ID of the plugin and |
+// the instance of the plugin for which to create the resource for. params |
+// contains the sequence number for the message to track the response. |
+// The nested message is a ResourceHost creation message. |
+IPC_MESSAGE_CONTROL4( |
+ PpapiHostMsg_CreateResourceHostFromHost, |
+ int /* child_process_id */, |
+ ppapi::proxy::ResourceMessageCallParams /* params */, |
+ PP_Instance /* instance */, |
+ IPC::Message /* nested_msg */) |
+ |
+// This message is sent from the browser to the renderer when it has created a |
+// ResourceHost for the renderer. It contains the sequence number that was sent |
+// in the request and the ID of the pending ResourceHost which was created in |
+// the browser. This ID is only useful for the plugin which can attach to the |
+// ResourceHost in the browser. |
+IPC_MESSAGE_CONTROL2( |
+ PpapiHostMsg_CreateResourceHostFromHostReply, |
+ int32_t /* sequence */, |
+ int /* pending_host_id */) |
+ |
//----------------------------------------------------------------------------- |
// Messages for resources using call/reply above. |