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

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

Issue 1307173009: rebased ppapi vpnProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fix compile Created 5 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
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/resource_creation_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 <map> 6 #include <map>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 #include "ppapi/c/pp_resource.h" 35 #include "ppapi/c/pp_resource.h"
36 #include "ppapi/c/pp_size.h" 36 #include "ppapi/c/pp_size.h"
37 #include "ppapi/c/pp_time.h" 37 #include "ppapi/c/pp_time.h"
38 #include "ppapi/c/ppb_audio_config.h" 38 #include "ppapi/c/ppb_audio_config.h"
39 #include "ppapi/c/ppb_compositor_layer.h" 39 #include "ppapi/c/ppb_compositor_layer.h"
40 #include "ppapi/c/ppb_image_data.h" 40 #include "ppapi/c/ppb_image_data.h"
41 #include "ppapi/c/ppb_tcp_socket.h" 41 #include "ppapi/c/ppb_tcp_socket.h"
42 #include "ppapi/c/ppb_text_input_controller.h" 42 #include "ppapi/c/ppb_text_input_controller.h"
43 #include "ppapi/c/ppb_udp_socket.h" 43 #include "ppapi/c/ppb_udp_socket.h"
44 #include "ppapi/c/ppb_video_encoder.h" 44 #include "ppapi/c/ppb_video_encoder.h"
45 #include "ppapi/c/ppb_vpn_provider.h"
45 #include "ppapi/c/private/pp_content_decryptor.h" 46 #include "ppapi/c/private/pp_content_decryptor.h"
46 #include "ppapi/c/private/pp_private_font_charset.h" 47 #include "ppapi/c/private/pp_private_font_charset.h"
47 #include "ppapi/c/private/pp_video_capture_format.h" 48 #include "ppapi/c/private/pp_video_capture_format.h"
48 #include "ppapi/c/private/ppb_flash.h" 49 #include "ppapi/c/private/ppb_flash.h"
49 #include "ppapi/c/private/ppb_host_resolver_private.h" 50 #include "ppapi/c/private/ppb_host_resolver_private.h"
50 #include "ppapi/c/private/ppb_isolated_file_system_private.h" 51 #include "ppapi/c/private/ppb_isolated_file_system_private.h"
51 #include "ppapi/c/private/ppb_net_address_private.h" 52 #include "ppapi/c/private/ppb_net_address_private.h"
52 #include "ppapi/c/private/ppb_pdf.h" 53 #include "ppapi/c/private/ppb_pdf.h"
53 #include "ppapi/c/private/ppp_flash_browser_operations.h" 54 #include "ppapi/c/private/ppp_flash_browser_operations.h"
54 #include "ppapi/c/private/ppp_pdf.h" 55 #include "ppapi/c/private/ppp_pdf.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) 125 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev)
125 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) 126 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev)
126 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) 127 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev)
127 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, 128 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option,
128 PP_UDPSOCKET_OPTION_MULTICAST_TTL) 129 PP_UDPSOCKET_OPTION_MULTICAST_TTL)
129 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) 130 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
130 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) 131 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
131 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) 132 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST)
132 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) 133 IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST)
133 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) 134 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX)
135 IPC_ENUM_TRAITS_MAX_VALUE(PP_VpnProvider_PlatformMessage,
136 PP_VPN_PROVIDER_PLATFORM_MESSAGE_LAST)
137 IPC_ENUM_TRAITS_MAX_VALUE(PP_VpnProvider_VpnConnectionState,
138 PP_VPN_PROVIDER_CONNECTION_STATE_LAST)
139 IPC_ENUM_TRAITS_MAX_VALUE(PP_VpnProvider_UIEvent, PP_VPN_PROVIDER_UI_EVENT_LAST)
140 IPC_ENUM_TRAITS_MAX_VALUE(PP_VpnProvider_ConfigMessage,
141 PP_VPN_PROVIDER_PLATFORM_MESSAGE_LAST)
134 142
135 IPC_STRUCT_TRAITS_BEGIN(PP_Point) 143 IPC_STRUCT_TRAITS_BEGIN(PP_Point)
136 IPC_STRUCT_TRAITS_MEMBER(x) 144 IPC_STRUCT_TRAITS_MEMBER(x)
137 IPC_STRUCT_TRAITS_MEMBER(y) 145 IPC_STRUCT_TRAITS_MEMBER(y)
138 IPC_STRUCT_TRAITS_END() 146 IPC_STRUCT_TRAITS_END()
139 147
140 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) 148 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
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()
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 432
425 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo) 433 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo)
426 IPC_STRUCT_TRAITS_MEMBER(name) 434 IPC_STRUCT_TRAITS_MEMBER(name)
427 IPC_STRUCT_TRAITS_MEMBER(type) 435 IPC_STRUCT_TRAITS_MEMBER(type)
428 IPC_STRUCT_TRAITS_MEMBER(state) 436 IPC_STRUCT_TRAITS_MEMBER(state)
429 IPC_STRUCT_TRAITS_MEMBER(addresses) 437 IPC_STRUCT_TRAITS_MEMBER(addresses)
430 IPC_STRUCT_TRAITS_MEMBER(display_name) 438 IPC_STRUCT_TRAITS_MEMBER(display_name)
431 IPC_STRUCT_TRAITS_MEMBER(mtu) 439 IPC_STRUCT_TRAITS_MEMBER(mtu)
432 IPC_STRUCT_TRAITS_END() 440 IPC_STRUCT_TRAITS_END()
433 441
442 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedVpnProviderParameters)
443 IPC_STRUCT_TRAITS_MEMBER(address)
444 IPC_STRUCT_TRAITS_MEMBER(subnet)
445 IPC_STRUCT_TRAITS_MEMBER(exclusion_list)
446 IPC_STRUCT_TRAITS_MEMBER(inclusion_list)
447 IPC_STRUCT_TRAITS_MEMBER(dns_servers)
448 IPC_STRUCT_TRAITS_MEMBER(mtu)
449 IPC_STRUCT_TRAITS_MEMBER(broadcast_address)
450 IPC_STRUCT_TRAITS_MEMBER(domain_search)
451 IPC_STRUCT_TRAITS_END()
452
434 // Only whitelisted switches passed through PpapiNaClPluginArgs. 453 // Only whitelisted switches passed through PpapiNaClPluginArgs.
435 // The list of switches can be found in: 454 // The list of switches can be found in:
436 // components/nacl/browser/nacl_process_host.cc 455 // components/nacl/browser/nacl_process_host.cc
437 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) 456 IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs)
438 IPC_STRUCT_TRAITS_MEMBER(off_the_record) 457 IPC_STRUCT_TRAITS_MEMBER(off_the_record)
439 IPC_STRUCT_TRAITS_MEMBER(permissions) 458 IPC_STRUCT_TRAITS_MEMBER(permissions)
440 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) 459 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds)
441 IPC_STRUCT_TRAITS_MEMBER(switch_names) 460 IPC_STRUCT_TRAITS_MEMBER(switch_names)
442 IPC_STRUCT_TRAITS_MEMBER(switch_values) 461 IPC_STRUCT_TRAITS_MEMBER(switch_values)
443 IPC_STRUCT_TRAITS_END() 462 IPC_STRUCT_TRAITS_END()
(...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1869 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoSource_Open, 1888 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoSource_Open,
1870 std::string /* stream_url */) 1889 std::string /* stream_url */)
1871 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) 1890 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply)
1872 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) 1891 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame)
1873 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoSource_GetFrameReply, 1892 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoSource_GetFrameReply,
1874 ppapi::HostResource /* resource_id */, 1893 ppapi::HostResource /* resource_id */,
1875 PP_ImageDataDesc /* image_data_desc */, 1894 PP_ImageDataDesc /* image_data_desc */,
1876 PP_TimeTicks /* timestamp */) 1895 PP_TimeTicks /* timestamp */)
1877 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) 1896 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close)
1878 1897
1898 // VPN Provider ----------------------------------------------------------------
1899 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VpnProvider_Create)
1900
1901 // PPB_VpnProvider Plugin --> Browser Messages
1902 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_CreateConfig,
1903 std::string /* name */)
1904 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_DestroyConfig,
1905 std::string /* id */)
1906 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_SetParameters,
1907 ppapi::proxy::SerializedVpnProviderParameters /* params */)
1908 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_SendPacket,
1909 std::vector<char> /* packet */)
1910 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_NotifyConnectionStateChanged,
1911 PP_VpnProvider_VpnConnectionState /* status */)
1912
1913 // PPB_VpnProvider Replies
1914 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VpnProvider_CreateConfigReply,
1915 int32_t /* status */,
1916 std::string /* id */)
1917 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VpnProvider_DestroyConfigReply,
1918 int32_t /* status */)
1919 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VpnProvider_SetParametersReply,
1920 int32_t /* status */)
1921 IPC_MESSAGE_CONTROL1(
1922 PpapiPluginMsg_VpnProvider_NotifyConnectionStateChangedReply,
1923 int32_t /* status */)
1924
1925 // PPP_VpnProvide Browser --> Plugin Messages
1926 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VpnProvider_OnPlatformMessage,
1927 std::string /* id */,
1928 PP_VpnProvider_PlatformMessage /* status */,
1929 std::string /* message */)
1930 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VpnProvider_OnPacketReceived,
1931 std::vector<char> /* packet */)
1932 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VpnProvider_OnConfigEvent,
1933 std::string /* id */,
1934 PP_VpnProvider_ConfigMessage /* message */,
1935 std::string /* name - additional payload for create */,
1936 std::string /* data - additional payload for create */)
1937 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VpnProvider_OnUIEvent,
1938 PP_VpnProvider_UIEvent /* event */,
1939 std::string /* id */)
1940
1879 // WebSocket ------------------------------------------------------------------- 1941 // WebSocket -------------------------------------------------------------------
1880 1942
1881 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) 1943 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create)
1882 1944
1883 // Establishes the connection to a server. This message requires 1945 // Establishes the connection to a server. This message requires
1884 // WebSocket_ConnectReply as a reply message. 1946 // WebSocket_ConnectReply as a reply message.
1885 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect, 1947 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect,
1886 std::string /* url */, 1948 std::string /* url */,
1887 std::vector<std::string> /* protocols */) 1949 std::vector<std::string> /* protocols */)
1888 1950
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
2333 std::vector<ppapi::HostResource> /* buffers */, 2395 std::vector<ppapi::HostResource> /* buffers */,
2334 uint32_t /* buffer_size */) 2396 uint32_t /* buffer_size */)
2335 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 2397 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2336 uint32_t /* status */) 2398 uint32_t /* status */)
2337 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 2399 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2338 uint32_t /* error */) 2400 uint32_t /* error */)
2339 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 2401 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2340 uint32_t /* buffer */) 2402 uint32_t /* buffer */)
2341 2403
2342 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2404 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/resource_creation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698