| 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" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 int /* encoded_data_length */) | 162 int /* encoded_data_length */) |
| 163 | 163 |
| 164 // Sent when some data from a resource request has been downloaded to | 164 // Sent when some data from a resource request has been downloaded to |
| 165 // file. This is only called in the 'download_to_file' case and replaces | 165 // file. This is only called in the 'download_to_file' case and replaces |
| 166 // ResourceMsg_DataReceived in the call sequence in that case. | 166 // ResourceMsg_DataReceived in the call sequence in that case. |
| 167 IPC_MESSAGE_ROUTED2(ResourceMsg_DataDownloaded, | 167 IPC_MESSAGE_ROUTED2(ResourceMsg_DataDownloaded, |
| 168 int /* request_id */, | 168 int /* request_id */, |
| 169 int /* data_len */) | 169 int /* data_len */) |
| 170 | 170 |
| 171 // Sent when the request has been completed. | 171 // Sent when the request has been completed. |
| 172 IPC_MESSAGE_ROUTED4(ResourceMsg_RequestComplete, | 172 IPC_MESSAGE_ROUTED5(ResourceMsg_RequestComplete, |
| 173 int /* request_id */, | 173 int /* request_id */, |
| 174 net::URLRequestStatus /* status */, | 174 net::URLRequestStatus /* status */, |
| 175 bool /* handled_externally */, |
| 175 std::string /* security info */, | 176 std::string /* security info */, |
| 176 base::TimeTicks /* completion_time */) | 177 base::TimeTicks /* completion_time */) |
| 177 | 178 |
| 178 // Resource messages sent from the renderer to the browser. | 179 // Resource messages sent from the renderer to the browser. |
| 179 | 180 |
| 180 // Makes a resource request via the browser. | 181 // Makes a resource request via the browser. |
| 181 IPC_MESSAGE_ROUTED2(ResourceHostMsg_RequestResource, | 182 IPC_MESSAGE_ROUTED2(ResourceHostMsg_RequestResource, |
| 182 int /* request_id */, | 183 int /* request_id */, |
| 183 ResourceHostMsg_Request) | 184 ResourceHostMsg_Request) |
| 184 | 185 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 209 int /* request_id */) | 210 int /* request_id */) |
| 210 | 211 |
| 211 // Sent by the renderer process to acknowledge receipt of a | 212 // Sent by the renderer process to acknowledge receipt of a |
| 212 // UploadProgress message. | 213 // UploadProgress message. |
| 213 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, | 214 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, |
| 214 int /* request_id */) | 215 int /* request_id */) |
| 215 | 216 |
| 216 // Sent when the renderer process deletes a resource loader. | 217 // Sent when the renderer process deletes a resource loader. |
| 217 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 218 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 218 int /* request_id */) | 219 int /* request_id */) |
| OLD | NEW |