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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 15947004: Allow renderer to create pepper ResourceHosts in the browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 PpapiPluginMsg_ResourceReply, 1289 PpapiPluginMsg_ResourceReply,
1290 ppapi::proxy::ResourceMessageReplyParams /* reply_params */, 1290 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1291 IPC::Message /* nested_msg */) 1291 IPC::Message /* nested_msg */)
1292 1292
1293 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall, 1293 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall,
1294 ppapi::proxy::ResourceMessageCallParams /* call_params */, 1294 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1295 IPC::Message /* nested_msg */, 1295 IPC::Message /* nested_msg */,
1296 ppapi::proxy::ResourceMessageReplyParams /* reply_params */, 1296 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1297 IPC::Message /* reply_msg */) 1297 IPC::Message /* reply_msg */)
1298 1298
1299 // This message is sent from the renderer to the browser when it wants to create
1300 // a ResourceHost in the browser. It contains the process ID of the plugin and
1301 // the instance of the plugin for which to create the resource for. params
1302 // contains the sequence number for the message to track the response.
1303 // The nested message is a ResourceHost creation message.
1304 IPC_MESSAGE_CONTROL4(
1305 PpapiHostMsg_CreateResourceHostFromHost,
1306 int /* child_process_id */,
1307 ppapi::proxy::ResourceMessageCallParams /* params */,
1308 PP_Instance /* instance */,
1309 IPC::Message /* nested_msg */)
1310
1311 // This message is sent from the browser to the renderer when it has created a
1312 // ResourceHost for the renderer. It contains the sequence number that was sent
1313 // in the request and the ID of the pending ResourceHost which was created in
1314 // the browser. This ID is only useful for the plugin which can attach to the
1315 // ResourceHost in the browser.
1316 IPC_MESSAGE_CONTROL2(
1317 PpapiHostMsg_CreateResourceHostFromHostReply,
1318 int32_t /* sequence */,
1319 int /* pending_host_id */)
1320
1299 //----------------------------------------------------------------------------- 1321 //-----------------------------------------------------------------------------
1300 // Messages for resources using call/reply above. 1322 // Messages for resources using call/reply above.
1301 1323
1302 // Broker ---------------------------------------------------------------------- 1324 // Broker ----------------------------------------------------------------------
1303 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create) 1325 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create)
1304 1326
1305 // Queries whether the plugin has permission to connect to the Pepper broker. 1327 // Queries whether the plugin has permission to connect to the Pepper broker.
1306 // The response is contained in the error value of the 1328 // The response is contained in the error value of the
1307 // ResourceMessageReplyParams in the reply message. 1329 // ResourceMessageReplyParams in the reply message.
1308 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed) 1330 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed)
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) 1916 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply)
1895 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) 1917 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame)
1896 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoSource_GetFrameReply, 1918 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoSource_GetFrameReply,
1897 ppapi::HostResource /* resource_id */, 1919 ppapi::HostResource /* resource_id */,
1898 PP_ImageDataDesc /* image_data_desc */, 1920 PP_ImageDataDesc /* image_data_desc */,
1899 int /* fd */, 1921 int /* fd */,
1900 PP_TimeTicks /* timestamp */) 1922 PP_TimeTicks /* timestamp */)
1901 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) 1923 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close)
1902 1924
1903 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1925 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698