| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 IPC_STRUCT_MEMBER(WebKit::WebReferrerPolicy, referrer_policy) | 141 IPC_STRUCT_MEMBER(WebKit::WebReferrerPolicy, referrer_policy) |
| 142 | 142 |
| 143 // Additional HTTP request headers. | 143 // Additional HTTP request headers. |
| 144 IPC_STRUCT_MEMBER(std::string, headers) | 144 IPC_STRUCT_MEMBER(std::string, headers) |
| 145 | 145 |
| 146 // net::URLRequest load flags (0 by default). | 146 // net::URLRequest load flags (0 by default). |
| 147 IPC_STRUCT_MEMBER(int, load_flags) | 147 IPC_STRUCT_MEMBER(int, load_flags) |
| 148 | 148 |
| 149 // Process ID from which this request originated, or zero if it originated | 149 // Process ID from which this request originated, or zero if it originated |
| 150 // in the renderer itself. | 150 // in the renderer itself. |
| 151 // If kDirectNPAPIRequests isn't specified, then plugin requests get routed |
| 152 // through the renderer and and this holds the pid of the plugin process. |
| 153 // Otherwise this holds the render_process_id of the view that has the plugin. |
| 151 IPC_STRUCT_MEMBER(int, origin_pid) | 154 IPC_STRUCT_MEMBER(int, origin_pid) |
| 152 | 155 |
| 153 // What this resource load is for (main frame, sub-frame, sub-resource, | 156 // What this resource load is for (main frame, sub-frame, sub-resource, |
| 154 // object). | 157 // object). |
| 155 IPC_STRUCT_MEMBER(ResourceType::Type, resource_type) | 158 IPC_STRUCT_MEMBER(ResourceType::Type, resource_type) |
| 156 | 159 |
| 157 // The priority of this request. | 160 // The priority of this request. |
| 158 IPC_STRUCT_MEMBER(net::RequestPriority, priority) | 161 IPC_STRUCT_MEMBER(net::RequestPriority, priority) |
| 159 | 162 |
| 160 // Used by plugin->browser requests to get the correct net::URLRequestContext. | 163 // Used by plugin->browser requests to get the correct net::URLRequestContext. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 int /* request_id */) | 310 int /* request_id */) |
| 308 | 311 |
| 309 // Sent when the renderer process deletes a resource loader. | 312 // Sent when the renderer process deletes a resource loader. |
| 310 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 313 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 311 int /* request_id */) | 314 int /* request_id */) |
| 312 | 315 |
| 313 // Sent by the renderer when a resource request changes priority. | 316 // Sent by the renderer when a resource request changes priority. |
| 314 IPC_MESSAGE_CONTROL2(ResourceHostMsg_DidChangePriority, | 317 IPC_MESSAGE_CONTROL2(ResourceHostMsg_DidChangePriority, |
| 315 int /* request_id */, | 318 int /* request_id */, |
| 316 net::RequestPriority) | 319 net::RequestPriority) |
| OLD | NEW |