| 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/private/ppb_host_resolver_private.h" | 34 #include "ppapi/c/private/ppb_host_resolver_private.h" |
| 35 #include "ppapi/c/private/ppb_net_address_private.h" | 35 #include "ppapi/c/private/ppb_net_address_private.h" |
| 36 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 36 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
| 37 #include "ppapi/proxy/ppapi_param_traits.h" | 37 #include "ppapi/proxy/ppapi_param_traits.h" |
| 38 #include "ppapi/proxy/ppapi_proxy_export.h" | 38 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 39 #include "ppapi/proxy/serialized_flash_menu.h" | 39 #include "ppapi/proxy/serialized_flash_menu.h" |
| 40 #include "ppapi/proxy/serialized_structs.h" | 40 #include "ppapi/proxy/serialized_structs.h" |
| 41 #include "ppapi/shared_impl/ppapi_preferences.h" | 41 #include "ppapi/shared_impl/ppapi_preferences.h" |
| 42 #include "ppapi/shared_impl/ppb_device_ref_shared.h" | 42 #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
| 43 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 43 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 44 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" |
| 44 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" | 45 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" |
| 45 #include "ppapi/shared_impl/ppb_view_shared.h" | 46 #include "ppapi/shared_impl/ppb_view_shared.h" |
| 46 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" | 47 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" |
| 47 | 48 |
| 48 #undef IPC_MESSAGE_EXPORT | 49 #undef IPC_MESSAGE_EXPORT |
| 49 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 50 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
| 50 | 51 |
| 51 #define IPC_MESSAGE_START PpapiMsgStart | 52 #define IPC_MESSAGE_START PpapiMsgStart |
| 52 | 53 |
| 53 IPC_ENUM_TRAITS(PP_DeviceType_Dev) | 54 IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
| 54 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 55 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
| 55 IPC_ENUM_TRAITS(PP_InputEvent_Type) | 56 IPC_ENUM_TRAITS(PP_InputEvent_Type) |
| 56 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) | 57 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) |
| 58 IPC_ENUM_TRAITS(PP_NetworkListType_Private) |
| 59 IPC_ENUM_TRAITS(PP_NetworkListState_Private) |
| 57 IPC_ENUM_TRAITS(PP_TextInput_Type) | 60 IPC_ENUM_TRAITS(PP_TextInput_Type) |
| 58 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 61 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
| 59 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 62 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
| 60 | 63 |
| 61 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 64 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
| 62 IPC_STRUCT_TRAITS_MEMBER(x) | 65 IPC_STRUCT_TRAITS_MEMBER(x) |
| 63 IPC_STRUCT_TRAITS_MEMBER(y) | 66 IPC_STRUCT_TRAITS_MEMBER(y) |
| 64 IPC_STRUCT_TRAITS_END() | 67 IPC_STRUCT_TRAITS_END() |
| 65 | 68 |
| 66 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 69 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem) | 184 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem) |
| 182 IPC_STRUCT_TRAITS_MEMBER(is_file) | 185 IPC_STRUCT_TRAITS_MEMBER(is_file) |
| 183 IPC_STRUCT_TRAITS_MEMBER(data) | 186 IPC_STRUCT_TRAITS_MEMBER(data) |
| 184 // Note: we don't serialize file_ref. | 187 // Note: we don't serialize file_ref. |
| 185 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) | 188 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) |
| 186 IPC_STRUCT_TRAITS_MEMBER(start_offset) | 189 IPC_STRUCT_TRAITS_MEMBER(start_offset) |
| 187 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) | 190 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) |
| 188 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) | 191 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) |
| 189 IPC_STRUCT_TRAITS_END() | 192 IPC_STRUCT_TRAITS_END() |
| 190 | 193 |
| 194 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) |
| 195 IPC_STRUCT_TRAITS_MEMBER(name) |
| 196 IPC_STRUCT_TRAITS_MEMBER(type) |
| 197 IPC_STRUCT_TRAITS_MEMBER(state) |
| 198 IPC_STRUCT_TRAITS_MEMBER(addresses) |
| 199 IPC_STRUCT_TRAITS_MEMBER(display_name) |
| 200 IPC_STRUCT_TRAITS_MEMBER(mtu) |
| 201 IPC_STRUCT_TRAITS_END() |
| 202 |
| 191 // These are from the browser to the plugin. | 203 // These are from the browser to the plugin. |
| 192 // Loads the given plugin. | 204 // Loads the given plugin. |
| 193 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */) | 205 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */) |
| 194 | 206 |
| 195 // Creates a channel to talk to a renderer. The plugin will respond with | 207 // Creates a channel to talk to a renderer. The plugin will respond with |
| 196 // PpapiHostMsg_ChannelCreated. | 208 // PpapiHostMsg_ChannelCreated. |
| 197 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, | 209 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, |
| 198 base::ProcessHandle /* host_process_handle */, | 210 base::ProcessHandle /* host_process_handle */, |
| 199 int /* renderer_id */) | 211 int /* renderer_id */) |
| 200 | 212 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 ppapi::HostResource /* resource */, | 314 ppapi::HostResource /* resource */, |
| 303 int /* callback_id */, | 315 int /* callback_id */, |
| 304 int32_t /* result */) | 316 int32_t /* result */) |
| 305 | 317 |
| 306 // PPB_FileSystem. | 318 // PPB_FileSystem. |
| 307 IPC_MESSAGE_ROUTED2( | 319 IPC_MESSAGE_ROUTED2( |
| 308 PpapiMsg_PPBFileSystem_OpenComplete, | 320 PpapiMsg_PPBFileSystem_OpenComplete, |
| 309 ppapi::HostResource /* filesystem */, | 321 ppapi::HostResource /* filesystem */, |
| 310 int32_t /* result */) | 322 int32_t /* result */) |
| 311 | 323 |
| 324 // PPB_NetworkMonitor_Private. |
| 325 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList, |
| 326 uint32 /* plugin_dispatcher_id */, |
| 327 ppapi::NetworkList /* network_list */) |
| 328 |
| 312 // PPB_TCPSocket_Private. | 329 // PPB_TCPSocket_Private. |
| 313 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK, | 330 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK, |
| 314 uint32 /* plugin_dispatcher_id */, | 331 uint32 /* plugin_dispatcher_id */, |
| 315 uint32 /* socket_id */, | 332 uint32 /* socket_id */, |
| 316 bool /* succeeded */, | 333 bool /* succeeded */, |
| 317 PP_NetAddress_Private /* local_addr */, | 334 PP_NetAddress_Private /* local_addr */, |
| 318 PP_NetAddress_Private /* remote_addr */) | 335 PP_NetAddress_Private /* remote_addr */) |
| 319 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_SSLHandshakeACK, | 336 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_SSLHandshakeACK, |
| 320 uint32 /* plugin_dispatcher_id */, | 337 uint32 /* plugin_dispatcher_id */, |
| 321 uint32 /* socket_id */, | 338 uint32 /* socket_id */, |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 | 766 |
| 750 // PPB_FileSystem. | 767 // PPB_FileSystem. |
| 751 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, | 768 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, |
| 752 PP_Instance /* instance */, | 769 PP_Instance /* instance */, |
| 753 int /* type */, | 770 int /* type */, |
| 754 ppapi::HostResource /* result */) | 771 ppapi::HostResource /* result */) |
| 755 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, | 772 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, |
| 756 ppapi::HostResource /* result */, | 773 ppapi::HostResource /* result */, |
| 757 int64_t /* expected_size */) | 774 int64_t /* expected_size */) |
| 758 | 775 |
| 776 // PPB_NetworkMonitor_Private. |
| 777 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, |
| 778 uint32 /* plugin_dispatcher_id */) |
| 779 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, |
| 780 uint32 /* plugin_dispatcher_id */) |
| 781 |
| 759 // PPB_Graphics2D. | 782 // PPB_Graphics2D. |
| 760 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create, | 783 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create, |
| 761 PP_Instance /* instance */, | 784 PP_Instance /* instance */, |
| 762 PP_Size /* size */, | 785 PP_Size /* size */, |
| 763 PP_Bool /* is_always_opaque */, | 786 PP_Bool /* is_always_opaque */, |
| 764 ppapi::HostResource /* result */) | 787 ppapi::HostResource /* result */) |
| 765 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, | 788 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, |
| 766 ppapi::HostResource /* graphics_2d */, | 789 ppapi::HostResource /* graphics_2d */, |
| 767 ppapi::HostResource /* image_data */, | 790 ppapi::HostResource /* image_data */, |
| 768 PP_Point /* top_left */, | 791 PP_Point /* top_left */, |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept, | 1320 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept, |
| 1298 int32 /* tcp_client_socket_routing_id */, | 1321 int32 /* tcp_client_socket_routing_id */, |
| 1299 uint32 /* server_socket_id */) | 1322 uint32 /* server_socket_id */) |
| 1300 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy, | 1323 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy, |
| 1301 uint32 /* socket_id */) | 1324 uint32 /* socket_id */) |
| 1302 | 1325 |
| 1303 // PPB_Font. | 1326 // PPB_Font. |
| 1304 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, | 1327 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, |
| 1305 std::string /* result */) | 1328 std::string /* result */) |
| 1306 #endif // !defined(OS_NACL) | 1329 #endif // !defined(OS_NACL) |
| OLD | NEW |