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 // NOTE: All messages must send an |int request_id| as their first parameter. | 7 // NOTE: All messages must send an |int request_id| as their first parameter. |
8 | 8 |
9 // Multiply-included message file, hence no include guard. | 9 // Multiply-included message file, hence no include guard. |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 // Optional resource request body (may be null). | 170 // Optional resource request body (may be null). |
171 IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>, | 171 IPC_STRUCT_MEMBER(scoped_refptr<webkit_glue::ResourceRequestBody>, |
172 request_body) | 172 request_body) |
173 | 173 |
174 IPC_STRUCT_MEMBER(bool, download_to_file) | 174 IPC_STRUCT_MEMBER(bool, download_to_file) |
175 | 175 |
176 // True if the request was user initiated. | 176 // True if the request was user initiated. |
177 IPC_STRUCT_MEMBER(bool, has_user_gesture) | 177 IPC_STRUCT_MEMBER(bool, has_user_gesture) |
178 | 178 |
| 179 // The routing id of the RenderFrame. |
| 180 IPC_STRUCT_MEMBER(int, render_frame_id) |
| 181 |
179 // True if |frame_id| is the main frame of a RenderView. | 182 // True if |frame_id| is the main frame of a RenderView. |
180 IPC_STRUCT_MEMBER(bool, is_main_frame) | 183 IPC_STRUCT_MEMBER(bool, is_main_frame) |
181 | 184 |
182 // Identifies the frame within the RenderView that sent the request. | 185 // Identifies the frame within the RenderView that sent the request. |
183 // -1 if unknown / invalid. | 186 // -1 if unknown / invalid. |
184 IPC_STRUCT_MEMBER(int64, frame_id) | 187 IPC_STRUCT_MEMBER(int64, frame_id) |
185 | 188 |
186 // True if |parent_frame_id| is the main frame of a RenderView. | 189 // True if |parent_frame_id| is the main frame of a RenderView. |
187 IPC_STRUCT_MEMBER(bool, parent_is_main_frame) | 190 IPC_STRUCT_MEMBER(bool, parent_is_main_frame) |
188 | 191 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 int /* request_id */) | 317 int /* request_id */) |
315 | 318 |
316 // Sent when the renderer process deletes a resource loader. | 319 // Sent when the renderer process deletes a resource loader. |
317 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 320 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
318 int /* request_id */) | 321 int /* request_id */) |
319 | 322 |
320 // Sent by the renderer when a resource request changes priority. | 323 // Sent by the renderer when a resource request changes priority. |
321 IPC_MESSAGE_CONTROL2(ResourceHostMsg_DidChangePriority, | 324 IPC_MESSAGE_CONTROL2(ResourceHostMsg_DidChangePriority, |
322 int /* request_id */, | 325 int /* request_id */, |
323 net::RequestPriority) | 326 net::RequestPriority) |
OLD | NEW |