| 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) |
| 72 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 73 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
| 73 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 74 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
| 74 | 75 |
| 75 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 76 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
| 76 IPC_STRUCT_TRAITS_MEMBER(x) | 77 IPC_STRUCT_TRAITS_MEMBER(x) |
| 77 IPC_STRUCT_TRAITS_MEMBER(y) | 78 IPC_STRUCT_TRAITS_MEMBER(y) |
| (...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1442 uint32 /* socket_id */, | 1443 uint32 /* socket_id */, |
| 1443 std::string /* data */) | 1444 std::string /* data */) |
| 1444 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, | 1445 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, |
| 1445 uint32 /* socket_id */) | 1446 uint32 /* socket_id */) |
| 1446 | 1447 |
| 1447 // PPB_UDPSocket_Private. | 1448 // PPB_UDPSocket_Private. |
| 1448 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBUDPSocket_Create, | 1449 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBUDPSocket_Create, |
| 1449 int32 /* routing_id */, | 1450 int32 /* routing_id */, |
| 1450 uint32 /* plugin_dispatcher_id */, | 1451 uint32 /* plugin_dispatcher_id */, |
| 1451 uint32 /* socket_id */) | 1452 uint32 /* socket_id */) |
| 1453 IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBUDPSocket_SetBoolSocketFeature, |
| 1454 int32 /* routing_id */, |
| 1455 uint32 /* socket_id */, |
| 1456 int32_t /* name */, |
| 1457 bool /* value */) |
| 1452 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_Bind, | 1458 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_Bind, |
| 1453 int32 /* routing_id */, | 1459 int32 /* routing_id */, |
| 1454 uint32 /* socket_id */, | 1460 uint32 /* socket_id */, |
| 1455 PP_NetAddress_Private /* net_addr */) | 1461 PP_NetAddress_Private /* net_addr */) |
| 1456 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom, | 1462 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom, |
| 1457 uint32 /* socket_id */, | 1463 uint32 /* socket_id */, |
| 1458 int32_t /* num_bytes */) | 1464 int32_t /* num_bytes */) |
| 1459 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_SendTo, | 1465 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_SendTo, |
| 1460 uint32 /* socket_id */, | 1466 uint32 /* socket_id */, |
| 1461 std::string /* data */, | 1467 std::string /* data */, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1535 std::string /* suggested_file_name */, | 1541 std::string /* suggested_file_name */, |
| 1536 std::vector<std::string> /* accept_mime_types */) | 1542 std::vector<std::string> /* accept_mime_types */) |
| 1537 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1543 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
| 1538 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) | 1544 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
| 1539 | 1545 |
| 1540 // Gamepad. | 1546 // Gamepad. |
| 1541 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) | 1547 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) |
| 1542 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) | 1548 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) |
| 1543 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Gamepad_SendMemory, | 1549 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Gamepad_SendMemory, |
| 1544 base::SharedMemoryHandle /* handle */) | 1550 base::SharedMemoryHandle /* handle */) |
| OLD | NEW |