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

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

Issue 23819033: Simplify PPB_NetworkMonitor proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation after r169825 Created 7 years, 3 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/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 29 matching lines...) Expand all
40 #include "ppapi/c/ppb_udp_socket.h" 40 #include "ppapi/c/ppb_udp_socket.h"
41 #include "ppapi/c/private/pp_content_decryptor.h" 41 #include "ppapi/c/private/pp_content_decryptor.h"
42 #include "ppapi/c/private/pp_private_font_charset.h" 42 #include "ppapi/c/private/pp_private_font_charset.h"
43 #include "ppapi/c/private/ppb_flash.h" 43 #include "ppapi/c/private/ppb_flash.h"
44 #include "ppapi/c/private/ppb_host_resolver_private.h" 44 #include "ppapi/c/private/ppb_host_resolver_private.h"
45 #include "ppapi/c/private/ppb_net_address_private.h" 45 #include "ppapi/c/private/ppb_net_address_private.h"
46 #include "ppapi/c/private/ppb_pdf.h" 46 #include "ppapi/c/private/ppb_pdf.h"
47 #include "ppapi/c/private/ppb_talk_private.h" 47 #include "ppapi/c/private/ppb_talk_private.h"
48 #include "ppapi/c/private/ppp_flash_browser_operations.h" 48 #include "ppapi/c/private/ppp_flash_browser_operations.h"
49 #include "ppapi/proxy/host_resolver_private_resource.h" 49 #include "ppapi/proxy/host_resolver_private_resource.h"
50 #include "ppapi/proxy/network_list_resource.h"
50 #include "ppapi/proxy/ppapi_param_traits.h" 51 #include "ppapi/proxy/ppapi_param_traits.h"
51 #include "ppapi/proxy/ppapi_proxy_export.h" 52 #include "ppapi/proxy/ppapi_proxy_export.h"
52 #include "ppapi/proxy/resource_message_params.h" 53 #include "ppapi/proxy/resource_message_params.h"
53 #include "ppapi/proxy/serialized_flash_menu.h" 54 #include "ppapi/proxy/serialized_flash_menu.h"
54 #include "ppapi/proxy/serialized_handle.h" 55 #include "ppapi/proxy/serialized_handle.h"
55 #include "ppapi/proxy/serialized_structs.h" 56 #include "ppapi/proxy/serialized_structs.h"
56 #include "ppapi/proxy/serialized_var.h" 57 #include "ppapi/proxy/serialized_var.h"
57 #include "ppapi/shared_impl/dir_contents.h" 58 #include "ppapi/shared_impl/dir_contents.h"
58 #include "ppapi/shared_impl/file_path.h" 59 #include "ppapi/shared_impl/file_path.h"
59 #include "ppapi/shared_impl/file_ref_create_info.h" 60 #include "ppapi/shared_impl/file_ref_create_info.h"
60 #include "ppapi/shared_impl/ppapi_nacl_channel_args.h" 61 #include "ppapi/shared_impl/ppapi_nacl_channel_args.h"
61 #include "ppapi/shared_impl/ppapi_preferences.h" 62 #include "ppapi/shared_impl/ppapi_preferences.h"
62 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 63 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
63 #include "ppapi/shared_impl/ppb_input_event_shared.h" 64 #include "ppapi/shared_impl/ppb_input_event_shared.h"
64 #include "ppapi/shared_impl/ppb_network_list_private_shared.h"
65 #include "ppapi/shared_impl/ppb_view_shared.h" 65 #include "ppapi/shared_impl/ppb_view_shared.h"
66 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" 66 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
67 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" 67 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
68 #include "ppapi/shared_impl/socket_option_data.h" 68 #include "ppapi/shared_impl/socket_option_data.h"
69 #include "ppapi/shared_impl/url_request_info_data.h" 69 #include "ppapi/shared_impl/url_request_info_data.h"
70 #include "ppapi/shared_impl/url_response_info_data.h" 70 #include "ppapi/shared_impl/url_response_info_data.h"
71 71
72 #undef IPC_MESSAGE_EXPORT 72 #undef IPC_MESSAGE_EXPORT
73 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT 73 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
74 74
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData) 309 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData)
310 IPC_STRUCT_TRAITS_MEMBER(url) 310 IPC_STRUCT_TRAITS_MEMBER(url)
311 IPC_STRUCT_TRAITS_MEMBER(headers) 311 IPC_STRUCT_TRAITS_MEMBER(headers)
312 IPC_STRUCT_TRAITS_MEMBER(status_code) 312 IPC_STRUCT_TRAITS_MEMBER(status_code)
313 IPC_STRUCT_TRAITS_MEMBER(status_text) 313 IPC_STRUCT_TRAITS_MEMBER(status_text)
314 IPC_STRUCT_TRAITS_MEMBER(redirect_url) 314 IPC_STRUCT_TRAITS_MEMBER(redirect_url)
315 IPC_STRUCT_TRAITS_MEMBER(body_as_file_ref) 315 IPC_STRUCT_TRAITS_MEMBER(body_as_file_ref)
316 IPC_STRUCT_TRAITS_END() 316 IPC_STRUCT_TRAITS_END()
317 317
318 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) 318 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo)
319 IPC_STRUCT_TRAITS_MEMBER(name) 319 IPC_STRUCT_TRAITS_MEMBER(name)
320 IPC_STRUCT_TRAITS_MEMBER(type) 320 IPC_STRUCT_TRAITS_MEMBER(type)
321 IPC_STRUCT_TRAITS_MEMBER(state) 321 IPC_STRUCT_TRAITS_MEMBER(state)
322 IPC_STRUCT_TRAITS_MEMBER(addresses) 322 IPC_STRUCT_TRAITS_MEMBER(addresses)
323 IPC_STRUCT_TRAITS_MEMBER(display_name) 323 IPC_STRUCT_TRAITS_MEMBER(display_name)
324 IPC_STRUCT_TRAITS_MEMBER(mtu) 324 IPC_STRUCT_TRAITS_MEMBER(mtu)
325 IPC_STRUCT_TRAITS_END() 325 IPC_STRUCT_TRAITS_END()
326 326
327 // Only whitelisted switches passed through NaClChannelArgs. 327 // Only whitelisted switches passed through NaClChannelArgs.
328 // The list of switches can be found in: 328 // The list of switches can be found in:
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 618
619 // PPP_Messaging. 619 // PPP_Messaging.
620 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage, 620 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
621 PP_Instance /* instance */, 621 PP_Instance /* instance */,
622 ppapi::proxy::SerializedVar /* message */) 622 ppapi::proxy::SerializedVar /* message */)
623 623
624 // PPP_MouseLock. 624 // PPP_MouseLock.
625 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost, 625 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
626 PP_Instance /* instance */) 626 PP_Instance /* instance */)
627 627
628 // PPB_NetworkMonitor_Private.
629 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList,
630 uint32 /* plugin_dispatcher_id */,
631 ppapi::NetworkList /* network_list */)
632
633 // PPP_Printing 628 // PPP_Printing
634 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats, 629 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats,
635 PP_Instance /* instance */, 630 PP_Instance /* instance */,
636 uint32_t /* result */) 631 uint32_t /* result */)
637 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin, 632 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin,
638 PP_Instance /* instance */, 633 PP_Instance /* instance */,
639 std::string /* settings_string */, 634 std::string /* settings_string */,
640 int32_t /* result */) 635 int32_t /* result */)
641 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages, 636 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages,
642 PP_Instance /* instance */, 637 PP_Instance /* instance */,
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame, 1070 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame,
1076 PP_Instance /* instance */, 1071 PP_Instance /* instance */,
1077 PP_Resource /* decrypted_frame, PPB_Buffer_Dev */, 1072 PP_Resource /* decrypted_frame, PPB_Buffer_Dev */,
1078 std::string /* serialized_block_info */) 1073 std::string /* serialized_block_info */)
1079 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples, 1074 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples,
1080 PP_Instance /* instance */, 1075 PP_Instance /* instance */,
1081 PP_Resource /* audio_frames, PPB_Buffer_Dev */, 1076 PP_Resource /* audio_frames, PPB_Buffer_Dev */,
1082 std::string /* serialized_block_info */) 1077 std::string /* serialized_block_info */)
1083 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1078 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
1084 1079
1085 // PPB_NetworkMonitor_Private.
1086 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start,
1087 uint32 /* plugin_dispatcher_id */)
1088 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop,
1089 uint32 /* plugin_dispatcher_id */)
1090
1091 // PPB_Testing. 1080 // PPB_Testing.
1092 IPC_SYNC_MESSAGE_ROUTED3_1( 1081 IPC_SYNC_MESSAGE_ROUTED3_1(
1093 PpapiHostMsg_PPBTesting_ReadImageData, 1082 PpapiHostMsg_PPBTesting_ReadImageData,
1094 ppapi::HostResource /* device_context_2d */, 1083 ppapi::HostResource /* device_context_2d */,
1095 ppapi::HostResource /* image */, 1084 ppapi::HostResource /* image */,
1096 PP_Point /* top_left */, 1085 PP_Point /* top_left */,
1097 PP_Bool /* result */) 1086 PP_Bool /* result */)
1098 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, 1087 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1099 PP_Instance /* instance */, 1088 PP_Instance /* instance */,
1100 uint32 /* result */) 1089 uint32 /* result */)
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 1423
1435 // Graphics2D, plugin -> host -> plugin 1424 // Graphics2D, plugin -> host -> plugin
1436 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush) 1425 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush)
1437 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) 1426 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck)
1438 1427
1439 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, 1428 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData,
1440 PP_Resource /* image */, 1429 PP_Resource /* image */,
1441 PP_Point /* top_left */) 1430 PP_Point /* top_left */)
1442 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) 1431 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck)
1443 1432
1433 // NetworkMonitor.
1434 IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkMonitor_Create)
1435 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkMonitor_NetworkList,
1436 ppapi::proxy::SerializedNetworkList /* network_list */)
1437 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_NetworkMonitor_Forbidden)
1438
1439
1444 // NetworkProxy ---------------------------------------------------------------- 1440 // NetworkProxy ----------------------------------------------------------------
1445 IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkProxy_Create) 1441 IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkProxy_Create)
1446 1442
1447 // Query the browser for the proxy server to use for the given URL. 1443 // Query the browser for the proxy server to use for the given URL.
1448 IPC_MESSAGE_CONTROL1(PpapiHostMsg_NetworkProxy_GetProxyForURL, 1444 IPC_MESSAGE_CONTROL1(PpapiHostMsg_NetworkProxy_GetProxyForURL,
1449 std::string /* url */) 1445 std::string /* url */)
1450 1446
1451 // Reply message for GetProxyForURL containing the proxy server. 1447 // Reply message for GetProxyForURL containing the proxy server.
1452 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkProxy_GetProxyForURLReply, 1448 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkProxy_GetProxyForURLReply,
1453 std::string /* proxy */) 1449 std::string /* proxy */)
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 2021 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2026 PP_TalkPermission /* permission */) 2022 PP_TalkPermission /* permission */)
2027 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 2023 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2028 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 2024 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2029 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 2025 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2030 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 2026 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2031 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 2027 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2032 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 2028 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2033 2029
2034 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2030 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/network_monitor_resource.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