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 // IPC messages for resource loading. | 5 // IPC messages for resource loading. |
6 | 6 |
7 // Multiply-included message file, hence no include guard. | 7 // Multiply-included message file, hence no include guard. |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "content/public/common/common_param_traits.h" | 9 #include "content/public/common/common_param_traits.h" |
10 #include "content/public/common/resource_response.h" | 10 #include "content/public/common/resource_response.h" |
11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
12 #include "webkit/glue/resource_request_body.h" | 12 #include "webkit/glue/resource_request_body.h" |
13 | 13 |
14 #define IPC_MESSAGE_START ResourceMsgStart | 14 #define IPC_MESSAGE_START ResourceMsgStart |
15 #undef IPC_MESSAGE_EXPORT | 15 #undef IPC_MESSAGE_EXPORT |
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
17 | 17 |
18 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) | 18 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) |
19 IPC_STRUCT_TRAITS_PARENT(webkit_glue::ResourceResponseInfo) | 19 IPC_STRUCT_TRAITS_PARENT(webkit_glue::ResourceResponseInfo) |
20 IPC_STRUCT_TRAITS_MEMBER(status) | 20 IPC_STRUCT_TRAITS_MEMBER(error_code) |
21 IPC_STRUCT_TRAITS_MEMBER(request_start) | 21 IPC_STRUCT_TRAITS_MEMBER(request_start) |
22 IPC_STRUCT_TRAITS_MEMBER(response_start) | 22 IPC_STRUCT_TRAITS_MEMBER(response_start) |
23 IPC_STRUCT_TRAITS_END() | 23 IPC_STRUCT_TRAITS_END() |
24 | 24 |
25 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) | 25 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) |
26 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) | 26 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) |
27 IPC_STRUCT_TRAITS_MEMBER(final_url) | 27 IPC_STRUCT_TRAITS_MEMBER(final_url) |
28 IPC_STRUCT_TRAITS_MEMBER(data) | 28 IPC_STRUCT_TRAITS_MEMBER(data) |
29 IPC_STRUCT_TRAITS_END() | 29 IPC_STRUCT_TRAITS_END() |
30 | 30 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 int /* encoded_data_length */) | 165 int /* encoded_data_length */) |
166 | 166 |
167 // Sent when some data from a resource request has been downloaded to | 167 // Sent when some data from a resource request has been downloaded to |
168 // file. This is only called in the 'download_to_file' case and replaces | 168 // file. This is only called in the 'download_to_file' case and replaces |
169 // ResourceMsg_DataReceived in the call sequence in that case. | 169 // ResourceMsg_DataReceived in the call sequence in that case. |
170 IPC_MESSAGE_ROUTED2(ResourceMsg_DataDownloaded, | 170 IPC_MESSAGE_ROUTED2(ResourceMsg_DataDownloaded, |
171 int /* request_id */, | 171 int /* request_id */, |
172 int /* data_len */) | 172 int /* data_len */) |
173 | 173 |
174 // Sent when the request has been completed. | 174 // Sent when the request has been completed. |
175 IPC_MESSAGE_ROUTED4(ResourceMsg_RequestComplete, | 175 IPC_MESSAGE_ROUTED5(ResourceMsg_RequestComplete, |
176 int /* request_id */, | 176 int /* request_id */, |
177 net::URLRequestStatus /* status */, | 177 int /* error_code */, |
| 178 bool /* was_ignored_by_handler */, |
178 std::string /* security info */, | 179 std::string /* security info */, |
179 base::TimeTicks /* completion_time */) | 180 base::TimeTicks /* completion_time */) |
180 | 181 |
181 // Resource messages sent from the renderer to the browser. | 182 // Resource messages sent from the renderer to the browser. |
182 | 183 |
183 // Makes a resource request via the browser. | 184 // Makes a resource request via the browser. |
184 IPC_MESSAGE_ROUTED2(ResourceHostMsg_RequestResource, | 185 IPC_MESSAGE_ROUTED2(ResourceHostMsg_RequestResource, |
185 int /* request_id */, | 186 int /* request_id */, |
186 ResourceHostMsg_Request) | 187 ResourceHostMsg_Request) |
187 | 188 |
(...skipping 24 matching lines...) Expand all Loading... |
212 int /* request_id */) | 213 int /* request_id */) |
213 | 214 |
214 // Sent by the renderer process to acknowledge receipt of a | 215 // Sent by the renderer process to acknowledge receipt of a |
215 // UploadProgress message. | 216 // UploadProgress message. |
216 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, | 217 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, |
217 int /* request_id */) | 218 int /* request_id */) |
218 | 219 |
219 // Sent when the renderer process deletes a resource loader. | 220 // Sent when the renderer process deletes a resource loader. |
220 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 221 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
221 int /* request_id */) | 222 int /* request_id */) |
OLD | NEW |