Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 9455092: HostResolver is exposed to plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13 matching lines...) Expand all
24 #include "ppapi/c/dev/ppp_printing_dev.h" 24 #include "ppapi/c/dev/ppp_printing_dev.h"
25 #include "ppapi/c/pp_bool.h" 25 #include "ppapi/c/pp_bool.h"
26 #include "ppapi/c/pp_file_info.h" 26 #include "ppapi/c/pp_file_info.h"
27 #include "ppapi/c/pp_instance.h" 27 #include "ppapi/c/pp_instance.h"
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_host_resolver_private.h"
35 #include "ppapi/c/private/ppb_net_address_private.h"
34 #include "ppapi/c/private/ppb_tcp_socket_private.h" 36 #include "ppapi/c/private/ppb_tcp_socket_private.h"
35 #include "ppapi/proxy/ppapi_param_traits.h" 37 #include "ppapi/proxy/ppapi_param_traits.h"
36 #include "ppapi/proxy/ppapi_proxy_export.h" 38 #include "ppapi/proxy/ppapi_proxy_export.h"
37 #include "ppapi/proxy/serialized_flash_menu.h" 39 #include "ppapi/proxy/serialized_flash_menu.h"
38 #include "ppapi/proxy/serialized_structs.h" 40 #include "ppapi/proxy/serialized_structs.h"
39 #include "ppapi/shared_impl/ppapi_preferences.h" 41 #include "ppapi/shared_impl/ppapi_preferences.h"
40 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 42 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
41 #include "ppapi/shared_impl/ppb_input_event_shared.h" 43 #include "ppapi/shared_impl/ppb_input_event_shared.h"
42 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" 44 #include "ppapi/shared_impl/ppb_url_request_info_shared.h"
43 #include "ppapi/shared_impl/ppb_view_shared.h" 45 #include "ppapi/shared_impl/ppb_view_shared.h"
46 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
44 47
45 #undef IPC_MESSAGE_EXPORT 48 #undef IPC_MESSAGE_EXPORT
46 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT 49 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
47 50
48 #define IPC_MESSAGE_START PpapiMsgStart 51 #define IPC_MESSAGE_START PpapiMsgStart
49 52
50 IPC_ENUM_TRAITS(PP_DeviceType_Dev) 53 IPC_ENUM_TRAITS(PP_DeviceType_Dev)
54 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
51 IPC_ENUM_TRAITS(PP_InputEvent_Type) 55 IPC_ENUM_TRAITS(PP_InputEvent_Type)
52 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) 56 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private)
53 IPC_ENUM_TRAITS(PP_TextInput_Type) 57 IPC_ENUM_TRAITS(PP_TextInput_Type)
58 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
54 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) 59 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
55 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
56 60
57 IPC_STRUCT_TRAITS_BEGIN(PP_Point) 61 IPC_STRUCT_TRAITS_BEGIN(PP_Point)
58 IPC_STRUCT_TRAITS_MEMBER(x) 62 IPC_STRUCT_TRAITS_MEMBER(x)
59 IPC_STRUCT_TRAITS_MEMBER(y) 63 IPC_STRUCT_TRAITS_MEMBER(y)
60 IPC_STRUCT_TRAITS_END() 64 IPC_STRUCT_TRAITS_END()
61 65
62 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) 66 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
63 IPC_STRUCT_TRAITS_MEMBER(x) 67 IPC_STRUCT_TRAITS_MEMBER(x)
64 IPC_STRUCT_TRAITS_MEMBER(y) 68 IPC_STRUCT_TRAITS_MEMBER(y)
65 IPC_STRUCT_TRAITS_END() 69 IPC_STRUCT_TRAITS_END()
(...skipping 23 matching lines...) Expand all
89 IPC_STRUCT_TRAITS_MEMBER(first_page_number) 93 IPC_STRUCT_TRAITS_MEMBER(first_page_number)
90 IPC_STRUCT_TRAITS_MEMBER(last_page_number) 94 IPC_STRUCT_TRAITS_MEMBER(last_page_number)
91 IPC_STRUCT_TRAITS_END() 95 IPC_STRUCT_TRAITS_END()
92 96
93 IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev) 97 IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev)
94 IPC_STRUCT_TRAITS_MEMBER(width) 98 IPC_STRUCT_TRAITS_MEMBER(width)
95 IPC_STRUCT_TRAITS_MEMBER(height) 99 IPC_STRUCT_TRAITS_MEMBER(height)
96 IPC_STRUCT_TRAITS_MEMBER(frames_per_second) 100 IPC_STRUCT_TRAITS_MEMBER(frames_per_second)
97 IPC_STRUCT_TRAITS_END() 101 IPC_STRUCT_TRAITS_END()
98 102
103 IPC_STRUCT_TRAITS_BEGIN(PP_HostResolver_Private_Hint)
104 IPC_STRUCT_TRAITS_MEMBER(family)
105 IPC_STRUCT_TRAITS_MEMBER(flags)
106 IPC_STRUCT_TRAITS_END()
107
99 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) 108 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
100 IPC_STRUCT_TRAITS_MEMBER(type) 109 IPC_STRUCT_TRAITS_MEMBER(type)
101 IPC_STRUCT_TRAITS_MEMBER(name) 110 IPC_STRUCT_TRAITS_MEMBER(name)
102 IPC_STRUCT_TRAITS_MEMBER(id) 111 IPC_STRUCT_TRAITS_MEMBER(id)
103 IPC_STRUCT_TRAITS_END() 112 IPC_STRUCT_TRAITS_END()
104 113
105 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer) 114 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer)
106 IPC_STRUCT_TRAITS_MEMBER(resource) 115 IPC_STRUCT_TRAITS_MEMBER(resource)
107 IPC_STRUCT_TRAITS_MEMBER(handle) 116 IPC_STRUCT_TRAITS_MEMBER(handle)
108 IPC_STRUCT_TRAITS_MEMBER(size) 117 IPC_STRUCT_TRAITS_MEMBER(size)
(...skipping 29 matching lines...) Expand all
138 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page) 147 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page)
139 IPC_STRUCT_TRAITS_MEMBER(key_code) 148 IPC_STRUCT_TRAITS_MEMBER(key_code)
140 IPC_STRUCT_TRAITS_MEMBER(usb_key_code) 149 IPC_STRUCT_TRAITS_MEMBER(usb_key_code)
141 IPC_STRUCT_TRAITS_MEMBER(character_text) 150 IPC_STRUCT_TRAITS_MEMBER(character_text)
142 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets) 151 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets)
143 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment) 152 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment)
144 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start) 153 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start)
145 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end) 154 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end)
146 IPC_STRUCT_TRAITS_END() 155 IPC_STRUCT_TRAITS_END()
147 156
157 IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair)
158 IPC_STRUCT_TRAITS_MEMBER(host)
159 IPC_STRUCT_TRAITS_MEMBER(port)
160 IPC_STRUCT_TRAITS_END()
161
148 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data) 162 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data)
149 IPC_STRUCT_TRAITS_MEMBER(url) 163 IPC_STRUCT_TRAITS_MEMBER(url)
150 IPC_STRUCT_TRAITS_MEMBER(method) 164 IPC_STRUCT_TRAITS_MEMBER(method)
151 IPC_STRUCT_TRAITS_MEMBER(headers) 165 IPC_STRUCT_TRAITS_MEMBER(headers)
152 IPC_STRUCT_TRAITS_MEMBER(stream_to_file) 166 IPC_STRUCT_TRAITS_MEMBER(stream_to_file)
153 IPC_STRUCT_TRAITS_MEMBER(follow_redirects) 167 IPC_STRUCT_TRAITS_MEMBER(follow_redirects)
154 IPC_STRUCT_TRAITS_MEMBER(record_download_progress) 168 IPC_STRUCT_TRAITS_MEMBER(record_download_progress)
155 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress) 169 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress)
156 IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url) 170 IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url)
157 IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url) 171 IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url)
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 uint32 /* plugin_dispatcher_id */, 324 uint32 /* plugin_dispatcher_id */,
311 uint32 /* socket_id */, 325 uint32 /* socket_id */,
312 bool /* succeeded */, 326 bool /* succeeded */,
313 std::string /* data */) 327 std::string /* data */)
314 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK, 328 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK,
315 uint32 /* plugin_dispatcher_id */, 329 uint32 /* plugin_dispatcher_id */,
316 uint32 /* socket_id */, 330 uint32 /* socket_id */,
317 bool /* succeeded */, 331 bool /* succeeded */,
318 int32_t /* bytes_written */) 332 int32_t /* bytes_written */)
319 333
320 // PPB_UDPSocket_Private 334 // PPB_UDPSocket_Private.
321 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_BindACK, 335 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_BindACK,
322 uint32 /* plugin_dispatcher_id */, 336 uint32 /* plugin_dispatcher_id */,
323 uint32 /* socket_id */, 337 uint32 /* socket_id */,
324 bool /* succeeded */, 338 bool /* succeeded */,
325 PP_NetAddress_Private /* bound_addr */) 339 PP_NetAddress_Private /* bound_addr */)
326 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK, 340 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK,
327 uint32 /* plugin_dispatcher_id */, 341 uint32 /* plugin_dispatcher_id */,
328 uint32 /* socket_id */, 342 uint32 /* socket_id */,
329 bool /* succeeded */, 343 bool /* succeeded */,
330 std::string /* data */, 344 std::string /* data */,
(...skipping 17 matching lines...) Expand all
348 uint32 /* real_socket_id */, 362 uint32 /* real_socket_id */,
349 uint32 /* temp_socket_id */, 363 uint32 /* temp_socket_id */,
350 int32_t /* status */) 364 int32_t /* status */)
351 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK, 365 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK,
352 uint32 /* plugin_dispatcher_id */, 366 uint32 /* plugin_dispatcher_id */,
353 uint32 /* real_server_socket_id */, 367 uint32 /* real_server_socket_id */,
354 uint32 /* accepted_socket_id */, 368 uint32 /* accepted_socket_id */,
355 PP_NetAddress_Private /* local_addr */, 369 PP_NetAddress_Private /* local_addr */,
356 PP_NetAddress_Private /* remote_addr */) 370 PP_NetAddress_Private /* remote_addr */)
357 371
372 // PPB_HostResolver_Private.
373 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBHostResolver_ResolveACK,
374 uint32 /* plugin_dispatcher_id */,
375 uint32 /* host_resolver_id */,
376 bool /* succeeded */,
377 std::string /* canonical_name */,
378 ppapi::NetAddressList /* net_address_list */)
379
358 // PPB_Graphics2D. 380 // PPB_Graphics2D.
359 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, 381 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK,
360 ppapi::HostResource /* graphics_2d */, 382 ppapi::HostResource /* graphics_2d */,
361 int32_t /* pp_error */) 383 int32_t /* pp_error */)
362 384
363 // PPB_Graphics3D. 385 // PPB_Graphics3D.
364 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, 386 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
365 ppapi::HostResource /* graphics_3d */, 387 ppapi::HostResource /* graphics_3d */,
366 int32_t /* pp_error */) 388 int32_t /* pp_error */)
367 389
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 ppapi::HostResource /* context */, 801 ppapi::HostResource /* context */,
780 int32 /* id */) 802 int32 /* id */)
781 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer, 803 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer,
782 ppapi::HostResource /* context */, 804 ppapi::HostResource /* context */,
783 int32 /* id */, 805 int32 /* id */,
784 base::SharedMemoryHandle /* transfer_buffer */, 806 base::SharedMemoryHandle /* transfer_buffer */,
785 uint32 /* size */) 807 uint32 /* size */)
786 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers, 808 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers,
787 ppapi::HostResource /* graphics_3d */) 809 ppapi::HostResource /* graphics_3d */)
788 810
811 // PPB_HostResolver_Private.
812 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve,
813 int32 /* routing_id */,
814 uint32 /* plugin_dispatcher_id */,
815 uint32 /* host_resolver_id */,
816 ppapi::HostPortPair /* host_port */,
817 PP_HostResolver_Private_Hint /* hint */)
818
789 // PPB_ImageData. 819 // PPB_ImageData.
790 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create, 820 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create,
791 PP_Instance /* instance */, 821 PP_Instance /* instance */,
792 int32 /* format */, 822 int32 /* format */,
793 PP_Size /* size */, 823 PP_Size /* size */,
794 PP_Bool /* init_to_zero */, 824 PP_Bool /* init_to_zero */,
795 ppapi::HostResource /* result_resource */, 825 ppapi::HostResource /* result_resource */,
796 std::string /* image_data_desc */, 826 std::string /* image_data_desc */,
797 ppapi::proxy::ImageHandle /* result */) 827 ppapi::proxy::ImageHandle /* result */)
798 828
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 int32_t /* backlog */) 1282 int32_t /* backlog */)
1253 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Accept, 1283 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Accept,
1254 uint32 /* real_socket_id */) 1284 uint32 /* real_socket_id */)
1255 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy, 1285 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy,
1256 uint32 /* real_socket_id */) 1286 uint32 /* real_socket_id */)
1257 1287
1258 // PPB_Font. 1288 // PPB_Font.
1259 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, 1289 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
1260 std::string /* result */) 1290 std::string /* result */)
1261 #endif // !defined(OS_NACL) 1291 #endif // !defined(OS_NACL)
1262
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698