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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 IPC_STRUCT_MEMBER(int64, parent_frame_id) | 115 IPC_STRUCT_MEMBER(int64, parent_frame_id) |
116 | 116 |
117 IPC_STRUCT_MEMBER(content::PageTransition, transition_type) | 117 IPC_STRUCT_MEMBER(content::PageTransition, transition_type) |
118 | 118 |
119 // The following two members identify a previous request that has been | 119 // The following two members identify a previous request that has been |
120 // created before this navigation has been transferred to a new render view. | 120 // created before this navigation has been transferred to a new render view. |
121 // This serves the purpose of recycling the old request. | 121 // This serves the purpose of recycling the old request. |
122 // Unless this refers to a transferred navigation, these values are -1 and -1. | 122 // Unless this refers to a transferred navigation, these values are -1 and -1. |
123 IPC_STRUCT_MEMBER(int, transferred_request_child_id) | 123 IPC_STRUCT_MEMBER(int, transferred_request_child_id) |
124 IPC_STRUCT_MEMBER(int, transferred_request_request_id) | 124 IPC_STRUCT_MEMBER(int, transferred_request_request_id) |
| 125 |
| 126 // Whether or not we should allow the URL to download. |
| 127 IPC_STRUCT_MEMBER(bool, allow_download) |
125 IPC_STRUCT_END() | 128 IPC_STRUCT_END() |
126 | 129 |
127 // Resource messages sent from the browser to the renderer. | 130 // Resource messages sent from the browser to the renderer. |
128 | 131 |
129 // Sent when the headers are available for a resource request. | 132 // Sent when the headers are available for a resource request. |
130 IPC_MESSAGE_ROUTED2(ResourceMsg_ReceivedResponse, | 133 IPC_MESSAGE_ROUTED2(ResourceMsg_ReceivedResponse, |
131 int /* request_id */, | 134 int /* request_id */, |
132 content::ResourceResponseHead) | 135 content::ResourceResponseHead) |
133 | 136 |
134 // Sent when cached metadata from a resource request is ready. | 137 // Sent when cached metadata from a resource request is ready. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 int /* request_id */) | 216 int /* request_id */) |
214 | 217 |
215 // Sent by the renderer process to acknowledge receipt of a | 218 // Sent by the renderer process to acknowledge receipt of a |
216 // UploadProgress message. | 219 // UploadProgress message. |
217 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, | 220 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, |
218 int /* request_id */) | 221 int /* request_id */) |
219 | 222 |
220 // Sent when the renderer process deletes a resource loader. | 223 // Sent when the renderer process deletes a resource loader. |
221 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 224 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
222 int /* request_id */) | 225 int /* request_id */) |
OLD | NEW |