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

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: 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData) 308 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData)
309 IPC_STRUCT_TRAITS_MEMBER(url) 309 IPC_STRUCT_TRAITS_MEMBER(url)
310 IPC_STRUCT_TRAITS_MEMBER(headers) 310 IPC_STRUCT_TRAITS_MEMBER(headers)
311 IPC_STRUCT_TRAITS_MEMBER(status_code) 311 IPC_STRUCT_TRAITS_MEMBER(status_code)
312 IPC_STRUCT_TRAITS_MEMBER(status_text) 312 IPC_STRUCT_TRAITS_MEMBER(status_text)
313 IPC_STRUCT_TRAITS_MEMBER(redirect_url) 313 IPC_STRUCT_TRAITS_MEMBER(redirect_url)
314 IPC_STRUCT_TRAITS_MEMBER(body_as_file_ref) 314 IPC_STRUCT_TRAITS_MEMBER(body_as_file_ref)
315 IPC_STRUCT_TRAITS_END() 315 IPC_STRUCT_TRAITS_END()
316 316
317 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) 317 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::NetworkInfo)
318 IPC_STRUCT_TRAITS_MEMBER(name) 318 IPC_STRUCT_TRAITS_MEMBER(name)
319 IPC_STRUCT_TRAITS_MEMBER(type) 319 IPC_STRUCT_TRAITS_MEMBER(type)
320 IPC_STRUCT_TRAITS_MEMBER(state) 320 IPC_STRUCT_TRAITS_MEMBER(state)
321 IPC_STRUCT_TRAITS_MEMBER(addresses) 321 IPC_STRUCT_TRAITS_MEMBER(addresses)
322 IPC_STRUCT_TRAITS_MEMBER(display_name) 322 IPC_STRUCT_TRAITS_MEMBER(display_name)
323 IPC_STRUCT_TRAITS_MEMBER(mtu) 323 IPC_STRUCT_TRAITS_MEMBER(mtu)
324 IPC_STRUCT_TRAITS_END() 324 IPC_STRUCT_TRAITS_END()
325 325
326 // Only whitelisted switches passed through NaClChannelArgs. 326 // Only whitelisted switches passed through NaClChannelArgs.
327 // The list of switches can be found in: 327 // The list of switches can be found in:
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 // PPP_Messaging. 618 // PPP_Messaging.
619 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage, 619 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
620 PP_Instance /* instance */, 620 PP_Instance /* instance */,
621 ppapi::proxy::SerializedVar /* message */) 621 ppapi::proxy::SerializedVar /* message */)
622 622
623 // PPP_MouseLock. 623 // PPP_MouseLock.
624 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost, 624 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
625 PP_Instance /* instance */) 625 PP_Instance /* instance */)
626 626
627 // PPB_NetworkMonitor_Private. 627 // PPB_NetworkMonitor_Private.
628 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList, 628 IPC_MESSAGE_CONTROL1(PpapiMsg_NetworkMonitor_NetworkList,
629 uint32 /* plugin_dispatcher_id */, 629 ppapi::proxy::NetworkList /* network_list */)
630 ppapi::NetworkList /* network_list */) 630 IPC_MESSAGE_CONTROL0(PpapiMsg_NetworkMonitor_Forbidden)
631 631
632 // PPP_Printing 632 // PPP_Printing
633 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats, 633 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats,
634 PP_Instance /* instance */, 634 PP_Instance /* instance */,
635 uint32_t /* result */) 635 uint32_t /* result */)
636 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin, 636 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin,
637 PP_Instance /* instance */, 637 PP_Instance /* instance */,
638 std::string /* settings_string */, 638 std::string /* settings_string */,
639 int32_t /* result */) 639 int32_t /* result */)
640 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages, 640 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages,
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame, 1071 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame,
1072 PP_Instance /* instance */, 1072 PP_Instance /* instance */,
1073 PP_Resource /* decrypted_frame, PPB_Buffer_Dev */, 1073 PP_Resource /* decrypted_frame, PPB_Buffer_Dev */,
1074 std::string /* serialized_block_info */) 1074 std::string /* serialized_block_info */)
1075 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples, 1075 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples,
1076 PP_Instance /* instance */, 1076 PP_Instance /* instance */,
1077 PP_Resource /* audio_frames, PPB_Buffer_Dev */, 1077 PP_Resource /* audio_frames, PPB_Buffer_Dev */,
1078 std::string /* serialized_block_info */) 1078 std::string /* serialized_block_info */)
1079 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1079 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
1080 1080
1081 // PPB_NetworkMonitor_Private.
1082 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start,
1083 uint32 /* plugin_dispatcher_id */)
1084 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop,
1085 uint32 /* plugin_dispatcher_id */)
1086
1087 // PPB_Testing. 1081 // PPB_Testing.
1088 IPC_SYNC_MESSAGE_ROUTED3_1( 1082 IPC_SYNC_MESSAGE_ROUTED3_1(
1089 PpapiHostMsg_PPBTesting_ReadImageData, 1083 PpapiHostMsg_PPBTesting_ReadImageData,
1090 ppapi::HostResource /* device_context_2d */, 1084 ppapi::HostResource /* device_context_2d */,
1091 ppapi::HostResource /* image */, 1085 ppapi::HostResource /* image */,
1092 PP_Point /* top_left */, 1086 PP_Point /* top_left */,
1093 PP_Bool /* result */) 1087 PP_Bool /* result */)
1094 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, 1088 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1095 PP_Instance /* instance */, 1089 PP_Instance /* instance */,
1096 uint32 /* result */) 1090 uint32 /* result */)
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 1424
1431 // Graphics2D, plugin -> host -> plugin 1425 // Graphics2D, plugin -> host -> plugin
1432 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush) 1426 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush)
1433 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) 1427 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck)
1434 1428
1435 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, 1429 IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData,
1436 PP_Resource /* image */, 1430 PP_Resource /* image */,
1437 PP_Point /* top_left */) 1431 PP_Point /* top_left */)
1438 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) 1432 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck)
1439 1433
1434 // NetworkMonitor.
1435 IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkMonitor_Create)
1436
yzshen1 2013/09/13 17:47:10 Please also move the other two messages here.
Sergey Ulanov 2013/09/13 18:35:00 Done. Also renamed them for consistency.
1440 // NetworkProxy ---------------------------------------------------------------- 1437 // NetworkProxy ----------------------------------------------------------------
1441 IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkProxy_Create) 1438 IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkProxy_Create)
1442 1439
1443 // Query the browser for the proxy server to use for the given URL. 1440 // Query the browser for the proxy server to use for the given URL.
1444 IPC_MESSAGE_CONTROL1(PpapiHostMsg_NetworkProxy_GetProxyForURL, 1441 IPC_MESSAGE_CONTROL1(PpapiHostMsg_NetworkProxy_GetProxyForURL,
1445 std::string /* url */) 1442 std::string /* url */)
1446 1443
1447 // Reply message for GetProxyForURL containing the proxy server. 1444 // Reply message for GetProxyForURL containing the proxy server.
1448 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkProxy_GetProxyForURLReply, 1445 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkProxy_GetProxyForURLReply,
1449 std::string /* proxy */) 1446 std::string /* proxy */)
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2021 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 2018 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2022 PP_TalkPermission /* permission */) 2019 PP_TalkPermission /* permission */)
2023 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 2020 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2024 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 2021 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2025 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 2022 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2026 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 2023 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2027 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 2024 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2028 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 2025 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2029 2026
2030 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2027 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698