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 23 matching lines...) Expand all Loading... |
34 #include "ppapi/c/pp_time.h" | 34 #include "ppapi/c/pp_time.h" |
35 #include "ppapi/c/ppb_audio_config.h" | 35 #include "ppapi/c/ppb_audio_config.h" |
36 #include "ppapi/c/private/pp_content_decryptor.h" | 36 #include "ppapi/c/private/pp_content_decryptor.h" |
37 #include "ppapi/c/private/pp_private_font_charset.h" | 37 #include "ppapi/c/private/pp_private_font_charset.h" |
38 #include "ppapi/c/private/ppb_flash.h" | 38 #include "ppapi/c/private/ppb_flash.h" |
39 #include "ppapi/c/private/ppb_host_resolver_private.h" | 39 #include "ppapi/c/private/ppb_host_resolver_private.h" |
40 #include "ppapi/c/private/ppb_net_address_private.h" | 40 #include "ppapi/c/private/ppb_net_address_private.h" |
41 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 41 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
42 #include "ppapi/c/private/ppb_udp_socket_private.h" | 42 #include "ppapi/c/private/ppb_udp_socket_private.h" |
43 #include "ppapi/c/private/ppp_flash_browser_operations.h" | 43 #include "ppapi/c/private/ppp_flash_browser_operations.h" |
| 44 #include "ppapi/proxy/host_resolver_private_resource.h" |
44 #include "ppapi/proxy/ppapi_param_traits.h" | 45 #include "ppapi/proxy/ppapi_param_traits.h" |
45 #include "ppapi/proxy/ppapi_proxy_export.h" | 46 #include "ppapi/proxy/ppapi_proxy_export.h" |
46 #include "ppapi/proxy/resource_message_params.h" | 47 #include "ppapi/proxy/resource_message_params.h" |
47 #include "ppapi/proxy/serialized_flash_menu.h" | 48 #include "ppapi/proxy/serialized_flash_menu.h" |
48 #include "ppapi/proxy/serialized_handle.h" | 49 #include "ppapi/proxy/serialized_handle.h" |
49 #include "ppapi/proxy/serialized_structs.h" | 50 #include "ppapi/proxy/serialized_structs.h" |
50 #include "ppapi/proxy/serialized_var.h" | 51 #include "ppapi/proxy/serialized_var.h" |
51 #include "ppapi/shared_impl/dir_contents.h" | 52 #include "ppapi/shared_impl/dir_contents.h" |
52 #include "ppapi/shared_impl/file_path.h" | 53 #include "ppapi/shared_impl/file_path.h" |
53 #include "ppapi/shared_impl/ppapi_preferences.h" | 54 #include "ppapi/shared_impl/ppapi_preferences.h" |
54 #include "ppapi/shared_impl/ppb_device_ref_shared.h" | 55 #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
55 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 56 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
56 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" | 57 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" |
57 #include "ppapi/shared_impl/ppb_view_shared.h" | 58 #include "ppapi/shared_impl/ppb_view_shared.h" |
58 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" | 59 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" |
59 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" | |
60 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" | 60 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" |
61 #include "ppapi/shared_impl/url_request_info_data.h" | 61 #include "ppapi/shared_impl/url_request_info_data.h" |
62 #include "ppapi/shared_impl/url_response_info_data.h" | 62 #include "ppapi/shared_impl/url_response_info_data.h" |
63 | 63 |
64 #undef IPC_MESSAGE_EXPORT | 64 #undef IPC_MESSAGE_EXPORT |
65 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 65 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
66 | 66 |
67 #define IPC_MESSAGE_START PpapiMsgStart | 67 #define IPC_MESSAGE_START PpapiMsgStart |
68 | 68 |
69 IPC_ENUM_TRAITS(PP_AudioSampleRate) | 69 IPC_ENUM_TRAITS(PP_AudioSampleRate) |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 PP_Resource /* socket_resource */, | 693 PP_Resource /* socket_resource */, |
694 uint32 /* socket_id */, | 694 uint32 /* socket_id */, |
695 int32_t /* status */) | 695 int32_t /* status */) |
696 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK, | 696 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK, |
697 uint32 /* plugin_dispatcher_id */, | 697 uint32 /* plugin_dispatcher_id */, |
698 uint32 /* server_socket_id */, | 698 uint32 /* server_socket_id */, |
699 uint32 /* accepted_socket_id */, | 699 uint32 /* accepted_socket_id */, |
700 PP_NetAddress_Private /* local_addr */, | 700 PP_NetAddress_Private /* local_addr */, |
701 PP_NetAddress_Private /* remote_addr */) | 701 PP_NetAddress_Private /* remote_addr */) |
702 | 702 |
703 // PPB_HostResolver_Private. | |
704 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBHostResolver_ResolveACK, | |
705 uint32 /* plugin_dispatcher_id */, | |
706 uint32 /* host_resolver_id */, | |
707 bool /* succeeded */, | |
708 std::string /* canonical_name */, | |
709 std::vector<PP_NetAddress_Private> /* net_address_list */) | |
710 | |
711 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 703 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
712 // PPP_Instance_Private. | 704 // PPP_Instance_Private. |
713 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, | 705 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, |
714 PP_Instance /* instance */, | 706 PP_Instance /* instance */, |
715 ppapi::proxy::SerializedVar /* result */) | 707 ppapi::proxy::SerializedVar /* result */) |
716 | 708 |
717 // PPB_VideoDecoder_Dev. | 709 // PPB_VideoDecoder_Dev. |
718 // (Messages from renderer to plugin to notify it to run callbacks.) | 710 // (Messages from renderer to plugin to notify it to run callbacks.) |
719 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, | 711 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, |
720 ppapi::HostResource /* video_decoder */, | 712 ppapi::HostResource /* video_decoder */, |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 PP_Resource /* audio_frames, PPB_Buffer_Dev */, | 1097 PP_Resource /* audio_frames, PPB_Buffer_Dev */, |
1106 std::string /* serialized_block_info */) | 1098 std::string /* serialized_block_info */) |
1107 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1099 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
1108 | 1100 |
1109 // PPB_NetworkMonitor_Private. | 1101 // PPB_NetworkMonitor_Private. |
1110 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, | 1102 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, |
1111 uint32 /* plugin_dispatcher_id */) | 1103 uint32 /* plugin_dispatcher_id */) |
1112 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, | 1104 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, |
1113 uint32 /* plugin_dispatcher_id */) | 1105 uint32 /* plugin_dispatcher_id */) |
1114 | 1106 |
1115 // PPB_HostResolver_Private. | |
1116 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve, | |
1117 int32 /* routing_id */, | |
1118 uint32 /* plugin_dispatcher_id */, | |
1119 uint32 /* host_resolver_id */, | |
1120 ppapi::HostPortPair /* host_port */, | |
1121 PP_HostResolver_Private_Hint /* hint */) | |
1122 | |
1123 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 1107 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
1124 // PPB_PDF | 1108 // PPB_PDF |
1125 IPC_SYNC_MESSAGE_ROUTED3_1( | 1109 IPC_SYNC_MESSAGE_ROUTED3_1( |
1126 PpapiHostMsg_PPBPDF_GetFontFileWithFallback, | 1110 PpapiHostMsg_PPBPDF_GetFontFileWithFallback, |
1127 PP_Instance /* instance */, | 1111 PP_Instance /* instance */, |
1128 ppapi::proxy::SerializedFontDescription /* description */, | 1112 ppapi::proxy::SerializedFontDescription /* description */, |
1129 int32_t /* charset */, | 1113 int32_t /* charset */, |
1130 ppapi::HostResource /* result */) | 1114 ppapi::HostResource /* result */) |
1131 IPC_SYNC_MESSAGE_ROUTED2_1( | 1115 IPC_SYNC_MESSAGE_ROUTED2_1( |
1132 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, | 1116 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1405 | 1389 |
1406 // Graphics2D, plugin -> host -> plugin | 1390 // Graphics2D, plugin -> host -> plugin |
1407 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush) | 1391 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush) |
1408 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) | 1392 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) |
1409 | 1393 |
1410 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, | 1394 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, |
1411 PP_Resource /* image */, | 1395 PP_Resource /* image */, |
1412 PP_Point /* top_left */) | 1396 PP_Point /* top_left */) |
1413 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) | 1397 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) |
1414 | 1398 |
| 1399 // HostResolverPrivate, plugin -> host -> plugin |
| 1400 IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolverPrivate_Create) |
| 1401 IPC_MESSAGE_CONTROL2(PpapiHostMsg_HostResolverPrivate_Resolve, |
| 1402 ppapi::HostPortPair /* host_port */, |
| 1403 PP_HostResolver_Private_Hint /* hint */) |
| 1404 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolverPrivate_ResolveReply, |
| 1405 std::string /* canonical_name */, |
| 1406 std::vector<PP_NetAddress_Private> /* net_address_list */) |
1415 | 1407 |
1416 // Printing. | 1408 // Printing. |
1417 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) | 1409 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) |
1418 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) | 1410 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) |
1419 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, | 1411 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, |
1420 PP_PrintSettings_Dev /* print_settings */) | 1412 PP_PrintSettings_Dev /* print_settings */) |
1421 | 1413 |
1422 // WebSocket ------------------------------------------------------------------ | 1414 // WebSocket ------------------------------------------------------------------ |
1423 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) | 1415 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) |
1424 | 1416 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1700 std::vector<ppapi::HostResource> /* buffers */, | 1692 std::vector<ppapi::HostResource> /* buffers */, |
1701 uint32_t /* buffer_size */) | 1693 uint32_t /* buffer_size */) |
1702 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1694 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
1703 uint32_t /* status */) | 1695 uint32_t /* status */) |
1704 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1696 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
1705 uint32_t /* error */) | 1697 uint32_t /* error */) |
1706 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1698 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
1707 uint32_t /* buffer */) | 1699 uint32_t /* buffer */) |
1708 | 1700 |
1709 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1701 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |