OLD | NEW |
---|---|
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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1318 // Starts an extension API request which expects a response sent back using a | 1318 // Starts an extension API request which expects a response sent back using a |
1319 // PpapiPluginMsg_ExtensionsCommon_CallReply message. | 1319 // PpapiPluginMsg_ExtensionsCommon_CallReply message. |
1320 // |request_name| is an API function name. |args| is a list of input arguments. | 1320 // |request_name| is an API function name. |args| is a list of input arguments. |
1321 // |output| is a list of output results. | 1321 // |output| is a list of output results. |
1322 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ExtensionsCommon_Call, | 1322 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ExtensionsCommon_Call, |
1323 std::string /* request_name */, | 1323 std::string /* request_name */, |
1324 base::ListValue /* args */) | 1324 base::ListValue /* args */) |
1325 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_ExtensionsCommon_CallReply, | 1325 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_ExtensionsCommon_CallReply, |
1326 base::ListValue /* output */) | 1326 base::ListValue /* output */) |
1327 | 1327 |
1328 // Ext_CrxFileSystem | 1328 // Ext_CrxFileSystem ----------------------------------------------------------- |
1329 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Ext_CrxFileSystem_Create) | 1329 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Ext_CrxFileSystem_Create) |
1330 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Ext_CrxFileSystem_BrowserOpen) | 1330 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Ext_CrxFileSystem_BrowserOpen) |
1331 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Ext_CrxFileSystem_BrowserOpenReply, | 1331 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Ext_CrxFileSystem_BrowserOpenReply, |
1332 std::string /* fsid */) | 1332 std::string /* fsid */) |
1333 | 1333 |
1334 // File chooser. | 1334 // FileChooser ----------------------------------------------------------------- |
1335 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) | 1335 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
1336 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, | 1336 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
1337 bool /* save_as */, | 1337 bool /* save_as */, |
1338 bool /* open_multiple */, | 1338 bool /* open_multiple */, |
1339 std::string /* suggested_file_name */, | 1339 std::string /* suggested_file_name */, |
1340 std::vector<std::string> /* accept_mime_types */) | 1340 std::vector<std::string> /* accept_mime_types */) |
1341 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1341 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
1342 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) | 1342 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
1343 | 1343 |
1344 // FileIO | 1344 // FileIO ---------------------------------------------------------------------- |
1345 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create) | 1345 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create) |
1346 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open, | 1346 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open, |
1347 PP_Resource /* file_ref_resource */, | 1347 PP_Resource /* file_ref_resource */, |
1348 int32_t /* open_flags */) | 1348 int32_t /* open_flags */) |
1349 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_OpenReply) | 1349 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_OpenReply) |
1350 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Close) | 1350 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Close) |
1351 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Query) | 1351 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Query) |
1352 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_QueryReply, PP_FileInfo /* info */) | 1352 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_QueryReply, PP_FileInfo /* info */) |
1353 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch, | 1353 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch, |
1354 PP_Time /* last_access_time */, | 1354 PP_Time /* last_access_time */, |
(...skipping 13 matching lines...) Expand all Loading... | |
1368 int32_t /* bytes_to_write */) | 1368 int32_t /* bytes_to_write */) |
1369 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_WillSetLength, | 1369 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_WillSetLength, |
1370 int64_t /* length */) | 1370 int64_t /* length */) |
1371 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_GetOSFileDescriptor) | 1371 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_GetOSFileDescriptor) |
1372 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_GetOSFileDescriptorReply, | 1372 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_GetOSFileDescriptorReply, |
1373 int32_t /* file descriptor */) | 1373 int32_t /* file descriptor */) |
1374 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle) | 1374 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle) |
1375 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply) | 1375 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply) |
1376 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply) | 1376 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply) |
1377 | 1377 |
1378 // FileSystem | 1378 // FileSystem ------------------------------------------------------------------ |
1379 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Create, | 1379 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Create, |
1380 PP_FileSystemType /* type */) | 1380 PP_FileSystemType /* type */) |
1381 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Open, | 1381 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Open, |
1382 int64_t /* expected_size */) | 1382 int64_t /* expected_size */) |
1383 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_OpenReply) | 1383 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_OpenReply) |
1384 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_InitIsolatedFileSystem, | 1384 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_InitIsolatedFileSystem, |
1385 std::string /* fsid */) | 1385 std::string /* fsid */) |
1386 | 1386 |
1387 // Flash DRM ------------------------------------------------------------------ | 1387 // Flash DRM ------------------------------------------------------------------ |
1388 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_Create) | 1388 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_Create) |
1389 | 1389 |
1390 // Requests the device ID. | 1390 // Requests the device ID. |
1391 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetDeviceID) | 1391 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetDeviceID) |
1392 // Reply for GetDeviceID which includes the device ID as a string. | 1392 // Reply for GetDeviceID which includes the device ID as a string. |
1393 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetDeviceIDReply, | 1393 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetDeviceIDReply, |
1394 std::string /* id */) | 1394 std::string /* id */) |
1395 | 1395 |
1396 // Gamepad. | 1396 // Gamepad --------------------------------------------------------------------- |
1397 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) | 1397 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) |
1398 | 1398 |
1399 // Requests that the gamepad host send the shared memory handle to the plugin | 1399 // Requests that the gamepad host send the shared memory handle to the plugin |
1400 // process. | 1400 // process. |
1401 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) | 1401 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) |
1402 | 1402 |
1403 // Reply to a RequestMemory call. This supplies the shared memory handle. The | 1403 // Reply to a RequestMemory call. This supplies the shared memory handle. The |
1404 // actual handle is passed in the ReplyParams struct. | 1404 // actual handle is passed in the ReplyParams struct. |
1405 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory) | 1405 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory) |
1406 | 1406 |
1407 | 1407 |
1408 // Graphics2D, plugin -> host | 1408 // Graphics2D ------------------------------------------------------------------ |
1409 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_Create, | 1409 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_Create, |
1410 PP_Size /* size */, | 1410 PP_Size /* size */, |
1411 PP_Bool /* is_always_opaque */) | 1411 PP_Bool /* is_always_opaque */) |
1412 IPC_MESSAGE_CONTROL4(PpapiHostMsg_Graphics2D_PaintImageData, | 1412 IPC_MESSAGE_CONTROL4(PpapiHostMsg_Graphics2D_PaintImageData, |
1413 ppapi::HostResource /* image_data */, | 1413 ppapi::HostResource /* image_data */, |
1414 PP_Point /* top_left */, | 1414 PP_Point /* top_left */, |
1415 bool /* src_rect_specified */, | 1415 bool /* src_rect_specified */, |
1416 PP_Rect /* src_rect */) | 1416 PP_Rect /* src_rect */) |
1417 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll, | 1417 IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll, |
1418 bool /* clip_specified */, | 1418 bool /* clip_specified */, |
1419 PP_Rect /* clip */, | 1419 PP_Rect /* clip */, |
1420 PP_Point /* amount */) | 1420 PP_Point /* amount */) |
1421 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents, | 1421 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents, |
1422 ppapi::HostResource /* image_data */) | 1422 ppapi::HostResource /* image_data */) |
1423 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_Dev_SetScale, | 1423 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_Dev_SetScale, |
1424 float /* scale */) | 1424 float /* scale */) |
1425 | 1425 |
1426 // Graphics2D, plugin -> host -> plugin | |
1427 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush) | 1426 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush) |
1428 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) | 1427 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) |
1429 | 1428 |
1430 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, | 1429 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, |
1431 PP_Resource /* image */, | 1430 PP_Resource /* image */, |
1432 PP_Point /* top_left */) | 1431 PP_Point /* top_left */) |
1433 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) | 1432 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) |
1434 | 1433 |
1435 // TrueTypeFont. | 1434 // HostResolverPrivate --------------------------------------------------------- |
yzshen1
2013/06/16 23:49:53
nit, optional: Maybe put the style&order fix in a
dmichael (off chromium)
2013/06/17 21:48:28
Good point, done.
| |
1435 IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolverPrivate_Create) | |
1436 IPC_MESSAGE_CONTROL2(PpapiHostMsg_HostResolverPrivate_Resolve, | |
1437 ppapi::HostPortPair /* host_port */, | |
1438 PP_HostResolver_Private_Hint /* hint */) | |
1439 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolverPrivate_ResolveReply, | |
1440 std::string /* canonical_name */, | |
1441 std::vector<PP_NetAddress_Private> /* net_address_list */) | |
1442 | |
1443 // NetworkProxy ---------------------------------------------------------------- | |
1444 IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkProxy_Create) | |
1445 | |
1446 // Query the browser for the proxy server to use for the given URL. | |
1447 IPC_MESSAGE_CONTROL1(PpapiHostMsg_NetworkProxy_GetProxyForURL, | |
1448 std::string /* url */); | |
1449 | |
1450 // Reply message for GetProxyForURL containing the proxy server. | |
1451 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkProxy_GetProxyForURLReply, | |
1452 std::string /* proxy */) | |
1453 | |
1454 // Printing -------------------------------------------------------------------- | |
1455 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) | |
1456 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) | |
1457 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, | |
1458 PP_PrintSettings_Dev /* print_settings */) | |
1459 | |
1460 // Shared memory --------------------------------------------------------------- | |
1461 | |
1462 // Creates shared memory on the host side, returning a handle to the shared | |
1463 // memory on the plugin and keeping the memory mapped in on the host. | |
1464 // We return a "host handle_id" that can be mapped back to the | |
1465 // handle on the host side by PpapiGlobals::UntrackSharedMemoryHandle(). | |
1466 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_SharedMemory_CreateSharedMemory, | |
1467 PP_Instance /* instance */, | |
1468 uint32_t /* size */, | |
1469 int /* host_handle_id */, | |
1470 ppapi::proxy::SerializedHandle /* plugin_handle */) | |
1471 | |
1472 // TrueTypeFont ---------------------------------------------------------------- | |
1436 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_Create) | 1473 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_Create) |
1437 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_GetFontFamilies) | 1474 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_GetFontFamilies) |
1438 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontFamiliesReply, | 1475 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontFamiliesReply, |
1439 std::vector<std::string> /* font_families */) | 1476 std::vector<std::string> /* font_families */) |
1440 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFontSingleton_GetFontsInFamily, | 1477 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFontSingleton_GetFontsInFamily, |
1441 std::string /* family */) | 1478 std::string /* family */) |
1442 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontsInFamilyReply, | 1479 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontsInFamilyReply, |
1443 std::vector<ppapi::proxy::SerializedTrueTypeFontDesc> | 1480 std::vector<ppapi::proxy::SerializedTrueTypeFontDesc> |
1444 /* fonts */) | 1481 /* fonts */) |
1445 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFont_Create, | 1482 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFont_Create, |
1446 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */) | 1483 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */) |
1447 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFont_Describe) | 1484 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFont_Describe) |
1448 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_DescribeReply, | 1485 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_DescribeReply, |
1449 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */) | 1486 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */) |
1450 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFont_GetTableTags) | 1487 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFont_GetTableTags) |
1451 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableTagsReply, | 1488 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableTagsReply, |
1452 std::vector<uint32_t> /* tags */) | 1489 std::vector<uint32_t> /* tags */) |
1453 IPC_MESSAGE_CONTROL3(PpapiHostMsg_TrueTypeFont_GetTable, | 1490 IPC_MESSAGE_CONTROL3(PpapiHostMsg_TrueTypeFont_GetTable, |
1454 uint32_t /* table */, | 1491 uint32_t /* table */, |
1455 int32_t /* offset */, | 1492 int32_t /* offset */, |
1456 int32_t /* max_data_length */) | 1493 int32_t /* max_data_length */) |
1457 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableReply, | 1494 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableReply, |
1458 std::string /* data */) | 1495 std::string /* data */) |
1459 | 1496 |
1460 // HostResolverPrivate, plugin -> host -> plugin | |
1461 IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolverPrivate_Create) | |
1462 IPC_MESSAGE_CONTROL2(PpapiHostMsg_HostResolverPrivate_Resolve, | |
1463 ppapi::HostPortPair /* host_port */, | |
1464 PP_HostResolver_Private_Hint /* hint */) | |
1465 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolverPrivate_ResolveReply, | |
1466 std::string /* canonical_name */, | |
1467 std::vector<PP_NetAddress_Private> /* net_address_list */) | |
1468 | |
1469 // Printing. | |
1470 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) | |
1471 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) | |
1472 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, | |
1473 PP_PrintSettings_Dev /* print_settings */) | |
1474 | |
1475 // URLLoader ------------------------------------------------------------------ | 1497 // URLLoader ------------------------------------------------------------------ |
1476 | |
1477 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Create) | 1498 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Create) |
1478 | 1499 |
1479 // These messages correspond to PPAPI calls and all should get a | 1500 // These messages correspond to PPAPI calls and all should get a |
1480 // CallbackComplete message. | 1501 // CallbackComplete message. |
1481 IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_Open, | 1502 IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_Open, |
1482 ppapi::URLRequestInfoData /* request_data */) | 1503 ppapi::URLRequestInfoData /* request_data */) |
1483 | 1504 |
1484 // The plugin can tell the host to defer a load to hold off on sending more | 1505 // The plugin can tell the host to defer a load to hold off on sending more |
1485 // data because the buffer in the plugin is full. When defers_loading is set to | 1506 // data because the buffer in the plugin is full. When defers_loading is set to |
1486 // false, data streaming will resume. | 1507 // false, data streaming will resume. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1520 // Push notification from the renderer to the plugin to tell it about download | 1541 // Push notification from the renderer to the plugin to tell it about download |
1521 // and upload progress. This will only be sent if the plugin has requested | 1542 // and upload progress. This will only be sent if the plugin has requested |
1522 // progress updates, and only the fields requested by the plugin will be | 1543 // progress updates, and only the fields requested by the plugin will be |
1523 // valid. | 1544 // valid. |
1524 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_URLLoader_UpdateProgress, | 1545 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_URLLoader_UpdateProgress, |
1525 int64_t /* bytes_sent */, | 1546 int64_t /* bytes_sent */, |
1526 int64_t /* total_bytes_to_be_sent */, | 1547 int64_t /* total_bytes_to_be_sent */, |
1527 int64_t /* bytes_received */, | 1548 int64_t /* bytes_received */, |
1528 int64_t /* total_bytes_to_be_received */) | 1549 int64_t /* total_bytes_to_be_received */) |
1529 | 1550 |
1530 // Shared memory --------------------------------------------------------------- | |
1531 | |
1532 // Creates shared memory on the host side, returning a handle to the shared | |
1533 // memory on the plugin and keeping the memory mapped in on the host. | |
1534 // We return a "host handle_id" that can be mapped back to the | |
1535 // handle on the host side by PpapiGlobals::UntrackSharedMemoryHandle(). | |
1536 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_SharedMemory_CreateSharedMemory, | |
1537 PP_Instance /* instance */, | |
1538 uint32_t /* size */, | |
1539 int /* host_handle_id */, | |
1540 ppapi::proxy::SerializedHandle /* plugin_handle */) | |
1541 | |
1542 // WebSocket ------------------------------------------------------------------- | 1551 // WebSocket ------------------------------------------------------------------- |
1543 | |
1544 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) | 1552 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) |
1545 | 1553 |
1546 // Establishes the connection to a server. This message requires | 1554 // Establishes the connection to a server. This message requires |
1547 // WebSocket_ConnectReply as a reply message. | 1555 // WebSocket_ConnectReply as a reply message. |
1548 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect, | 1556 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect, |
1549 std::string /* url */, | 1557 std::string /* url */, |
1550 std::vector<std::string> /* protocols */) | 1558 std::vector<std::string> /* protocols */) |
1551 | 1559 |
1552 // Closes established connection with graceful closing handshake. This message | 1560 // Closes established connection with graceful closing handshake. This message |
1553 // requires WebSocket_CloseReply as a reply message. | 1561 // requires WebSocket_CloseReply as a reply message. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1614 // any WebSocket_Close request. Server initiated closing handshake or | 1622 // any WebSocket_Close request. Server initiated closing handshake or |
1615 // unexpected network errors will invoke this message. | 1623 // unexpected network errors will invoke this message. |
1616 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_ClosedReply, | 1624 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_ClosedReply, |
1617 uint64_t /* buffered_amount */, | 1625 uint64_t /* buffered_amount */, |
1618 bool /* was_clean */, | 1626 bool /* was_clean */, |
1619 uint16_t /* code */, | 1627 uint16_t /* code */, |
1620 std::string /* reason */) | 1628 std::string /* reason */) |
1621 | 1629 |
1622 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 1630 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
1623 | 1631 |
1624 // Audio input. | 1632 // Audio input ---------------------------------------------------------------- |
1625 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) | 1633 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) |
1626 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, | 1634 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, |
1627 std::string /* device_id */, | 1635 std::string /* device_id */, |
1628 PP_AudioSampleRate /* sample_rate */, | 1636 PP_AudioSampleRate /* sample_rate */, |
1629 uint32_t /* sample_frame_count */) | 1637 uint32_t /* sample_frame_count */) |
1630 // Reply to an Open call. This supplies a socket handle and a shared memory | 1638 // Reply to an Open call. This supplies a socket handle and a shared memory |
1631 // handle. Both handles are passed in the ReplyParams struct. | 1639 // handle. Both handles are passed in the ReplyParams struct. |
1632 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply) | 1640 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply) |
1633 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */) | 1641 IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */) |
1634 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close) | 1642 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close) |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1896 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) | 1904 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) |
1897 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) | 1905 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) |
1898 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoSource_GetFrameReply, | 1906 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoSource_GetFrameReply, |
1899 ppapi::HostResource /* resource_id */, | 1907 ppapi::HostResource /* resource_id */, |
1900 PP_ImageDataDesc /* image_data_desc */, | 1908 PP_ImageDataDesc /* image_data_desc */, |
1901 int /* fd */, | 1909 int /* fd */, |
1902 PP_TimeTicks /* timestamp */) | 1910 PP_TimeTicks /* timestamp */) |
1903 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) | 1911 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) |
1904 | 1912 |
1905 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1913 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |