Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 11 matching lines...) Expand all Loading... | |
| 22 #include "ppapi/c/pp_bool.h" | 22 #include "ppapi/c/pp_bool.h" |
| 23 #include "ppapi/c/pp_file_info.h" | 23 #include "ppapi/c/pp_file_info.h" |
| 24 #include "ppapi/c/pp_instance.h" | 24 #include "ppapi/c/pp_instance.h" |
| 25 #include "ppapi/c/pp_module.h" | 25 #include "ppapi/c/pp_module.h" |
| 26 #include "ppapi/c/pp_point.h" | 26 #include "ppapi/c/pp_point.h" |
| 27 #include "ppapi/c/pp_rect.h" | 27 #include "ppapi/c/pp_rect.h" |
| 28 #include "ppapi/c/pp_resource.h" | 28 #include "ppapi/c/pp_resource.h" |
| 29 #include "ppapi/c/pp_size.h" | 29 #include "ppapi/c/pp_size.h" |
| 30 #include "ppapi/c/dev/pp_video_dev.h" | 30 #include "ppapi/c/dev/pp_video_dev.h" |
| 31 #include "ppapi/c/private/ppb_flash_tcp_socket.h" | 31 #include "ppapi/c/private/ppb_flash_tcp_socket.h" |
| 32 #include "ppapi/c/private/ppb_flash_udp_socket.h" | |
|
yzshen1
2011/09/17 02:10:07
We probably don't need this include.
The reason we
mtilburg
2011/09/21 01:46:43
Done.
| |
| 32 #include "ppapi/proxy/ppapi_param_traits.h" | 33 #include "ppapi/proxy/ppapi_param_traits.h" |
| 33 #include "ppapi/proxy/ppapi_proxy_export.h" | 34 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 34 #include "ppapi/proxy/serialized_flash_menu.h" | 35 #include "ppapi/proxy/serialized_flash_menu.h" |
| 35 #include "ppapi/proxy/serialized_structs.h" | 36 #include "ppapi/proxy/serialized_structs.h" |
| 36 #include "ppapi/shared_impl/input_event_impl.h" | 37 #include "ppapi/shared_impl/input_event_impl.h" |
| 37 #include "ppapi/shared_impl/ppapi_preferences.h" | 38 #include "ppapi/shared_impl/ppapi_preferences.h" |
| 38 #include "ppapi/shared_impl/url_request_info_impl.h" | 39 #include "ppapi/shared_impl/url_request_info_impl.h" |
| 39 | 40 |
| 40 #undef IPC_MESSAGE_EXPORT | 41 #undef IPC_MESSAGE_EXPORT |
| 41 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 42 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 256 uint32 /* plugin_dispatcher_id */, | 257 uint32 /* plugin_dispatcher_id */, |
| 257 uint32 /* socket_id */, | 258 uint32 /* socket_id */, |
| 258 bool /* succeeded */, | 259 bool /* succeeded */, |
| 259 std::string /* data */) | 260 std::string /* data */) |
| 260 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBFlashTCPSocket_WriteACK, | 261 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBFlashTCPSocket_WriteACK, |
| 261 uint32 /* plugin_dispatcher_id */, | 262 uint32 /* plugin_dispatcher_id */, |
| 262 uint32 /* socket_id */, | 263 uint32 /* socket_id */, |
| 263 bool /* succeeded */, | 264 bool /* succeeded */, |
| 264 int32_t /* bytes_written */) | 265 int32_t /* bytes_written */) |
| 265 | 266 |
| 267 // PPB_Flash_UDPSocket | |
| 268 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBFlashUDPSocket_BindACK, | |
| 269 uint32 /* plugin_dispatcher_id */, | |
| 270 uint32 /* socket_id */, | |
| 271 bool /* succeeded */, | |
| 272 int32_t /* return value */) | |
|
yzshen1
2011/09/17 02:10:07
You don't need this return value:
1) currently it
mtilburg
2011/09/21 01:46:43
Done.
| |
| 273 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBFlashUDPSocket_RecvFromACK, | |
| 274 uint32 /* plugin_dispatcher_id */, | |
| 275 uint32 /* socket_id */, | |
| 276 bool /* succeeded */, | |
| 277 std::string /* data */, | |
| 278 PP_Flash_NetAddress /* remote_addr */) | |
| 279 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBFlashUDPSocket_SendToACK, | |
| 280 uint32 /* plugin_dispatcher_id */, | |
| 281 uint32 /* socket_id */, | |
| 282 bool /* succeeded */, | |
| 283 int32_t /* bytes_written */) | |
| 284 | |
| 266 // PPB_Graphics2D. | 285 // PPB_Graphics2D. |
| 267 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, | 286 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, |
| 268 ppapi::HostResource /* graphics_2d */, | 287 ppapi::HostResource /* graphics_2d */, |
| 269 int32_t /* pp_error */) | 288 int32_t /* pp_error */) |
| 270 | 289 |
| 271 // PPB_Graphics3D. | 290 // PPB_Graphics3D. |
| 272 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, | 291 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, |
| 273 ppapi::HostResource /* graphics_3d */, | 292 ppapi::HostResource /* graphics_3d */, |
| 274 int32_t /* pp_error */) | 293 int32_t /* pp_error */) |
| 275 | 294 |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 733 uint16_t /* server_port */) | 752 uint16_t /* server_port */) |
| 734 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBFlashTCPSocket_Read, | 753 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBFlashTCPSocket_Read, |
| 735 uint32 /* socket_id */, | 754 uint32 /* socket_id */, |
| 736 int32_t /* bytes_to_read */) | 755 int32_t /* bytes_to_read */) |
| 737 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBFlashTCPSocket_Write, | 756 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBFlashTCPSocket_Write, |
| 738 uint32 /* socket_id */, | 757 uint32 /* socket_id */, |
| 739 std::string /* data */) | 758 std::string /* data */) |
| 740 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBFlashTCPSocket_Disconnect, | 759 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBFlashTCPSocket_Disconnect, |
| 741 uint32 /* socket_id */) | 760 uint32 /* socket_id */) |
| 742 | 761 |
| 762 // PPB_Flash_UDPSocket | |
| 763 IPC_SYNC_MESSAGE_CONTROL3_1(PpapiHostMsg_PPBFlashUDPSocket_Create, | |
| 764 int32 /* routing_id */, | |
| 765 uint32 /* plugin_dispatcher_id */, | |
| 766 int32_t /* family */, | |
| 767 uint32 /* socket_id */ ) | |
|
yzshen1
2011/09/17 02:10:07
line 767, 779: Please be consistent: no space afte
mtilburg
2011/09/21 01:46:43
Done.
| |
| 768 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBFlashUDPSocket_Bind, | |
| 769 uint32 /* socket_id */, | |
|
yzshen1
2011/09/17 02:10:07
line 769, 772, 775, 779: Should be one space after
mtilburg
2011/09/21 01:46:43
Done.
| |
| 770 PP_Flash_NetAddress /* net_addr */) | |
| 771 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBFlashUDPSocket_RecvFrom, | |
| 772 uint32 /* socket_id */, | |
| 773 int32_t /* num_bytes */) | |
| 774 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBFlashUDPSocket_SendTo, | |
| 775 uint32 /* socket_id */, | |
| 776 std::string /* data */, | |
| 777 PP_Flash_NetAddress /* net_addr */) | |
| 778 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBFlashUDPSocket_Disconnect, | |
| 779 uint32 /* socket_id */ ) | |
| 780 | |
| 743 // PPB_Font. | 781 // PPB_Font. |
| 744 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, | 782 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, |
| 745 std::string /* result */) | 783 std::string /* result */) |
| 746 | 784 |
| 747 // PPB_Graphics2D. | 785 // PPB_Graphics2D. |
| 748 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, | 786 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, |
| 749 ppapi::HostResource /* graphics_2d */, | 787 ppapi::HostResource /* graphics_2d */, |
| 750 ppapi::HostResource /* image_data */, | 788 ppapi::HostResource /* image_data */, |
| 751 PP_Point /* top_left */, | 789 PP_Point /* top_left */, |
| 752 bool /* src_rect_specified */, | 790 bool /* src_rect_specified */, |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1042 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) | 1080 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) |
| 1043 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, | 1081 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, |
| 1044 ppapi::HostResource /* video_decoder */, | 1082 ppapi::HostResource /* video_decoder */, |
| 1045 int32_t /* picture buffer id */) | 1083 int32_t /* picture buffer id */) |
| 1046 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, | 1084 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, |
| 1047 ppapi::HostResource /* video_decoder */) | 1085 ppapi::HostResource /* video_decoder */) |
| 1048 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, | 1086 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, |
| 1049 ppapi::HostResource /* video_decoder */) | 1087 ppapi::HostResource /* video_decoder */) |
| 1050 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, | 1088 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, |
| 1051 ppapi::HostResource /* video_decoder */) | 1089 ppapi::HostResource /* video_decoder */) |
| OLD | NEW |