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 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1532 // Creates shared memory on the host side, returning a handle to the shared | 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. | 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 | 1534 // We return a "host handle_id" that can be mapped back to the |
1535 // handle on the host side by PpapiGlobals::UntrackSharedMemoryHandle(). | 1535 // handle on the host side by PpapiGlobals::UntrackSharedMemoryHandle(). |
1536 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_SharedMemory_CreateSharedMemory, | 1536 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_SharedMemory_CreateSharedMemory, |
1537 PP_Instance /* instance */, | 1537 PP_Instance /* instance */, |
1538 uint32_t /* size */, | 1538 uint32_t /* size */, |
1539 int /* host_handle_id */, | 1539 int /* host_handle_id */, |
1540 ppapi::proxy::SerializedHandle /* plugin_handle */) | 1540 ppapi::proxy::SerializedHandle /* plugin_handle */) |
1541 | 1541 |
| 1542 // MediaStream ----------------------------------------------------------------- |
| 1543 |
| 1544 // VideoDestination Private. |
| 1545 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Create) |
| 1546 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDestination_Open, |
| 1547 std::string /* stream_url */) |
| 1548 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDestination_OpenReply) |
| 1549 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDestination_PutFrame, |
| 1550 ppapi::HostResource /* image_data */, |
| 1551 PP_TimeTicks /* timestamp */) |
| 1552 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Close) |
| 1553 |
| 1554 // VideoSource Private. |
| 1555 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Create) |
| 1556 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoSource_Open, |
| 1557 std::string /* stream_url */) |
| 1558 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) |
| 1559 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) |
| 1560 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoSource_GetFrameReply, |
| 1561 ppapi::HostResource /* resource_id */, |
| 1562 PP_ImageDataDesc /* image_data_desc */, |
| 1563 int /* fd */, |
| 1564 PP_TimeTicks /* timestamp */) |
| 1565 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) |
| 1566 |
1542 // WebSocket ------------------------------------------------------------------- | 1567 // WebSocket ------------------------------------------------------------------- |
1543 | 1568 |
1544 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) | 1569 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) |
1545 | 1570 |
1546 // Establishes the connection to a server. This message requires | 1571 // Establishes the connection to a server. This message requires |
1547 // WebSocket_ConnectReply as a reply message. | 1572 // WebSocket_ConnectReply as a reply message. |
1548 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect, | 1573 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect, |
1549 std::string /* url */, | 1574 std::string /* url */, |
1550 std::vector<std::string> /* protocols */) | 1575 std::vector<std::string> /* protocols */) |
1551 | 1576 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1870 PP_VideoCaptureDeviceInfo_Dev /* info */, | 1895 PP_VideoCaptureDeviceInfo_Dev /* info */, |
1871 std::vector<ppapi::HostResource> /* buffers */, | 1896 std::vector<ppapi::HostResource> /* buffers */, |
1872 uint32_t /* buffer_size */) | 1897 uint32_t /* buffer_size */) |
1873 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1898 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
1874 uint32_t /* status */) | 1899 uint32_t /* status */) |
1875 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1900 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
1876 uint32_t /* error */) | 1901 uint32_t /* error */) |
1877 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1902 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
1878 uint32_t /* buffer */) | 1903 uint32_t /* buffer */) |
1879 | 1904 |
1880 // MediaStream ----------------------------------------------------------------- | |
1881 | |
1882 // VideoDestination Private. | |
1883 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Create) | |
1884 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDestination_Open, | |
1885 std::string /* stream_url */) | |
1886 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDestination_OpenReply) | |
1887 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDestination_PutFrame, | |
1888 ppapi::HostResource /* image_data */, | |
1889 PP_TimeTicks /* timestamp */) | |
1890 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Close) | |
1891 | |
1892 // VideoSource Private. | |
1893 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Create) | |
1894 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoSource_Open, | |
1895 std::string /* stream_url */) | |
1896 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) | |
1897 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) | |
1898 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoSource_GetFrameReply, | |
1899 ppapi::HostResource /* resource_id */, | |
1900 PP_ImageDataDesc /* image_data_desc */, | |
1901 int /* fd */, | |
1902 PP_TimeTicks /* timestamp */) | |
1903 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) | |
1904 | |
1905 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1905 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |