OLD | NEW |
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 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "ppapi/c/pp_resource.h" | 40 #include "ppapi/c/pp_resource.h" |
41 #include "ppapi/c/pp_size.h" | 41 #include "ppapi/c/pp_size.h" |
42 #include "ppapi/c/pp_time.h" | 42 #include "ppapi/c/pp_time.h" |
43 #include "ppapi/c/ppb_audio_config.h" | 43 #include "ppapi/c/ppb_audio_config.h" |
44 #include "ppapi/c/ppb_compositor_layer.h" | 44 #include "ppapi/c/ppb_compositor_layer.h" |
45 #include "ppapi/c/ppb_image_data.h" | 45 #include "ppapi/c/ppb_image_data.h" |
46 #include "ppapi/c/ppb_tcp_socket.h" | 46 #include "ppapi/c/ppb_tcp_socket.h" |
47 #include "ppapi/c/ppb_text_input_controller.h" | 47 #include "ppapi/c/ppb_text_input_controller.h" |
48 #include "ppapi/c/ppb_udp_socket.h" | 48 #include "ppapi/c/ppb_udp_socket.h" |
49 #include "ppapi/c/ppb_video_encoder.h" | 49 #include "ppapi/c/ppb_video_encoder.h" |
| 50 #include "ppapi/c/ppb_vpn_provider.h" |
50 #include "ppapi/c/private/pp_content_decryptor.h" | 51 #include "ppapi/c/private/pp_content_decryptor.h" |
51 #include "ppapi/c/private/pp_private_font_charset.h" | 52 #include "ppapi/c/private/pp_private_font_charset.h" |
52 #include "ppapi/c/private/pp_video_capture_format.h" | 53 #include "ppapi/c/private/pp_video_capture_format.h" |
53 #include "ppapi/c/private/ppb_flash.h" | 54 #include "ppapi/c/private/ppb_flash.h" |
54 #include "ppapi/c/private/ppb_host_resolver_private.h" | 55 #include "ppapi/c/private/ppb_host_resolver_private.h" |
55 #include "ppapi/c/private/ppb_isolated_file_system_private.h" | 56 #include "ppapi/c/private/ppb_isolated_file_system_private.h" |
56 #include "ppapi/c/private/ppb_net_address_private.h" | 57 #include "ppapi/c/private/ppb_net_address_private.h" |
57 #include "ppapi/c/private/ppb_pdf.h" | 58 #include "ppapi/c/private/ppb_pdf.h" |
58 #include "ppapi/c/private/ppp_flash_browser_operations.h" | 59 #include "ppapi/c/private/ppp_flash_browser_operations.h" |
59 #include "ppapi/c/private/ppp_pdf.h" | 60 #include "ppapi/c/private/ppp_pdf.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) | 130 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) |
130 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) | 131 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) |
131 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, | 132 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, |
132 PP_UDPSOCKET_OPTION_MULTICAST_TTL) | 133 PP_UDPSOCKET_OPTION_MULTICAST_TTL) |
133 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 134 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
134 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 135 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
135 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) | 136 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) |
136 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) | 137 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) |
137 IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX) | 138 IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX) |
138 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) | 139 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) |
| 140 IPC_ENUM_TRAITS_MAX_VALUE(PP_VpnProvider_PlatformMessage, |
| 141 PP_VPN_PROVIDER_PLATFORM_MESSAGE_LAST) |
| 142 IPC_ENUM_TRAITS_MAX_VALUE(PP_VpnProvider_VpnConnectionState, |
| 143 PP_VPN_PROVIDER_CONNECTION_STATE_LAST) |
| 144 IPC_ENUM_TRAITS_MAX_VALUE(PP_VpnProvider_UIEvent, PP_VPN_PROVIDER_UI_EVENT_LAST) |
| 145 IPC_ENUM_TRAITS_MAX_VALUE(PP_VpnProvider_ConfigMessage, |
| 146 PP_VPN_PROVIDER_PLATFORM_MESSAGE_LAST) |
139 | 147 |
140 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 148 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
141 IPC_STRUCT_TRAITS_MEMBER(x) | 149 IPC_STRUCT_TRAITS_MEMBER(x) |
142 IPC_STRUCT_TRAITS_MEMBER(y) | 150 IPC_STRUCT_TRAITS_MEMBER(y) |
143 IPC_STRUCT_TRAITS_END() | 151 IPC_STRUCT_TRAITS_END() |
144 | 152 |
145 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 153 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
146 IPC_STRUCT_TRAITS_MEMBER(x) | 154 IPC_STRUCT_TRAITS_MEMBER(x) |
147 IPC_STRUCT_TRAITS_MEMBER(y) | 155 IPC_STRUCT_TRAITS_MEMBER(y) |
148 IPC_STRUCT_TRAITS_END() | 156 IPC_STRUCT_TRAITS_END() |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 437 |
430 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo) | 438 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo) |
431 IPC_STRUCT_TRAITS_MEMBER(name) | 439 IPC_STRUCT_TRAITS_MEMBER(name) |
432 IPC_STRUCT_TRAITS_MEMBER(type) | 440 IPC_STRUCT_TRAITS_MEMBER(type) |
433 IPC_STRUCT_TRAITS_MEMBER(state) | 441 IPC_STRUCT_TRAITS_MEMBER(state) |
434 IPC_STRUCT_TRAITS_MEMBER(addresses) | 442 IPC_STRUCT_TRAITS_MEMBER(addresses) |
435 IPC_STRUCT_TRAITS_MEMBER(display_name) | 443 IPC_STRUCT_TRAITS_MEMBER(display_name) |
436 IPC_STRUCT_TRAITS_MEMBER(mtu) | 444 IPC_STRUCT_TRAITS_MEMBER(mtu) |
437 IPC_STRUCT_TRAITS_END() | 445 IPC_STRUCT_TRAITS_END() |
438 | 446 |
| 447 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedVpnProviderParameters) |
| 448 IPC_STRUCT_TRAITS_MEMBER(address) |
| 449 IPC_STRUCT_TRAITS_MEMBER(subnet) |
| 450 IPC_STRUCT_TRAITS_MEMBER(exclusion_list) |
| 451 IPC_STRUCT_TRAITS_MEMBER(inclusion_list) |
| 452 IPC_STRUCT_TRAITS_MEMBER(dns_servers) |
| 453 IPC_STRUCT_TRAITS_MEMBER(mtu) |
| 454 IPC_STRUCT_TRAITS_MEMBER(broadcast_address) |
| 455 IPC_STRUCT_TRAITS_MEMBER(domain_search) |
| 456 IPC_STRUCT_TRAITS_END() |
| 457 |
439 // Only whitelisted switches passed through PpapiNaClPluginArgs. | 458 // Only whitelisted switches passed through PpapiNaClPluginArgs. |
440 // The list of switches can be found in: | 459 // The list of switches can be found in: |
441 // components/nacl/browser/nacl_process_host.cc | 460 // components/nacl/browser/nacl_process_host.cc |
442 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) | 461 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) |
443 IPC_STRUCT_TRAITS_MEMBER(off_the_record) | 462 IPC_STRUCT_TRAITS_MEMBER(off_the_record) |
444 IPC_STRUCT_TRAITS_MEMBER(permissions) | 463 IPC_STRUCT_TRAITS_MEMBER(permissions) |
445 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) | 464 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) |
446 IPC_STRUCT_TRAITS_MEMBER(switch_names) | 465 IPC_STRUCT_TRAITS_MEMBER(switch_names) |
447 IPC_STRUCT_TRAITS_MEMBER(switch_values) | 466 IPC_STRUCT_TRAITS_MEMBER(switch_values) |
448 IPC_STRUCT_TRAITS_END() | 467 IPC_STRUCT_TRAITS_END() |
(...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1975 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoSource_Open, | 1994 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoSource_Open, |
1976 std::string /* stream_url */) | 1995 std::string /* stream_url */) |
1977 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) | 1996 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) |
1978 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) | 1997 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) |
1979 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoSource_GetFrameReply, | 1998 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoSource_GetFrameReply, |
1980 ppapi::HostResource /* resource_id */, | 1999 ppapi::HostResource /* resource_id */, |
1981 PP_ImageDataDesc /* image_data_desc */, | 2000 PP_ImageDataDesc /* image_data_desc */, |
1982 PP_TimeTicks /* timestamp */) | 2001 PP_TimeTicks /* timestamp */) |
1983 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) | 2002 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) |
1984 | 2003 |
| 2004 // VPN Provider ---------------------------------------------------------------- |
| 2005 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VpnProvider_Create) |
| 2006 |
| 2007 // PPB_VpnProvider Plugin --> Browser Messages |
| 2008 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_CreateConfig, |
| 2009 std::string /* name */) |
| 2010 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_DestroyConfig, |
| 2011 std::string /* id */) |
| 2012 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_SetParameters, |
| 2013 ppapi::proxy::SerializedVpnProviderParameters /* params */) |
| 2014 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_SendPacket, |
| 2015 std::vector<char> /* packet */) |
| 2016 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_NotifyConnectionStateChanged, |
| 2017 PP_VpnProvider_VpnConnectionState /* status */) |
| 2018 |
| 2019 // PPB_VpnProvider Replies |
| 2020 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VpnProvider_CreateConfigReply, |
| 2021 int32_t /* status */, |
| 2022 std::string /* id */) |
| 2023 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VpnProvider_DestroyConfigReply, |
| 2024 int32_t /* status */) |
| 2025 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VpnProvider_SetParametersReply, |
| 2026 int32_t /* status */) |
| 2027 IPC_MESSAGE_CONTROL1( |
| 2028 PpapiPluginMsg_VpnProvider_NotifyConnectionStateChangedReply, |
| 2029 int32_t /* status */) |
| 2030 |
| 2031 // PPP_VpnProvide Browser --> Plugin Messages |
| 2032 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VpnProvider_OnPlatformMessage, |
| 2033 std::string /* id */, |
| 2034 PP_VpnProvider_PlatformMessage /* status */, |
| 2035 std::string /* message */) |
| 2036 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VpnProvider_OnPacketReceived, |
| 2037 std::vector<char> /* packet */) |
| 2038 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VpnProvider_OnConfigEvent, |
| 2039 std::string /* id */, |
| 2040 PP_VpnProvider_ConfigMessage /* message */, |
| 2041 std::string /* name - additional payload for create */, |
| 2042 std::string /* data - additional payload for create */) |
| 2043 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VpnProvider_OnUIEvent, |
| 2044 PP_VpnProvider_UIEvent /* event */, |
| 2045 std::string /* id */) |
| 2046 |
1985 // WebSocket ------------------------------------------------------------------- | 2047 // WebSocket ------------------------------------------------------------------- |
1986 | 2048 |
1987 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) | 2049 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) |
1988 | 2050 |
1989 // Establishes the connection to a server. This message requires | 2051 // Establishes the connection to a server. This message requires |
1990 // WebSocket_ConnectReply as a reply message. | 2052 // WebSocket_ConnectReply as a reply message. |
1991 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect, | 2053 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect, |
1992 std::string /* url */, | 2054 std::string /* url */, |
1993 std::vector<std::string> /* protocols */) | 2055 std::vector<std::string> /* protocols */) |
1994 | 2056 |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2431 std::vector<ppapi::HostResource> /* buffers */, | 2493 std::vector<ppapi::HostResource> /* buffers */, |
2432 uint32_t /* buffer_size */) | 2494 uint32_t /* buffer_size */) |
2433 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 2495 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
2434 uint32_t /* status */) | 2496 uint32_t /* status */) |
2435 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 2497 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
2436 uint32_t /* error */) | 2498 uint32_t /* error */) |
2437 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 2499 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
2438 uint32_t /* buffer */) | 2500 uint32_t /* buffer */) |
2439 | 2501 |
2440 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2502 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |