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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 PP_Resource /* socket_resource */, | 692 PP_Resource /* socket_resource */, |
693 uint32 /* socket_id */, | 693 uint32 /* socket_id */, |
694 int32_t /* status */) | 694 int32_t /* status */) |
695 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK, | 695 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK, |
696 uint32 /* plugin_dispatcher_id */, | 696 uint32 /* plugin_dispatcher_id */, |
697 uint32 /* server_socket_id */, | 697 uint32 /* server_socket_id */, |
698 uint32 /* accepted_socket_id */, | 698 uint32 /* accepted_socket_id */, |
699 PP_NetAddress_Private /* local_addr */, | 699 PP_NetAddress_Private /* local_addr */, |
700 PP_NetAddress_Private /* remote_addr */) | 700 PP_NetAddress_Private /* remote_addr */) |
701 | 701 |
702 // PPB_HostResolver_Private. | |
703 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBHostResolver_ResolveACK, | |
704 uint32 /* plugin_dispatcher_id */, | |
705 uint32 /* host_resolver_id */, | |
706 bool /* succeeded */, | |
707 std::string /* canonical_name */, | |
708 std::vector<PP_NetAddress_Private> /* net_address_list */) | |
709 | |
710 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 702 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
711 // PPP_Instance_Private. | 703 // PPP_Instance_Private. |
712 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, | 704 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, |
713 PP_Instance /* instance */, | 705 PP_Instance /* instance */, |
714 ppapi::proxy::SerializedVar /* result */) | 706 ppapi::proxy::SerializedVar /* result */) |
715 | 707 |
716 // PPB_VideoDecoder_Dev. | 708 // PPB_VideoDecoder_Dev. |
717 // (Messages from renderer to plugin to notify it to run callbacks.) | 709 // (Messages from renderer to plugin to notify it to run callbacks.) |
718 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, | 710 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, |
719 ppapi::HostResource /* video_decoder */, | 711 ppapi::HostResource /* video_decoder */, |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1104 PP_Resource /* audio_frames, PPB_Buffer_Dev */, | 1096 PP_Resource /* audio_frames, PPB_Buffer_Dev */, |
1105 std::string /* serialized_block_info */) | 1097 std::string /* serialized_block_info */) |
1106 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1098 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
1107 | 1099 |
1108 // PPB_NetworkMonitor_Private. | 1100 // PPB_NetworkMonitor_Private. |
1109 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, | 1101 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, |
1110 uint32 /* plugin_dispatcher_id */) | 1102 uint32 /* plugin_dispatcher_id */) |
1111 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, | 1103 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, |
1112 uint32 /* plugin_dispatcher_id */) | 1104 uint32 /* plugin_dispatcher_id */) |
1113 | 1105 |
1114 // PPB_HostResolver_Private. | |
1115 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve, | |
1116 int32 /* routing_id */, | |
1117 uint32 /* plugin_dispatcher_id */, | |
1118 uint32 /* host_resolver_id */, | |
1119 ppapi::HostPortPair /* host_port */, | |
1120 PP_HostResolver_Private_Hint /* hint */) | |
1121 | |
1122 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 1106 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
1123 // PPB_PDF | 1107 // PPB_PDF |
1124 IPC_SYNC_MESSAGE_ROUTED3_1( | 1108 IPC_SYNC_MESSAGE_ROUTED3_1( |
1125 PpapiHostMsg_PPBPDF_GetFontFileWithFallback, | 1109 PpapiHostMsg_PPBPDF_GetFontFileWithFallback, |
1126 PP_Instance /* instance */, | 1110 PP_Instance /* instance */, |
1127 ppapi::proxy::SerializedFontDescription /* description */, | 1111 ppapi::proxy::SerializedFontDescription /* description */, |
1128 int32_t /* charset */, | 1112 int32_t /* charset */, |
1129 ppapi::HostResource /* result */) | 1113 ppapi::HostResource /* result */) |
1130 IPC_SYNC_MESSAGE_ROUTED2_1( | 1114 IPC_SYNC_MESSAGE_ROUTED2_1( |
1131 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, | 1115 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1404 | 1388 |
1405 // Graphics2D, plugin -> host -> plugin | 1389 // Graphics2D, plugin -> host -> plugin |
1406 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush) | 1390 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush) |
1407 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) | 1391 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) |
1408 | 1392 |
1409 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, | 1393 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, |
1410 PP_Resource /* image */, | 1394 PP_Resource /* image */, |
1411 PP_Point /* top_left */) | 1395 PP_Point /* top_left */) |
1412 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) | 1396 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) |
1413 | 1397 |
| 1398 // HostResolverPrivate, plugin -> host -> plugin |
| 1399 IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolverPrivate_Create) |
| 1400 IPC_MESSAGE_CONTROL2(PpapiHostMsg_HostResolverPrivate_Resolve, |
| 1401 ppapi::HostPortPair /* host_port */, |
| 1402 PP_HostResolver_Private_Hint /* hint */) |
| 1403 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolverPrivate_ResolveReply, |
| 1404 std::string /* canonical_name */, |
| 1405 std::vector<PP_NetAddress_Private> /* net_address_list */) |
1414 | 1406 |
1415 // Printing. | 1407 // Printing. |
1416 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) | 1408 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) |
1417 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) | 1409 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) |
1418 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, | 1410 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, |
1419 PP_PrintSettings_Dev /* print_settings */) | 1411 PP_PrintSettings_Dev /* print_settings */) |
1420 | 1412 |
1421 // WebSocket ------------------------------------------------------------------ | 1413 // WebSocket ------------------------------------------------------------------ |
1422 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) | 1414 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) |
1423 | 1415 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1699 std::vector<ppapi::HostResource> /* buffers */, | 1691 std::vector<ppapi::HostResource> /* buffers */, |
1700 uint32_t /* buffer_size */) | 1692 uint32_t /* buffer_size */) |
1701 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1693 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
1702 uint32_t /* status */) | 1694 uint32_t /* status */) |
1703 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1695 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
1704 uint32_t /* error */) | 1696 uint32_t /* error */) |
1705 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1697 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
1706 uint32_t /* buffer */) | 1698 uint32_t /* buffer */) |
1707 | 1699 |
1708 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1700 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |