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

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
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_network_monitor_private_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23 matching lines...) Expand all
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
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
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_Talk 329 // PPB_Talk
313 IPC_MESSAGE_ROUTED3( 330 IPC_MESSAGE_ROUTED3(
314 PpapiMsg_PPBTalk_GetPermissionACK, 331 PpapiMsg_PPBTalk_GetPermissionACK,
315 uint32 /* plugin_dispatcher_id */, 332 uint32 /* plugin_dispatcher_id */,
316 PP_Resource /* resource */, 333 PP_Resource /* resource */,
317 int32_t /* result */) 334 int32_t /* result */)
318 335
319 // PPB_TCPSocket_Private. 336 // PPB_TCPSocket_Private.
320 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK, 337 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK,
321 uint32 /* plugin_dispatcher_id */, 338 uint32 /* plugin_dispatcher_id */,
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 773
757 // PPB_FileSystem. 774 // PPB_FileSystem.
758 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, 775 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create,
759 PP_Instance /* instance */, 776 PP_Instance /* instance */,
760 int /* type */, 777 int /* type */,
761 ppapi::HostResource /* result */) 778 ppapi::HostResource /* result */)
762 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, 779 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open,
763 ppapi::HostResource /* result */, 780 ppapi::HostResource /* result */,
764 int64_t /* expected_size */) 781 int64_t /* expected_size */)
765 782
783 // PPB_NetworkMonitor_Private.
784 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start,
785 uint32 /* plugin_dispatcher_id */)
786 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop,
787 uint32 /* plugin_dispatcher_id */)
788
766 // PPB_Graphics2D. 789 // PPB_Graphics2D.
767 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create, 790 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
768 PP_Instance /* instance */, 791 PP_Instance /* instance */,
769 PP_Size /* size */, 792 PP_Size /* size */,
770 PP_Bool /* is_always_opaque */, 793 PP_Bool /* is_always_opaque */,
771 ppapi::HostResource /* result */) 794 ppapi::HostResource /* result */)
772 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, 795 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData,
773 ppapi::HostResource /* graphics_2d */, 796 ppapi::HostResource /* graphics_2d */,
774 ppapi::HostResource /* image_data */, 797 ppapi::HostResource /* image_data */,
775 PP_Point /* top_left */, 798 PP_Point /* top_left */,
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept, 1333 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept,
1311 int32 /* tcp_client_socket_routing_id */, 1334 int32 /* tcp_client_socket_routing_id */,
1312 uint32 /* server_socket_id */) 1335 uint32 /* server_socket_id */)
1313 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy, 1336 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy,
1314 uint32 /* socket_id */) 1337 uint32 /* socket_id */)
1315 1338
1316 // PPB_Font. 1339 // PPB_Font.
1317 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, 1340 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
1318 std::string /* result */) 1341 std::string /* result */)
1319 #endif // !defined(OS_NACL) 1342 #endif // !defined(OS_NACL)
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_network_monitor_private_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698