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

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

Issue 9677060: Out-of-process implementation of the PPB_NetworkMonitor_Private interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
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 21 matching lines...) Expand all
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_tcp_socket_private.h" 34 #include "ppapi/c/private/ppb_tcp_socket_private.h"
35 #include "ppapi/proxy/ppapi_param_traits.h" 35 #include "ppapi/proxy/ppapi_param_traits.h"
36 #include "ppapi/proxy/ppapi_proxy_export.h" 36 #include "ppapi/proxy/ppapi_proxy_export.h"
37 #include "ppapi/proxy/serialized_flash_menu.h" 37 #include "ppapi/proxy/serialized_flash_menu.h"
38 #include "ppapi/proxy/serialized_structs.h" 38 #include "ppapi/proxy/serialized_structs.h"
39 #include "ppapi/shared_impl/ppapi_preferences.h" 39 #include "ppapi/shared_impl/ppapi_preferences.h"
40 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 40 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
41 #include "ppapi/shared_impl/ppb_input_event_shared.h" 41 #include "ppapi/shared_impl/ppb_input_event_shared.h"
42 #include "ppapi/shared_impl/ppb_network_list_private_shared.h"
42 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" 43 #include "ppapi/shared_impl/ppb_url_request_info_shared.h"
43 #include "ppapi/shared_impl/ppb_view_shared.h" 44 #include "ppapi/shared_impl/ppb_view_shared.h"
44 45
45 #undef IPC_MESSAGE_EXPORT 46 #undef IPC_MESSAGE_EXPORT
46 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT 47 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
47 48
48 #define IPC_MESSAGE_START PpapiMsgStart 49 #define IPC_MESSAGE_START PpapiMsgStart
49 50
50 IPC_ENUM_TRAITS(PP_DeviceType_Dev) 51 IPC_ENUM_TRAITS(PP_DeviceType_Dev)
51 IPC_ENUM_TRAITS(PP_InputEvent_Type) 52 IPC_ENUM_TRAITS(PP_InputEvent_Type)
52 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) 53 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
53 IPC_ENUM_TRAITS(PP_TextInput_Type) 54 IPC_ENUM_TRAITS(PP_TextInput_Type)
54 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) 55 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
55 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) 56 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
57 IPC_ENUM_TRAITS(PP_NetworkListType_Private)
58 IPC_ENUM_TRAITS(PP_NetworkListState_Private)
56 59
57 IPC_STRUCT_TRAITS_BEGIN(PP_Point) 60 IPC_STRUCT_TRAITS_BEGIN(PP_Point)
58 IPC_STRUCT_TRAITS_MEMBER(x) 61 IPC_STRUCT_TRAITS_MEMBER(x)
59 IPC_STRUCT_TRAITS_MEMBER(y) 62 IPC_STRUCT_TRAITS_MEMBER(y)
60 IPC_STRUCT_TRAITS_END() 63 IPC_STRUCT_TRAITS_END()
61 64
62 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) 65 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
63 IPC_STRUCT_TRAITS_MEMBER(x) 66 IPC_STRUCT_TRAITS_MEMBER(x)
64 IPC_STRUCT_TRAITS_MEMBER(y) 67 IPC_STRUCT_TRAITS_MEMBER(y)
65 IPC_STRUCT_TRAITS_END() 68 IPC_STRUCT_TRAITS_END()
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem) 170 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem)
168 IPC_STRUCT_TRAITS_MEMBER(is_file) 171 IPC_STRUCT_TRAITS_MEMBER(is_file)
169 IPC_STRUCT_TRAITS_MEMBER(data) 172 IPC_STRUCT_TRAITS_MEMBER(data)
170 // Note: we don't serialize file_ref. 173 // Note: we don't serialize file_ref.
171 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) 174 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource)
172 IPC_STRUCT_TRAITS_MEMBER(start_offset) 175 IPC_STRUCT_TRAITS_MEMBER(start_offset)
173 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) 176 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes)
174 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) 177 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time)
175 IPC_STRUCT_TRAITS_END() 178 IPC_STRUCT_TRAITS_END()
176 179
180 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo)
181 IPC_STRUCT_TRAITS_MEMBER(name)
182 IPC_STRUCT_TRAITS_MEMBER(type)
183 IPC_STRUCT_TRAITS_MEMBER(state)
184 IPC_STRUCT_TRAITS_MEMBER(addresses)
185 IPC_STRUCT_TRAITS_MEMBER(display_name)
186 IPC_STRUCT_TRAITS_MEMBER(mtu)
187 IPC_STRUCT_TRAITS_END()
188
177 // These are from the browser to the plugin. 189 // These are from the browser to the plugin.
178 // Loads the given plugin. 190 // Loads the given plugin.
179 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */) 191 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */)
180 192
181 // Creates a channel to talk to a renderer. The plugin will respond with 193 // Creates a channel to talk to a renderer. The plugin will respond with
182 // PpapiHostMsg_ChannelCreated. 194 // PpapiHostMsg_ChannelCreated.
183 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, 195 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel,
184 base::ProcessHandle /* host_process_handle */, 196 base::ProcessHandle /* host_process_handle */,
185 int /* renderer_id */) 197 int /* renderer_id */)
186 198
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 ppapi::HostResource /* resource */, 300 ppapi::HostResource /* resource */,
289 int /* callback_id */, 301 int /* callback_id */,
290 int32_t /* result */) 302 int32_t /* result */)
291 303
292 // PPB_FileSystem. 304 // PPB_FileSystem.
293 IPC_MESSAGE_ROUTED2( 305 IPC_MESSAGE_ROUTED2(
294 PpapiMsg_PPBFileSystem_OpenComplete, 306 PpapiMsg_PPBFileSystem_OpenComplete,
295 ppapi::HostResource /* filesystem */, 307 ppapi::HostResource /* filesystem */,
296 int32_t /* result */) 308 int32_t /* result */)
297 309
310 // PPB_NetworkMonitor_Private.
311 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList,
312 uint32 /* plugin_dispatcher_id */,
313 ppapi::NetworkList /* network_list */)
314
298 // PPB_TCPSocket_Private. 315 // PPB_TCPSocket_Private.
299 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK, 316 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK,
300 uint32 /* plugin_dispatcher_id */, 317 uint32 /* plugin_dispatcher_id */,
301 uint32 /* socket_id */, 318 uint32 /* socket_id */,
302 bool /* succeeded */, 319 bool /* succeeded */,
303 PP_NetAddress_Private /* local_addr */, 320 PP_NetAddress_Private /* local_addr */,
304 PP_NetAddress_Private /* remote_addr */) 321 PP_NetAddress_Private /* remote_addr */)
305 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_SSLHandshakeACK, 322 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_SSLHandshakeACK,
306 uint32 /* plugin_dispatcher_id */, 323 uint32 /* plugin_dispatcher_id */,
307 uint32 /* socket_id */, 324 uint32 /* socket_id */,
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 737
721 // PPB_FileSystem. 738 // PPB_FileSystem.
722 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, 739 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create,
723 PP_Instance /* instance */, 740 PP_Instance /* instance */,
724 int /* type */, 741 int /* type */,
725 ppapi::HostResource /* result */) 742 ppapi::HostResource /* result */)
726 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, 743 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open,
727 ppapi::HostResource /* result */, 744 ppapi::HostResource /* result */,
728 int64_t /* expected_size */) 745 int64_t /* expected_size */)
729 746
747 // PPB_NetworkMonitor_Private.
748 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start,
749 uint32 /* plugin_dispatcher_id */)
750 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop,
751 uint32 /* plugin_dispatcher_id */)
752
730 // PPB_Graphics2D. 753 // PPB_Graphics2D.
731 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create, 754 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
732 PP_Instance /* instance */, 755 PP_Instance /* instance */,
733 PP_Size /* size */, 756 PP_Size /* size */,
734 PP_Bool /* is_always_opaque */, 757 PP_Bool /* is_always_opaque */,
735 ppapi::HostResource /* result */) 758 ppapi::HostResource /* result */)
736 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, 759 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData,
737 ppapi::HostResource /* graphics_2d */, 760 ppapi::HostResource /* graphics_2d */,
738 ppapi::HostResource /* image_data */, 761 ppapi::HostResource /* image_data */,
739 PP_Point /* top_left */, 762 PP_Point /* top_left */,
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 int32_t /* backlog */) 1275 int32_t /* backlog */)
1253 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Accept, 1276 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Accept,
1254 uint32 /* real_socket_id */) 1277 uint32 /* real_socket_id */)
1255 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy, 1278 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy,
1256 uint32 /* real_socket_id */) 1279 uint32 /* real_socket_id */)
1257 1280
1258 // PPB_Font. 1281 // PPB_Font.
1259 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, 1282 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
1260 std::string /* result */) 1283 std::string /* result */)
1261 #endif // !defined(OS_NACL) 1284 #endif // !defined(OS_NACL)
1262
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698