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 #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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "ppapi/proxy/serialized_var.h" | 46 #include "ppapi/proxy/serialized_var.h" |
47 #include "ppapi/shared_impl/ppapi_preferences.h" | 47 #include "ppapi/shared_impl/ppapi_preferences.h" |
48 #include "ppapi/shared_impl/ppb_device_ref_shared.h" | 48 #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
49 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 49 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
50 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" | 50 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" |
51 #include "ppapi/shared_impl/ppb_view_shared.h" | 51 #include "ppapi/shared_impl/ppb_view_shared.h" |
52 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" | 52 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" |
53 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" | 53 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" |
54 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" | 54 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" |
55 #include "ppapi/shared_impl/url_request_info_data.h" | 55 #include "ppapi/shared_impl/url_request_info_data.h" |
| 56 #include "ppapi/shared_impl/url_response_info_data.h" |
56 | 57 |
57 #undef IPC_MESSAGE_EXPORT | 58 #undef IPC_MESSAGE_EXPORT |
58 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 59 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
59 | 60 |
60 #define IPC_MESSAGE_START PpapiMsgStart | 61 #define IPC_MESSAGE_START PpapiMsgStart |
61 | 62 |
62 IPC_ENUM_TRAITS(PP_DeviceType_Dev) | 63 IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
63 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) | 64 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) |
64 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) | 65 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) |
65 IPC_ENUM_TRAITS(PP_FlashSetting) | 66 IPC_ENUM_TRAITS(PP_FlashSetting) |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem) | 228 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem) |
228 IPC_STRUCT_TRAITS_MEMBER(is_file) | 229 IPC_STRUCT_TRAITS_MEMBER(is_file) |
229 IPC_STRUCT_TRAITS_MEMBER(data) | 230 IPC_STRUCT_TRAITS_MEMBER(data) |
230 // Note: we don't serialize file_ref. | 231 // Note: we don't serialize file_ref. |
231 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) | 232 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) |
232 IPC_STRUCT_TRAITS_MEMBER(start_offset) | 233 IPC_STRUCT_TRAITS_MEMBER(start_offset) |
233 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) | 234 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) |
234 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) | 235 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) |
235 IPC_STRUCT_TRAITS_END() | 236 IPC_STRUCT_TRAITS_END() |
236 | 237 |
| 238 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData) |
| 239 IPC_STRUCT_TRAITS_MEMBER(url) |
| 240 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 241 IPC_STRUCT_TRAITS_MEMBER(status_code) |
| 242 IPC_STRUCT_TRAITS_MEMBER(status_text) |
| 243 IPC_STRUCT_TRAITS_MEMBER(redirect_url) |
| 244 IPC_STRUCT_TRAITS_MEMBER(body_as_file_ref) |
| 245 IPC_STRUCT_TRAITS_END() |
| 246 |
237 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) | 247 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) |
238 IPC_STRUCT_TRAITS_MEMBER(name) | 248 IPC_STRUCT_TRAITS_MEMBER(name) |
239 IPC_STRUCT_TRAITS_MEMBER(type) | 249 IPC_STRUCT_TRAITS_MEMBER(type) |
240 IPC_STRUCT_TRAITS_MEMBER(state) | 250 IPC_STRUCT_TRAITS_MEMBER(state) |
241 IPC_STRUCT_TRAITS_MEMBER(addresses) | 251 IPC_STRUCT_TRAITS_MEMBER(addresses) |
242 IPC_STRUCT_TRAITS_MEMBER(display_name) | 252 IPC_STRUCT_TRAITS_MEMBER(display_name) |
243 IPC_STRUCT_TRAITS_MEMBER(mtu) | 253 IPC_STRUCT_TRAITS_MEMBER(mtu) |
244 IPC_STRUCT_TRAITS_END() | 254 IPC_STRUCT_TRAITS_END() |
245 | 255 |
246 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 256 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 | 1087 |
1078 // PPB_URLLoader. | 1088 // PPB_URLLoader. |
1079 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, | 1089 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, |
1080 PP_Instance /* instance */, | 1090 PP_Instance /* instance */, |
1081 ppapi::HostResource /* result */) | 1091 ppapi::HostResource /* result */) |
1082 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open, | 1092 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open, |
1083 ppapi::HostResource /* loader */, | 1093 ppapi::HostResource /* loader */, |
1084 ppapi::URLRequestInfoData /* request_data */) | 1094 ppapi::URLRequestInfoData /* request_data */) |
1085 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect, | 1095 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect, |
1086 ppapi::HostResource /* loader */) | 1096 ppapi::HostResource /* loader */) |
1087 IPC_SYNC_MESSAGE_ROUTED1_1( | 1097 IPC_SYNC_MESSAGE_ROUTED1_2( |
1088 PpapiHostMsg_PPBURLLoader_GetResponseInfo, | 1098 PpapiHostMsg_PPBURLLoader_GetResponseInfo, |
1089 ppapi::HostResource /* loader */, | 1099 ppapi::HostResource /* loader */, |
1090 ppapi::HostResource /* response_info_out */) | 1100 bool /* success */, |
| 1101 ppapi::URLResponseInfoData /* result */) |
1091 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody, | 1102 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody, |
1092 ppapi::HostResource /* loader */, | 1103 ppapi::HostResource /* loader */, |
1093 int32_t /* bytes_to_read */) | 1104 int32_t /* bytes_to_read */) |
1094 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile, | 1105 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile, |
1095 ppapi::HostResource /* loader */) | 1106 ppapi::HostResource /* loader */) |
1096 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close, | 1107 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close, |
1097 ppapi::HostResource /* loader */) | 1108 ppapi::HostResource /* loader */) |
1098 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess, | 1109 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess, |
1099 ppapi::HostResource /* loader */) | 1110 ppapi::HostResource /* loader */) |
1100 | 1111 |
1101 // PPB_URLResponseInfo. | |
1102 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty, | |
1103 ppapi::HostResource /* response */, | |
1104 int32_t /* property */, | |
1105 ppapi::proxy::SerializedVar /* result */) | |
1106 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef, | |
1107 ppapi::HostResource /* response */, | |
1108 ppapi::PPB_FileRef_CreateInfo /* result */) | |
1109 | |
1110 // PPB_Var. | 1112 // PPB_Var. |
1111 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_AddRefObject, | 1113 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_AddRefObject, |
1112 int64 /* object_id */, | 1114 int64 /* object_id */, |
1113 int /* unused - need a return value for sync msgs */) | 1115 int /* unused - need a return value for sync msgs */) |
1114 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject, | 1116 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject, |
1115 int64 /* object_id */) | 1117 int64 /* object_id */) |
1116 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType, | 1118 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType, |
1117 PP_Instance /* instance */, | 1119 PP_Instance /* instance */, |
1118 ppapi::proxy::SerializedVar /* var */, | 1120 ppapi::proxy::SerializedVar /* var */, |
1119 int /* new_type */, | 1121 int /* new_type */, |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1669 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 1671 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
1670 // Flash font file. | 1672 // Flash font file. |
1671 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create, | 1673 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create, |
1672 ppapi::proxy::SerializedFontDescription /* description */, | 1674 ppapi::proxy::SerializedFontDescription /* description */, |
1673 PP_PrivateFontCharset /* charset */) | 1675 PP_PrivateFontCharset /* charset */) |
1674 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable, | 1676 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable, |
1675 uint32_t /* table */) | 1677 uint32_t /* table */) |
1676 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply, | 1678 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply, |
1677 std::string /* output */) | 1679 std::string /* output */) |
1678 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1680 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |