Chromium Code Reviews| 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/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 256 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) | 256 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) |
| 257 IPC_STRUCT_TRAITS_MEMBER(name) | 257 IPC_STRUCT_TRAITS_MEMBER(name) |
| 258 IPC_STRUCT_TRAITS_MEMBER(type) | 258 IPC_STRUCT_TRAITS_MEMBER(type) |
| 259 IPC_STRUCT_TRAITS_MEMBER(state) | 259 IPC_STRUCT_TRAITS_MEMBER(state) |
| 260 IPC_STRUCT_TRAITS_MEMBER(addresses) | 260 IPC_STRUCT_TRAITS_MEMBER(addresses) |
| 261 IPC_STRUCT_TRAITS_MEMBER(display_name) | 261 IPC_STRUCT_TRAITS_MEMBER(display_name) |
| 262 IPC_STRUCT_TRAITS_MEMBER(mtu) | 262 IPC_STRUCT_TRAITS_MEMBER(mtu) |
| 263 IPC_STRUCT_TRAITS_END() | 263 IPC_STRUCT_TRAITS_END() |
| 264 | 264 |
| 265 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 265 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
| 266 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer) | |
| 267 IPC_STRUCT_TRAITS_MEMBER(resource) | |
| 268 IPC_STRUCT_TRAITS_MEMBER(handle) | |
| 269 IPC_STRUCT_TRAITS_MEMBER(size) | |
| 270 IPC_STRUCT_TRAITS_END() | |
| 271 | 266 |
| 272 // TODO(tomfinegan): This is identical to PPPVideoCapture_Buffer, maybe replace | |
| 273 // both with a single type? | |
| 274 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) | 267 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) |
| 275 IPC_STRUCT_TRAITS_MEMBER(resource) | 268 IPC_STRUCT_TRAITS_MEMBER(resource) |
| 276 IPC_STRUCT_TRAITS_MEMBER(handle) | 269 IPC_STRUCT_TRAITS_MEMBER(handle) |
| 277 IPC_STRUCT_TRAITS_MEMBER(size) | 270 IPC_STRUCT_TRAITS_MEMBER(size) |
| 278 IPC_STRUCT_TRAITS_END() | 271 IPC_STRUCT_TRAITS_END() |
| 279 | 272 |
| 280 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 273 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| 281 | 274 |
| 282 // These are from the browser to the plugin. | 275 // These are from the browser to the plugin. |
| 283 // Loads the given plugin. | 276 // Loads the given plugin. |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 753 bool /* succeeded */, | 746 bool /* succeeded */, |
| 754 std::string /* canonical_name */, | 747 std::string /* canonical_name */, |
| 755 std::vector<PP_NetAddress_Private> /* net_address_list */) | 748 std::vector<PP_NetAddress_Private> /* net_address_list */) |
| 756 | 749 |
| 757 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 750 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
| 758 // PPP_Instance_Private. | 751 // PPP_Instance_Private. |
| 759 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, | 752 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, |
| 760 PP_Instance /* instance */, | 753 PP_Instance /* instance */, |
| 761 ppapi::proxy::SerializedVar /* result */) | 754 ppapi::proxy::SerializedVar /* result */) |
| 762 | 755 |
| 763 // PPB_VideoCapture_Dev | |
| 764 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoCapture_EnumerateDevicesACK, | |
| 765 ppapi::HostResource /* video_capture */, | |
| 766 int32_t /* result */, | |
| 767 std::vector<ppapi::DeviceRefData> /* devices */) | |
| 768 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoCapture_OpenACK, | |
| 769 ppapi::HostResource /* video_capture */, | |
| 770 int32_t /* result */) | |
| 771 | |
| 772 // PPP_VideoCapture_Dev | |
| 773 IPC_MESSAGE_ROUTED3( | |
| 774 PpapiMsg_PPPVideoCapture_OnDeviceInfo, | |
| 775 ppapi::HostResource /* video_capture */, | |
| 776 PP_VideoCaptureDeviceInfo_Dev /* info */, | |
| 777 std::vector<ppapi::proxy::PPPVideoCapture_Buffer> /* buffers */) | |
| 778 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnStatus, | |
| 779 ppapi::HostResource /* video_capture */, | |
| 780 uint32_t /* status */) | |
| 781 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnError, | |
| 782 ppapi::HostResource /* video_capture */, | |
| 783 uint32_t /* error_code */) | |
| 784 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnBufferReady, | |
| 785 ppapi::HostResource /* video_capture */, | |
| 786 uint32_t /* buffer */) | |
| 787 | |
| 788 // PPB_VideoDecoder_Dev. | 756 // PPB_VideoDecoder_Dev. |
| 789 // (Messages from renderer to plugin to notify it to run callbacks.) | 757 // (Messages from renderer to plugin to notify it to run callbacks.) |
| 790 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, | 758 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, |
| 791 ppapi::HostResource /* video_decoder */, | 759 ppapi::HostResource /* video_decoder */, |
| 792 int32_t /* bitstream buffer id */, | 760 int32_t /* bitstream buffer id */, |
| 793 int32_t /* PP_CompletionCallback result */) | 761 int32_t /* PP_CompletionCallback result */) |
| 794 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK, | 762 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK, |
| 795 ppapi::HostResource /* video_decoder */, | 763 ppapi::HostResource /* video_decoder */, |
| 796 int32_t /* PP_CompletionCallback result */) | 764 int32_t /* PP_CompletionCallback result */) |
| 797 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK, | 765 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK, |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1318 PP_Point /* top_left */, | 1286 PP_Point /* top_left */, |
| 1319 PP_Bool /* result */) | 1287 PP_Bool /* result */) |
| 1320 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, | 1288 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, |
| 1321 PP_Instance /* instance */, | 1289 PP_Instance /* instance */, |
| 1322 uint32 /* result */) | 1290 uint32 /* result */) |
| 1323 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent, | 1291 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent, |
| 1324 PP_Instance /* instance */, | 1292 PP_Instance /* instance */, |
| 1325 ppapi::InputEventData /* input_event */) | 1293 ppapi::InputEventData /* input_event */) |
| 1326 | 1294 |
| 1327 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 1295 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
| 1328 // PPB_VideoCapture_Dev. | 1296 |
| 1329 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create, | 1297 // VideoCapture_Dev, plugin -> host |
|
yzshen1
2012/10/29 18:34:23
- nit, optional: The src/dest of those messages ar
victorhsieh
2012/10/30 09:43:28
Moved. And I'd keep those plugin->host comments,
| |
| 1330 PP_Instance /* instance */, | 1298 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create) |
| 1331 ppapi::HostResource /* result */) | 1299 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture) |
| 1332 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_EnumerateDevices, | 1300 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer, |
| 1333 ppapi::HostResource /* video_capture */) | 1301 uint32_t /* buffer */) |
| 1334 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoCapture_Open, | 1302 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture) |
| 1335 ppapi::HostResource /* video_capture */, | 1303 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close) |
| 1336 std::string /* device_id */, | 1304 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoCapture_StartCapture0_1, |
| 1337 PP_VideoCaptureDeviceInfo_Dev /* requested_info */, | 1305 PP_VideoCaptureDeviceInfo_Dev /* requested_info */, |
| 1338 uint32_t /* buffer_count */) | 1306 uint32_t /* buffer_count */) |
| 1339 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StartCapture, | 1307 |
| 1340 ppapi::HostResource /* video_capture */) | 1308 // VideoCapture_Dev, plugin -> host -> plugin |
| 1341 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer, | 1309 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_EnumerateDevices) |
| 1342 ppapi::HostResource /* video_capture */, | 1310 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoCapture_EnumerateDevicesResponse, |
|
yzshen1
2012/10/29 18:34:23
Please use *Reply, in order to be consistent with
victorhsieh
2012/10/30 09:43:28
Done.
| |
| 1343 uint32_t /* buffer */) | 1311 int32_t /* result */, |
|
yzshen1
2012/10/29 18:34:23
You don't need |result|. (Please see the reason be
victorhsieh
2012/10/30 09:43:28
Done.
| |
| 1344 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StopCapture, | 1312 std::vector<ppapi::DeviceRefData> /* devices */) |
| 1345 ppapi::HostResource /* video_capture */) | 1313 IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoCapture_Open, |
| 1346 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_Close, | 1314 std::string /* device_id */, |
| 1347 ppapi::HostResource /* video_capture */) | 1315 PP_VideoCaptureDeviceInfo_Dev /* requested_info */, |
| 1348 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVideoCapture_StartCapture0_1, | 1316 uint32_t /* buffer_count */) |
| 1349 ppapi::HostResource /* video_capture */, | 1317 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OpenACK, |
|
yzshen1
2012/10/29 18:34:23
Please use *Reply, in order to be consistent with
victorhsieh
2012/10/30 09:43:28
Done.
| |
| 1350 PP_VideoCaptureDeviceInfo_Dev /* requested_info */, | 1318 int32_t /* result */) |
|
yzshen1
2012/10/29 18:34:23
You don't need this. The enclosing message has alr
victorhsieh
2012/10/30 09:43:28
Done.
| |
| 1351 uint32_t /* buffer_count */) | 1319 |
| 1320 // VideoCapture_Dev, host -> plugin | |
| 1321 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoCapture_OnDeviceInfo, | |
| 1322 PP_VideoCaptureDeviceInfo_Dev /* info */, | |
| 1323 std::vector<ppapi::HostResource> /* buffers */, | |
| 1324 uint32_t /* buffer_size */) | |
| 1325 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | |
| 1326 uint32_t /* status */) | |
| 1327 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | |
| 1328 uint32_t /* error */) | |
| 1329 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | |
| 1330 uint32_t /* buffer */) | |
| 1352 | 1331 |
| 1353 // PPB_VideoDecoder. | 1332 // PPB_VideoDecoder. |
| 1354 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create, | 1333 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create, |
| 1355 PP_Instance /* instance */, | 1334 PP_Instance /* instance */, |
| 1356 ppapi::HostResource /* context */, | 1335 ppapi::HostResource /* context */, |
| 1357 PP_VideoDecoder_Profile /* profile */, | 1336 PP_VideoDecoder_Profile /* profile */, |
| 1358 ppapi::HostResource /* result */) | 1337 ppapi::HostResource /* result */) |
| 1359 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode, | 1338 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode, |
| 1360 ppapi::HostResource /* video_decoder */, | 1339 ppapi::HostResource /* video_decoder */, |
| 1361 ppapi::HostResource /* bitstream buffer */, | 1340 ppapi::HostResource /* bitstream buffer */, |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1728 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply, | 1707 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply, |
| 1729 std::string /* output */) | 1708 std::string /* output */) |
| 1730 | 1709 |
| 1731 // Flash functions. | 1710 // Flash functions. |
| 1732 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) | 1711 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) |
| 1733 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_EnumerateVideoCaptureDevices, | 1712 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_EnumerateVideoCaptureDevices, |
| 1734 ppapi::HostResource /* video_capture */) | 1713 ppapi::HostResource /* video_capture */) |
| 1735 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_EnumerateVideoCaptureDevicesReply, | 1714 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_EnumerateVideoCaptureDevicesReply, |
| 1736 std::vector<ppapi::DeviceRefData> /* devices */) | 1715 std::vector<ppapi::DeviceRefData> /* devices */) |
| 1737 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1716 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| OLD | NEW |