| 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 23 matching lines...) Expand all Loading... |
| 34 #include "ppapi/c/pp_rect.h" | 34 #include "ppapi/c/pp_rect.h" |
| 35 #include "ppapi/c/pp_resource.h" | 35 #include "ppapi/c/pp_resource.h" |
| 36 #include "ppapi/c/pp_size.h" | 36 #include "ppapi/c/pp_size.h" |
| 37 #include "ppapi/c/pp_time.h" | 37 #include "ppapi/c/pp_time.h" |
| 38 #include "ppapi/c/ppb_audio_config.h" | 38 #include "ppapi/c/ppb_audio_config.h" |
| 39 #include "ppapi/c/private/pp_content_decryptor.h" | 39 #include "ppapi/c/private/pp_content_decryptor.h" |
| 40 #include "ppapi/c/private/pp_private_font_charset.h" | 40 #include "ppapi/c/private/pp_private_font_charset.h" |
| 41 #include "ppapi/c/private/ppb_flash.h" | 41 #include "ppapi/c/private/ppb_flash.h" |
| 42 #include "ppapi/c/private/ppb_host_resolver_private.h" | 42 #include "ppapi/c/private/ppb_host_resolver_private.h" |
| 43 #include "ppapi/c/private/ppb_net_address_private.h" | 43 #include "ppapi/c/private/ppb_net_address_private.h" |
| 44 #include "ppapi/c/private/ppb_pdf.h" |
| 44 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 45 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
| 45 #include "ppapi/c/private/ppb_udp_socket_private.h" | 46 #include "ppapi/c/private/ppb_udp_socket_private.h" |
| 46 #include "ppapi/c/private/ppp_flash_browser_operations.h" | 47 #include "ppapi/c/private/ppp_flash_browser_operations.h" |
| 47 #include "ppapi/proxy/host_resolver_private_resource.h" | 48 #include "ppapi/proxy/host_resolver_private_resource.h" |
| 48 #include "ppapi/proxy/ppapi_param_traits.h" | 49 #include "ppapi/proxy/ppapi_param_traits.h" |
| 49 #include "ppapi/proxy/ppapi_proxy_export.h" | 50 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 50 #include "ppapi/proxy/resource_message_params.h" | 51 #include "ppapi/proxy/resource_message_params.h" |
| 51 #include "ppapi/proxy/serialized_flash_menu.h" | 52 #include "ppapi/proxy/serialized_flash_menu.h" |
| 52 #include "ppapi/proxy/serialized_handle.h" | 53 #include "ppapi/proxy/serialized_handle.h" |
| 53 #include "ppapi/proxy/serialized_structs.h" | 54 #include "ppapi/proxy/serialized_structs.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 78 IPC_ENUM_TRAITS(PP_FlashSetting) | 79 IPC_ENUM_TRAITS(PP_FlashSetting) |
| 79 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 80 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
| 80 IPC_ENUM_TRAITS(PP_InputEvent_Type) | 81 IPC_ENUM_TRAITS(PP_InputEvent_Type) |
| 81 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) | 82 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) |
| 82 IPC_ENUM_TRAITS(PP_NetworkListState_Private) | 83 IPC_ENUM_TRAITS(PP_NetworkListState_Private) |
| 83 IPC_ENUM_TRAITS(PP_NetworkListType_Private) | 84 IPC_ENUM_TRAITS(PP_NetworkListType_Private) |
| 84 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) | 85 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) |
| 85 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) | 86 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) |
| 86 IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev) | 87 IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev) |
| 87 IPC_ENUM_TRAITS(PP_PrivateFontCharset) | 88 IPC_ENUM_TRAITS(PP_PrivateFontCharset) |
| 89 IPC_ENUM_TRAITS(PP_ResourceImage) |
| 90 IPC_ENUM_TRAITS(PP_ResourceString) |
| 88 IPC_ENUM_TRAITS(PP_TextInput_Type) | 91 IPC_ENUM_TRAITS(PP_TextInput_Type) |
| 89 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev) | 92 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev) |
| 90 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) | 93 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) |
| 91 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) | 94 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) |
| 92 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) | 95 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) |
| 93 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) | 96 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) |
| 94 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 97 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
| 95 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 98 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
| 96 | 99 |
| 97 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 100 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
| (...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1123 PP_Resource /* audio_frames, PPB_Buffer_Dev */, | 1126 PP_Resource /* audio_frames, PPB_Buffer_Dev */, |
| 1124 std::string /* serialized_block_info */) | 1127 std::string /* serialized_block_info */) |
| 1125 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1128 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| 1126 | 1129 |
| 1127 // PPB_NetworkMonitor_Private. | 1130 // PPB_NetworkMonitor_Private. |
| 1128 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, | 1131 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, |
| 1129 uint32 /* plugin_dispatcher_id */) | 1132 uint32 /* plugin_dispatcher_id */) |
| 1130 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, | 1133 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, |
| 1131 uint32 /* plugin_dispatcher_id */) | 1134 uint32 /* plugin_dispatcher_id */) |
| 1132 | 1135 |
| 1133 #if !defined(OS_NACL) && !defined(NACL_WIN64) | |
| 1134 // PPB_PDF | |
| 1135 IPC_SYNC_MESSAGE_ROUTED3_1( | |
| 1136 PpapiHostMsg_PPBPDF_GetFontFileWithFallback, | |
| 1137 PP_Instance /* instance */, | |
| 1138 ppapi::proxy::SerializedFontDescription /* description */, | |
| 1139 int32_t /* charset */, | |
| 1140 ppapi::HostResource /* result */) | |
| 1141 IPC_SYNC_MESSAGE_ROUTED2_1( | |
| 1142 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, | |
| 1143 ppapi::HostResource /* font_file */, | |
| 1144 uint32_t /* table */, | |
| 1145 std::string /* result */) | |
| 1146 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | |
| 1147 | |
| 1148 // PPB_Testing. | 1136 // PPB_Testing. |
| 1149 IPC_SYNC_MESSAGE_ROUTED3_1( | 1137 IPC_SYNC_MESSAGE_ROUTED3_1( |
| 1150 PpapiHostMsg_PPBTesting_ReadImageData, | 1138 PpapiHostMsg_PPBTesting_ReadImageData, |
| 1151 ppapi::HostResource /* device_context_2d */, | 1139 ppapi::HostResource /* device_context_2d */, |
| 1152 ppapi::HostResource /* image */, | 1140 ppapi::HostResource /* image */, |
| 1153 PP_Point /* top_left */, | 1141 PP_Point /* top_left */, |
| 1154 PP_Bool /* result */) | 1142 PP_Bool /* result */) |
| 1155 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, | 1143 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, |
| 1156 PP_Instance /* instance */, | 1144 PP_Instance /* instance */, |
| 1157 uint32 /* result */) | 1145 uint32 /* result */) |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1746 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply, | 1734 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply, |
| 1747 int32_t /* selected_id */) | 1735 int32_t /* selected_id */) |
| 1748 | 1736 |
| 1749 // PDF ------------------------------------------------------------------------ | 1737 // PDF ------------------------------------------------------------------------ |
| 1750 | 1738 |
| 1751 // Creates the PDF resource. | 1739 // Creates the PDF resource. |
| 1752 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Create) | 1740 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Create) |
| 1753 | 1741 |
| 1754 // Requests the localized string for the given ID. | 1742 // Requests the localized string for the given ID. |
| 1755 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_GetLocalizedString, | 1743 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_GetLocalizedString, |
| 1756 int /* string_id */) | 1744 PP_ResourceString /* string_id */) |
| 1757 // Reply for PpapiHostMsg_PDF_GetLocalizedString containing the localized | 1745 // Reply for PpapiHostMsg_PDF_GetLocalizedString containing the localized |
| 1758 // string. | 1746 // string. |
| 1759 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_PDF_GetLocalizedStringReply, | 1747 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_PDF_GetLocalizedStringReply, |
| 1760 std::string /* localized_string*/) | 1748 std::string /* localized_string*/) |
| 1761 | 1749 |
| 1762 // Notifies the renderer that the PDF started loading. | 1750 // Notifies the renderer that the PDF started loading. |
| 1763 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStartLoading) | 1751 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStartLoading) |
| 1764 | 1752 |
| 1765 // Notifies the renderer that the PDF stopped loading. | 1753 // Notifies the renderer that the PDF stopped loading. |
| 1766 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStopLoading) | 1754 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStopLoading) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1777 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_HasUnsupportedFeature) | 1765 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_HasUnsupportedFeature) |
| 1778 | 1766 |
| 1779 // Notifies the renderer to print the current PDF. | 1767 // Notifies the renderer to print the current PDF. |
| 1780 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Print) | 1768 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Print) |
| 1781 | 1769 |
| 1782 // Notifies the renderer to save the current PDF. | 1770 // Notifies the renderer to save the current PDF. |
| 1783 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs) | 1771 IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs) |
| 1784 | 1772 |
| 1785 // Requests a resource image for the plugin at a particular scale. | 1773 // Requests a resource image for the plugin at a particular scale. |
| 1786 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PDF_GetResourceImage, | 1774 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PDF_GetResourceImage, |
| 1787 int /* image_id */, | 1775 PP_ResourceImage /* image_id */, |
| 1788 float /* scale */) | 1776 float /* scale */) |
| 1789 // Reply for PpapiHostMsg_PDF_GetResourceImage containing the host resource id | 1777 // Reply for PpapiHostMsg_PDF_GetResourceImage containing the host resource id |
| 1790 // of the image and a string (representing a PP_ImageDataDesc) containing the | 1778 // of the image and a string (representing a PP_ImageDataDesc) containing the |
| 1791 // properties of the image. Also carries a shared memory handle pointing to the | 1779 // properties of the image. Also carries a shared memory handle pointing to the |
| 1792 // memory containg the image. | 1780 // memory containg the image. On linux, the handle is transmitted in this |
| 1793 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_PDF_GetResourceImageReply, | 1781 // message as |fd|. This is due to the unfortunate way that ImageHandles are |
| 1782 // defined for use with PPB_ImageData. |
| 1783 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_PDF_GetResourceImageReply, |
| 1794 ppapi::HostResource /* resource_id */, | 1784 ppapi::HostResource /* resource_id */, |
| 1795 std::string /* image_data_desc */) | 1785 std::string /* image_data_desc */, |
| 1786 int /* fd */) |
| 1796 | 1787 |
| 1797 // VideoCapture_Dev, plugin -> host | 1788 // VideoCapture_Dev, plugin -> host |
| 1798 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create) | 1789 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create) |
| 1799 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture) | 1790 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture) |
| 1800 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer, | 1791 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer, |
| 1801 uint32_t /* buffer */) | 1792 uint32_t /* buffer */) |
| 1802 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture) | 1793 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture) |
| 1803 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close) | 1794 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close) |
| 1804 | 1795 |
| 1805 // VideoCapture_Dev, plugin -> host -> plugin | 1796 // VideoCapture_Dev, plugin -> host -> plugin |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1827 std::vector<ppapi::HostResource> /* buffers */, | 1818 std::vector<ppapi::HostResource> /* buffers */, |
| 1828 uint32_t /* buffer_size */) | 1819 uint32_t /* buffer_size */) |
| 1829 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1820 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
| 1830 uint32_t /* status */) | 1821 uint32_t /* status */) |
| 1831 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1822 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
| 1832 uint32_t /* error */) | 1823 uint32_t /* error */) |
| 1833 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1824 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
| 1834 uint32_t /* buffer */) | 1825 uint32_t /* buffer */) |
| 1835 | 1826 |
| 1836 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1827 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| OLD | NEW |