OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. | 6 // header guard. |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 // Sent when the user wants to search for a word on the page (find in page). | 168 // Sent when the user wants to search for a word on the page (find in page). |
169 // Request parameters are passed in as a FindInPageMsg_Request struct. | 169 // Request parameters are passed in as a FindInPageMsg_Request struct. |
170 IPC_MESSAGE_ROUTED1(ViewMsg_Find, FindInPageRequest) | 170 IPC_MESSAGE_ROUTED1(ViewMsg_Find, FindInPageRequest) |
171 | 171 |
172 // Sent when the headers are available for a resource request. | 172 // Sent when the headers are available for a resource request. |
173 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, | 173 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, |
174 int /* request_id */, | 174 int /* request_id */, |
175 ResourceResponseHead) | 175 ResourceResponseHead) |
176 | 176 |
177 // Sent as upload progress is being made | 177 // Sent as download progress is being made, size of the resource may be |
| 178 // unknown, in that case |size| is -1. |
| 179 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_DownloadProgress, |
| 180 int /* request_id */, |
| 181 int64 /* position */, |
| 182 int64 /* size */) |
| 183 |
| 184 // Sent as upload progress is being made. |
178 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_UploadProgress, | 185 IPC_MESSAGE_ROUTED3(ViewMsg_Resource_UploadProgress, |
179 int /* request_id */, | 186 int /* request_id */, |
180 int64 /* position */, | 187 int64 /* position */, |
181 int64 /* size */) | 188 int64 /* size */) |
182 | 189 |
183 // Sent when the request has been redirected. | 190 // Sent when the request has been redirected. |
184 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedRedirect, | 191 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedRedirect, |
185 int /* request_id */, | 192 int /* request_id */, |
186 GURL /* new_url */) | 193 GURL /* new_url */) |
187 | 194 |
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 // message. | 1110 // message. |
1104 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, | 1111 IPC_MESSAGE_ROUTED1(ViewHostMsg_DataReceived_ACK, |
1105 int /* request_id */) | 1112 int /* request_id */) |
1106 | 1113 |
1107 // Sent when a provisional load on the main frame redirects. | 1114 // Sent when a provisional load on the main frame redirects. |
1108 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad, | 1115 IPC_MESSAGE_ROUTED3(ViewHostMsg_DidRedirectProvisionalLoad, |
1109 int /* page_id */, | 1116 int /* page_id */, |
1110 GURL /* last url */, | 1117 GURL /* last url */, |
1111 GURL /* url redirected to */) | 1118 GURL /* url redirected to */) |
1112 | 1119 |
1113 // Sent when the renderer process to acknowlege receipt of and UploadProgress | 1120 // Sent by the renderer process to acknowledge receipt of a |
1114 // message. | 1121 // DownloadProgress message. |
| 1122 IPC_MESSAGE_ROUTED1(ViewHostMsg_DownloadProgress_ACK, |
| 1123 int /* request_id */) |
| 1124 |
| 1125 // Sent by the renderer process to acknowledge receipt of a |
| 1126 // UploadProgress message. |
1115 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK, | 1127 IPC_MESSAGE_ROUTED1(ViewHostMsg_UploadProgress_ACK, |
1116 int /* request_id */) | 1128 int /* request_id */) |
1117 | 1129 |
1118 // Duplicates a shared memory handle from the renderer to the browser. Then | 1130 // Duplicates a shared memory handle from the renderer to the browser. Then |
1119 // the renderer can flush the handle. | 1131 // the renderer can flush the handle. |
1120 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection, | 1132 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_DuplicateSection, |
1121 base::SharedMemoryHandle /* renderer handle */, | 1133 base::SharedMemoryHandle /* renderer handle */, |
1122 base::SharedMemoryHandle /* browser handle */) | 1134 base::SharedMemoryHandle /* browser handle */) |
1123 | 1135 |
1124 // Provide the browser process with information about the WebCore resource | 1136 // Provide the browser process with information about the WebCore resource |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateDedicatedWorker, | 1220 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_CreateDedicatedWorker, |
1209 GURL /* url */, | 1221 GURL /* url */, |
1210 int /* route_id */) | 1222 int /* route_id */) |
1211 | 1223 |
1212 // Wraps an IPC message that's destined to the worker on the renderer->browser | 1224 // Wraps an IPC message that's destined to the worker on the renderer->browser |
1213 // hop. | 1225 // hop. |
1214 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 1226 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, |
1215 IPC::Message /* message */) | 1227 IPC::Message /* message */) |
1216 | 1228 |
1217 IPC_END_MESSAGES(ViewHost) | 1229 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |