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

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

Issue 10913257: Convert url request info to new proxy API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/file_path.h" 10 #include "base/file_path.h"
(...skipping 28 matching lines...) Expand all
39 #include "ppapi/c/private/ppp_flash_browser_operations.h" 39 #include "ppapi/c/private/ppp_flash_browser_operations.h"
40 #include "ppapi/proxy/ppapi_param_traits.h" 40 #include "ppapi/proxy/ppapi_param_traits.h"
41 #include "ppapi/proxy/ppapi_proxy_export.h" 41 #include "ppapi/proxy/ppapi_proxy_export.h"
42 #include "ppapi/proxy/resource_message_params.h" 42 #include "ppapi/proxy/resource_message_params.h"
43 #include "ppapi/proxy/serialized_flash_menu.h" 43 #include "ppapi/proxy/serialized_flash_menu.h"
44 #include "ppapi/proxy/serialized_structs.h" 44 #include "ppapi/proxy/serialized_structs.h"
45 #include "ppapi/shared_impl/ppapi_preferences.h" 45 #include "ppapi/shared_impl/ppapi_preferences.h"
46 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 46 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
47 #include "ppapi/shared_impl/ppb_input_event_shared.h" 47 #include "ppapi/shared_impl/ppb_input_event_shared.h"
48 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" 48 #include "ppapi/shared_impl/ppb_network_list_private_shared.h"
49 #include "ppapi/shared_impl/ppb_url_request_info_shared.h"
50 #include "ppapi/shared_impl/ppb_view_shared.h" 49 #include "ppapi/shared_impl/ppb_view_shared.h"
51 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" 50 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
52 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" 51 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
53 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" 52 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
53 #include "ppapi/shared_impl/url_request_info_data.h"
54 54
55 #undef IPC_MESSAGE_EXPORT 55 #undef IPC_MESSAGE_EXPORT
56 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT 56 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
57 57
58 #define IPC_MESSAGE_START PpapiMsgStart 58 #define IPC_MESSAGE_START PpapiMsgStart
59 59
60 IPC_ENUM_TRAITS(PP_DeviceType_Dev) 60 IPC_ENUM_TRAITS(PP_DeviceType_Dev)
61 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) 61 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
62 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) 62 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
63 IPC_ENUM_TRAITS(PP_FlashSetting) 63 IPC_ENUM_TRAITS(PP_FlashSetting)
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 IPC_STRUCT_TRAITS_MEMBER(touches) 193 IPC_STRUCT_TRAITS_MEMBER(touches)
194 IPC_STRUCT_TRAITS_MEMBER(changed_touches) 194 IPC_STRUCT_TRAITS_MEMBER(changed_touches)
195 IPC_STRUCT_TRAITS_MEMBER(target_touches) 195 IPC_STRUCT_TRAITS_MEMBER(target_touches)
196 IPC_STRUCT_TRAITS_END() 196 IPC_STRUCT_TRAITS_END()
197 197
198 IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair) 198 IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair)
199 IPC_STRUCT_TRAITS_MEMBER(host) 199 IPC_STRUCT_TRAITS_MEMBER(host)
200 IPC_STRUCT_TRAITS_MEMBER(port) 200 IPC_STRUCT_TRAITS_MEMBER(port)
201 IPC_STRUCT_TRAITS_END() 201 IPC_STRUCT_TRAITS_END()
202 202
203 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data) 203 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData)
204 IPC_STRUCT_TRAITS_MEMBER(url) 204 IPC_STRUCT_TRAITS_MEMBER(url)
205 IPC_STRUCT_TRAITS_MEMBER(method) 205 IPC_STRUCT_TRAITS_MEMBER(method)
206 IPC_STRUCT_TRAITS_MEMBER(headers) 206 IPC_STRUCT_TRAITS_MEMBER(headers)
207 IPC_STRUCT_TRAITS_MEMBER(stream_to_file) 207 IPC_STRUCT_TRAITS_MEMBER(stream_to_file)
208 IPC_STRUCT_TRAITS_MEMBER(follow_redirects) 208 IPC_STRUCT_TRAITS_MEMBER(follow_redirects)
209 IPC_STRUCT_TRAITS_MEMBER(record_download_progress) 209 IPC_STRUCT_TRAITS_MEMBER(record_download_progress)
210 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress) 210 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress)
211 IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url) 211 IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url)
212 IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url) 212 IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url)
213 IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests) 213 IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests)
214 IPC_STRUCT_TRAITS_MEMBER(allow_credentials) 214 IPC_STRUCT_TRAITS_MEMBER(allow_credentials)
215 IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding) 215 IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding)
216 IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding) 216 IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding)
217 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold) 217 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold)
218 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold) 218 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold)
219 IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent) 219 IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent)
220 IPC_STRUCT_TRAITS_MEMBER(custom_user_agent) 220 IPC_STRUCT_TRAITS_MEMBER(custom_user_agent)
221 IPC_STRUCT_TRAITS_MEMBER(body) 221 IPC_STRUCT_TRAITS_MEMBER(body)
222 IPC_STRUCT_TRAITS_END() 222 IPC_STRUCT_TRAITS_END()
223 223
224 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem) 224 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem)
225 IPC_STRUCT_TRAITS_MEMBER(is_file) 225 IPC_STRUCT_TRAITS_MEMBER(is_file)
226 IPC_STRUCT_TRAITS_MEMBER(data) 226 IPC_STRUCT_TRAITS_MEMBER(data)
227 // Note: we don't serialize file_ref. 227 // Note: we don't serialize file_ref.
228 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) 228 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource)
229 IPC_STRUCT_TRAITS_MEMBER(start_offset) 229 IPC_STRUCT_TRAITS_MEMBER(start_offset)
230 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) 230 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes)
231 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) 231 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time)
232 IPC_STRUCT_TRAITS_END() 232 IPC_STRUCT_TRAITS_END()
233 233
234 #if !defined(OS_NACL) && !defined(NACL_WIN64) 234 #if !defined(OS_NACL) && !defined(NACL_WIN64)
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 std::string /* text */, 1066 std::string /* text */,
1067 uint32_t /* caret */, 1067 uint32_t /* caret */,
1068 uint32_t /* anchor */) 1068 uint32_t /* anchor */)
1069 1069
1070 // PPB_URLLoader. 1070 // PPB_URLLoader.
1071 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, 1071 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create,
1072 PP_Instance /* instance */, 1072 PP_Instance /* instance */,
1073 ppapi::HostResource /* result */) 1073 ppapi::HostResource /* result */)
1074 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open, 1074 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open,
1075 ppapi::HostResource /* loader */, 1075 ppapi::HostResource /* loader */,
1076 ppapi::PPB_URLRequestInfo_Data /* request_data */) 1076 ppapi::URLRequestInfoData /* request_data */)
1077 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect, 1077 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect,
1078 ppapi::HostResource /* loader */) 1078 ppapi::HostResource /* loader */)
1079 IPC_SYNC_MESSAGE_ROUTED1_1( 1079 IPC_SYNC_MESSAGE_ROUTED1_1(
1080 PpapiHostMsg_PPBURLLoader_GetResponseInfo, 1080 PpapiHostMsg_PPBURLLoader_GetResponseInfo,
1081 ppapi::HostResource /* loader */, 1081 ppapi::HostResource /* loader */,
1082 ppapi::HostResource /* response_info_out */) 1082 ppapi::HostResource /* response_info_out */)
1083 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody, 1083 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody,
1084 ppapi::HostResource /* loader */, 1084 ppapi::HostResource /* loader */,
1085 int32_t /* bytes_to_read */) 1085 int32_t /* bytes_to_read */)
1086 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile, 1086 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile,
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 PpapiHostMsg_PPBFlash_DrawGlyphs, 1324 PpapiHostMsg_PPBFlash_DrawGlyphs,
1325 PP_Instance /* instance */, 1325 PP_Instance /* instance */,
1326 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */, 1326 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */,
1327 PP_Bool /* result */) 1327 PP_Bool /* result */)
1328 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL, 1328 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL,
1329 PP_Instance /* instance */, 1329 PP_Instance /* instance */,
1330 std::string /* url */, 1330 std::string /* url */,
1331 ppapi::proxy::SerializedVar /* result */) 1331 ppapi::proxy::SerializedVar /* result */)
1332 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate, 1332 IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate,
1333 PP_Instance /* instance */, 1333 PP_Instance /* instance */,
1334 ppapi::PPB_URLRequestInfo_Data /* request_data */, 1334 ppapi::URLRequestInfoData /* request_data */,
1335 std::string /* target */, 1335 std::string /* target */,
1336 PP_Bool /* from_user_action */, 1336 PP_Bool /* from_user_action */,
1337 int32_t /* result */) 1337 int32_t /* result */)
1338 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_RunMessageLoop, 1338 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_RunMessageLoop,
1339 PP_Instance /* instance */) 1339 PP_Instance /* instance */)
1340 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_QuitMessageLoop, 1340 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_QuitMessageLoop,
1341 PP_Instance /* instance */) 1341 PP_Instance /* instance */)
1342 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset, 1342 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset,
1343 PP_Instance /* instance */, 1343 PP_Instance /* instance */,
1344 PP_Time /* t */, 1344 PP_Time /* t */,
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 1558
1559 // Reply to a RequestMemory call. This supplies the shared memory handle. The 1559 // Reply to a RequestMemory call. This supplies the shared memory handle. The
1560 // actual handle is passed in the ReplyParams struct. 1560 // actual handle is passed in the ReplyParams struct.
1561 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory) 1561 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory)
1562 1562
1563 // Printing. 1563 // Printing.
1564 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) 1564 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create)
1565 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) 1565 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings)
1566 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, 1566 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply,
1567 PP_PrintSettings_Dev /* print_settings */) 1567 PP_PrintSettings_Dev /* print_settings */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698