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

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
« no previous file with comments | « ppapi/host/ppapi_host.cc ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 PpapiPluginMsg_ResourceReply, 1288 PpapiPluginMsg_ResourceReply,
1289 ppapi::proxy::ResourceMessageReplyParams /* reply_params */, 1289 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1290 IPC::Message /* nested_msg */) 1290 IPC::Message /* nested_msg */)
1291 1291
1292 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall, 1292 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall,
1293 ppapi::proxy::ResourceMessageCallParams /* call_params */, 1293 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1294 IPC::Message /* nested_msg */, 1294 IPC::Message /* nested_msg */,
1295 ppapi::proxy::ResourceMessageReplyParams /* reply_params */, 1295 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1296 IPC::Message /* reply_msg */) 1296 IPC::Message /* reply_msg */)
1297 1297
1298 // This message is sent from the renderer to the browser when it wants to create
1299 // a ResourceHost in the browser. It contains the process ID of the plugin and
1300 // the instance of the plugin for which to create the resource for. params
1301 // contains the sequence number for the message to track the response.
1302 // The nested message is a ResourceHost creation message.
1303 IPC_MESSAGE_CONTROL4(
1304 PpapiHostMsg_CreateResourceHostFromHost,
1305 int /* child_process_id */,
1306 ppapi::proxy::ResourceMessageCallParams /* params */,
1307 PP_Instance /* instance */,
1308 IPC::Message /* nested_msg */)
1309
1310 // This message is sent from the browser to the renderer when it has created a
1311 // ResourceHost for the renderer. It contains the sequence number that was sent
1312 // in the request and the ID of the pending ResourceHost which was created in
1313 // the browser. This ID is only useful for the plugin which can attach to the
1314 // ResourceHost in the browser.
1315 IPC_MESSAGE_CONTROL2(
1316 PpapiHostMsg_CreateResourceHostFromHostReply,
1317 int32_t /* sequence */,
1318 int /* pending_host_id */)
1319
1298 //----------------------------------------------------------------------------- 1320 //-----------------------------------------------------------------------------
1299 // Messages for resources using call/reply above. 1321 // Messages for resources using call/reply above.
1300 1322
1301 // Broker ---------------------------------------------------------------------- 1323 // Broker ----------------------------------------------------------------------
1302 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create) 1324 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create)
1303 1325
1304 // Queries whether the plugin has permission to connect to the Pepper broker. 1326 // Queries whether the plugin has permission to connect to the Pepper broker.
1305 // The response is contained in the error value of the 1327 // The response is contained in the error value of the
1306 // ResourceMessageReplyParams in the reply message. 1328 // ResourceMessageReplyParams in the reply message.
1307 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed) 1329 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed)
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1896 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) 1918 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply)
1897 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) 1919 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame)
1898 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoSource_GetFrameReply, 1920 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoSource_GetFrameReply,
1899 ppapi::HostResource /* resource_id */, 1921 ppapi::HostResource /* resource_id */,
1900 PP_ImageDataDesc /* image_data_desc */, 1922 PP_ImageDataDesc /* image_data_desc */,
1901 int /* fd */, 1923 int /* fd */,
1902 PP_TimeTicks /* timestamp */) 1924 PP_TimeTicks /* timestamp */)
1903 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) 1925 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close)
1904 1926
1905 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1927 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/host/ppapi_host.cc ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698