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 17 matching lines...) Expand all Loading... | |
| 28 #include "ppapi/c/pp_module.h" | 28 #include "ppapi/c/pp_module.h" |
| 29 #include "ppapi/c/pp_point.h" | 29 #include "ppapi/c/pp_point.h" |
| 30 #include "ppapi/c/pp_rect.h" | 30 #include "ppapi/c/pp_rect.h" |
| 31 #include "ppapi/c/pp_resource.h" | 31 #include "ppapi/c/pp_resource.h" |
| 32 #include "ppapi/c/pp_size.h" | 32 #include "ppapi/c/pp_size.h" |
| 33 #include "ppapi/c/pp_time.h" | 33 #include "ppapi/c/pp_time.h" |
| 34 #include "ppapi/c/private/ppb_flash.h" | 34 #include "ppapi/c/private/ppb_flash.h" |
| 35 #include "ppapi/c/private/ppb_host_resolver_private.h" | 35 #include "ppapi/c/private/ppb_host_resolver_private.h" |
| 36 #include "ppapi/c/private/ppb_net_address_private.h" | 36 #include "ppapi/c/private/ppb_net_address_private.h" |
| 37 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 37 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
| 38 #include "ppapi/c/private/ppb_udp_socket_private.h" | |
| 38 #include "ppapi/c/private/ppp_flash_browser_operations.h" | 39 #include "ppapi/c/private/ppp_flash_browser_operations.h" |
| 39 #include "ppapi/proxy/ppapi_param_traits.h" | 40 #include "ppapi/proxy/ppapi_param_traits.h" |
| 40 #include "ppapi/proxy/ppapi_proxy_export.h" | 41 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 41 #include "ppapi/proxy/resource_message_params.h" | 42 #include "ppapi/proxy/resource_message_params.h" |
| 42 #include "ppapi/proxy/serialized_flash_menu.h" | 43 #include "ppapi/proxy/serialized_flash_menu.h" |
| 43 #include "ppapi/proxy/serialized_structs.h" | 44 #include "ppapi/proxy/serialized_structs.h" |
| 44 #include "ppapi/shared_impl/ppapi_preferences.h" | 45 #include "ppapi/shared_impl/ppapi_preferences.h" |
| 45 #include "ppapi/shared_impl/ppb_device_ref_shared.h" | 46 #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
| 46 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 47 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 47 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" | 48 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" |
| 48 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" | 49 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" |
| 49 #include "ppapi/shared_impl/ppb_view_shared.h" | 50 #include "ppapi/shared_impl/ppb_view_shared.h" |
| 50 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" | 51 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" |
| 51 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" | 52 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" |
| 52 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" | 53 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" |
| 53 | 54 |
| 54 #undef IPC_MESSAGE_EXPORT | 55 #undef IPC_MESSAGE_EXPORT |
| 55 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 56 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
| 56 | 57 |
| 57 #define IPC_MESSAGE_START PpapiMsgStart | 58 #define IPC_MESSAGE_START PpapiMsgStart |
| 58 | 59 |
| 59 IPC_ENUM_TRAITS(PP_DeviceType_Dev) | 60 IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
| 60 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) | 61 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) |
| 61 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) | 62 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) |
| 62 IPC_ENUM_TRAITS(PP_FlashSetting) | 63 IPC_ENUM_TRAITS(PP_FlashSetting) |
| 63 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 64 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
| 64 IPC_ENUM_TRAITS(PP_InputEvent_Type) | 65 IPC_ENUM_TRAITS(PP_InputEvent_Type) |
| 65 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) | 66 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) |
| 67 IPC_ENUM_TRAITS(PP_NetworkListState_Private) | |
| 66 IPC_ENUM_TRAITS(PP_NetworkListType_Private) | 68 IPC_ENUM_TRAITS(PP_NetworkListType_Private) |
| 67 IPC_ENUM_TRAITS(PP_NetworkListState_Private) | |
| 68 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) | 69 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) |
| 69 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) | 70 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) |
| 70 IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev) | 71 IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev) |
| 71 IPC_ENUM_TRAITS(PP_TextInput_Type) | 72 IPC_ENUM_TRAITS(PP_TextInput_Type) |
| 73 IPC_ENUM_TRAITS(PP_UDPSocketFeature_Private) | |
| 72 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 74 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
| 73 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 75 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
| 74 | 76 |
| 75 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 77 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
| 76 IPC_STRUCT_TRAITS_MEMBER(x) | 78 IPC_STRUCT_TRAITS_MEMBER(x) |
| 77 IPC_STRUCT_TRAITS_MEMBER(y) | 79 IPC_STRUCT_TRAITS_MEMBER(y) |
| 78 IPC_STRUCT_TRAITS_END() | 80 IPC_STRUCT_TRAITS_END() |
| 79 | 81 |
| 80 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 82 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
| 81 IPC_STRUCT_TRAITS_MEMBER(x) | 83 IPC_STRUCT_TRAITS_MEMBER(x) |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 604 uint32 /* socket_id */, | 606 uint32 /* socket_id */, |
| 605 bool /* succeeded */, | 607 bool /* succeeded */, |
| 606 std::string /* data */) | 608 std::string /* data */) |
| 607 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK, | 609 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK, |
| 608 uint32 /* plugin_dispatcher_id */, | 610 uint32 /* plugin_dispatcher_id */, |
| 609 uint32 /* socket_id */, | 611 uint32 /* socket_id */, |
| 610 bool /* succeeded */, | 612 bool /* succeeded */, |
| 611 int32_t /* bytes_written */) | 613 int32_t /* bytes_written */) |
| 612 | 614 |
| 613 // PPB_UDPSocket_Private. | 615 // PPB_UDPSocket_Private. |
| 616 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBUDPSocket_SetSocketFeatureACK, | |
| 617 uint32 /* plugin_dispatcher_id */, | |
| 618 uint32 /* socket_id */, | |
| 619 bool /* succeeded */) | |
| 614 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_BindACK, | 620 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_BindACK, |
| 615 uint32 /* plugin_dispatcher_id */, | 621 uint32 /* plugin_dispatcher_id */, |
| 616 uint32 /* socket_id */, | 622 uint32 /* socket_id */, |
| 617 bool /* succeeded */, | 623 bool /* succeeded */, |
| 618 PP_NetAddress_Private /* bound_addr */) | 624 PP_NetAddress_Private /* bound_addr */) |
| 619 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK, | 625 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK, |
| 620 uint32 /* plugin_dispatcher_id */, | 626 uint32 /* plugin_dispatcher_id */, |
| 621 uint32 /* socket_id */, | 627 uint32 /* socket_id */, |
| 622 bool /* succeeded */, | 628 bool /* succeeded */, |
| 623 std::string /* data */, | 629 std::string /* data */, |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1368 uint32 /* socket_id */, | 1374 uint32 /* socket_id */, |
| 1369 std::string /* data */) | 1375 std::string /* data */) |
| 1370 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, | 1376 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, |
| 1371 uint32 /* socket_id */) | 1377 uint32 /* socket_id */) |
| 1372 | 1378 |
| 1373 // PPB_UDPSocket_Private. | 1379 // PPB_UDPSocket_Private. |
| 1374 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBUDPSocket_Create, | 1380 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBUDPSocket_Create, |
| 1375 int32 /* routing_id */, | 1381 int32 /* routing_id */, |
| 1376 uint32 /* plugin_dispatcher_id */, | 1382 uint32 /* plugin_dispatcher_id */, |
| 1377 uint32 /* socket_id */) | 1383 uint32 /* socket_id */) |
| 1384 IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBUDPSocket_SetBoolSocketFeature, | |
| 1385 int32 /* routing_id */, | |
| 1386 uint32 /* socket_id */, | |
| 1387 PP_UDPSocketFeature_Private /* name */, | |
|
brettw
2012/08/20 04:34:45
For the enums we should cast them to int32s. This
ygorshenin1
2012/08/20 12:08:01
Done.
| |
| 1388 bool /* value */) | |
| 1378 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_Bind, | 1389 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_Bind, |
| 1379 int32 /* routing_id */, | 1390 int32 /* routing_id */, |
| 1380 uint32 /* socket_id */, | 1391 uint32 /* socket_id */, |
| 1381 PP_NetAddress_Private /* net_addr */) | 1392 PP_NetAddress_Private /* net_addr */) |
| 1382 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom, | 1393 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom, |
| 1383 uint32 /* socket_id */, | 1394 uint32 /* socket_id */, |
| 1384 int32_t /* num_bytes */) | 1395 int32_t /* num_bytes */) |
| 1385 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_SendTo, | 1396 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_SendTo, |
| 1386 uint32 /* socket_id */, | 1397 uint32 /* socket_id */, |
| 1387 std::string /* data */, | 1398 std::string /* data */, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1455 | 1466 |
| 1456 // File chooser. | 1467 // File chooser. |
| 1457 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) | 1468 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
| 1458 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, | 1469 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
| 1459 bool /* save_as */, | 1470 bool /* save_as */, |
| 1460 bool /* open_multiple */, | 1471 bool /* open_multiple */, |
| 1461 std::string /* suggested_file_name */, | 1472 std::string /* suggested_file_name */, |
| 1462 std::vector<std::string> /* accept_mime_types */) | 1473 std::vector<std::string> /* accept_mime_types */) |
| 1463 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1474 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
| 1464 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) | 1475 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
| OLD | NEW |