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

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

Issue 10993031: Refactor the URLResponseInfo to use new design (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_url_loader_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 <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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #include "ppapi/proxy/serialized_var.h" 49 #include "ppapi/proxy/serialized_var.h"
50 #include "ppapi/shared_impl/ppapi_preferences.h" 50 #include "ppapi/shared_impl/ppapi_preferences.h"
51 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 51 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
52 #include "ppapi/shared_impl/ppb_input_event_shared.h" 52 #include "ppapi/shared_impl/ppb_input_event_shared.h"
53 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" 53 #include "ppapi/shared_impl/ppb_network_list_private_shared.h"
54 #include "ppapi/shared_impl/ppb_view_shared.h" 54 #include "ppapi/shared_impl/ppb_view_shared.h"
55 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" 55 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
56 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" 56 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
57 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" 57 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
58 #include "ppapi/shared_impl/url_request_info_data.h" 58 #include "ppapi/shared_impl/url_request_info_data.h"
59 #include "ppapi/shared_impl/url_response_info_data.h"
59 60
60 #undef IPC_MESSAGE_EXPORT 61 #undef IPC_MESSAGE_EXPORT
61 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT 62 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
62 63
63 #define IPC_MESSAGE_START PpapiMsgStart 64 #define IPC_MESSAGE_START PpapiMsgStart
64 65
65 IPC_ENUM_TRAITS(PP_AudioSampleRate) 66 IPC_ENUM_TRAITS(PP_AudioSampleRate)
66 IPC_ENUM_TRAITS(PP_DeviceType_Dev) 67 IPC_ENUM_TRAITS(PP_DeviceType_Dev)
67 IPC_ENUM_TRAITS(PP_DecryptorStreamType) 68 IPC_ENUM_TRAITS(PP_DecryptorStreamType)
68 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) 69 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem) 249 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem)
249 IPC_STRUCT_TRAITS_MEMBER(is_file) 250 IPC_STRUCT_TRAITS_MEMBER(is_file)
250 IPC_STRUCT_TRAITS_MEMBER(data) 251 IPC_STRUCT_TRAITS_MEMBER(data)
251 // Note: we don't serialize file_ref. 252 // Note: we don't serialize file_ref.
252 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) 253 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource)
253 IPC_STRUCT_TRAITS_MEMBER(start_offset) 254 IPC_STRUCT_TRAITS_MEMBER(start_offset)
254 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) 255 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes)
255 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) 256 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time)
256 IPC_STRUCT_TRAITS_END() 257 IPC_STRUCT_TRAITS_END()
257 258
259 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData)
260 IPC_STRUCT_TRAITS_MEMBER(url)
261 IPC_STRUCT_TRAITS_MEMBER(headers)
262 IPC_STRUCT_TRAITS_MEMBER(status_code)
263 IPC_STRUCT_TRAITS_MEMBER(status_text)
264 IPC_STRUCT_TRAITS_MEMBER(redirect_url)
265 IPC_STRUCT_TRAITS_MEMBER(body_as_file_ref)
266 IPC_STRUCT_TRAITS_END()
267
258 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) 268 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo)
259 IPC_STRUCT_TRAITS_MEMBER(name) 269 IPC_STRUCT_TRAITS_MEMBER(name)
260 IPC_STRUCT_TRAITS_MEMBER(type) 270 IPC_STRUCT_TRAITS_MEMBER(type)
261 IPC_STRUCT_TRAITS_MEMBER(state) 271 IPC_STRUCT_TRAITS_MEMBER(state)
262 IPC_STRUCT_TRAITS_MEMBER(addresses) 272 IPC_STRUCT_TRAITS_MEMBER(addresses)
263 IPC_STRUCT_TRAITS_MEMBER(display_name) 273 IPC_STRUCT_TRAITS_MEMBER(display_name)
264 IPC_STRUCT_TRAITS_MEMBER(mtu) 274 IPC_STRUCT_TRAITS_MEMBER(mtu)
265 IPC_STRUCT_TRAITS_END() 275 IPC_STRUCT_TRAITS_END()
266 276
267 #if !defined(OS_NACL) && !defined(NACL_WIN64) 277 #if !defined(OS_NACL) && !defined(NACL_WIN64)
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 1101
1092 // PPB_URLLoader. 1102 // PPB_URLLoader.
1093 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, 1103 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create,
1094 PP_Instance /* instance */, 1104 PP_Instance /* instance */,
1095 ppapi::HostResource /* result */) 1105 ppapi::HostResource /* result */)
1096 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open, 1106 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open,
1097 ppapi::HostResource /* loader */, 1107 ppapi::HostResource /* loader */,
1098 ppapi::URLRequestInfoData /* request_data */) 1108 ppapi::URLRequestInfoData /* request_data */)
1099 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect, 1109 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect,
1100 ppapi::HostResource /* loader */) 1110 ppapi::HostResource /* loader */)
1101 IPC_SYNC_MESSAGE_ROUTED1_1( 1111 IPC_SYNC_MESSAGE_ROUTED1_2(
1102 PpapiHostMsg_PPBURLLoader_GetResponseInfo, 1112 PpapiHostMsg_PPBURLLoader_GetResponseInfo,
1103 ppapi::HostResource /* loader */, 1113 ppapi::HostResource /* loader */,
1104 ppapi::HostResource /* response_info_out */) 1114 bool /* success */,
1115 ppapi::URLResponseInfoData /* result */)
1105 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody, 1116 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody,
1106 ppapi::HostResource /* loader */, 1117 ppapi::HostResource /* loader */,
1107 int32_t /* bytes_to_read */) 1118 int32_t /* bytes_to_read */)
1108 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile, 1119 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile,
1109 ppapi::HostResource /* loader */) 1120 ppapi::HostResource /* loader */)
1110 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close, 1121 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close,
1111 ppapi::HostResource /* loader */) 1122 ppapi::HostResource /* loader */)
1112 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess, 1123 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess,
1113 ppapi::HostResource /* loader */) 1124 ppapi::HostResource /* loader */)
1114 1125
1115 // PPB_URLResponseInfo.
1116 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty,
1117 ppapi::HostResource /* response */,
1118 int32_t /* property */,
1119 ppapi::proxy::SerializedVar /* result */)
1120 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef,
1121 ppapi::HostResource /* response */,
1122 ppapi::PPB_FileRef_CreateInfo /* result */)
1123
1124 // PPB_Var. 1126 // PPB_Var.
1125 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_AddRefObject, 1127 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_AddRefObject,
1126 int64 /* object_id */, 1128 int64 /* object_id */,
1127 int /* unused - need a return value for sync msgs */) 1129 int /* unused - need a return value for sync msgs */)
1128 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject, 1130 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
1129 int64 /* object_id */) 1131 int64 /* object_id */)
1130 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType, 1132 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType,
1131 PP_Instance /* instance */, 1133 PP_Instance /* instance */,
1132 ppapi::proxy::SerializedVar /* var */, 1134 ppapi::proxy::SerializedVar /* var */,
1133 int /* new_type */, 1135 int /* new_type */,
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply, 1725 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply,
1724 std::string /* output */) 1726 std::string /* output */)
1725 1727
1726 // Flash functions. 1728 // Flash functions.
1727 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) 1729 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
1728 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_EnumerateVideoCaptureDevices, 1730 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_EnumerateVideoCaptureDevices,
1729 ppapi::HostResource /* video_capture */) 1731 ppapi::HostResource /* video_capture */)
1730 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_EnumerateVideoCaptureDevicesReply, 1732 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_EnumerateVideoCaptureDevicesReply,
1731 std::vector<ppapi::DeviceRefData> /* devices */) 1733 std::vector<ppapi::DeviceRefData> /* devices */)
1732 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1734 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_url_loader_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698