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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 153 |
154 // Process ID from which this request originated, or zero if it originated | 154 // Process ID from which this request originated, or zero if it originated |
155 // in the renderer itself. | 155 // in the renderer itself. |
156 // If kDirectNPAPIRequests isn't specified, then plugin requests get routed | 156 // If kDirectNPAPIRequests isn't specified, then plugin requests get routed |
157 // through the renderer and and this holds the pid of the plugin process. | 157 // through the renderer and and this holds the pid of the plugin process. |
158 // Otherwise this holds the render_process_id of the view that has the plugin. | 158 // Otherwise this holds the render_process_id of the view that has the plugin. |
159 IPC_STRUCT_MEMBER(int, origin_pid) | 159 IPC_STRUCT_MEMBER(int, origin_pid) |
160 | 160 |
161 // What this resource load is for (main frame, sub-frame, sub-resource, | 161 // What this resource load is for (main frame, sub-frame, sub-resource, |
162 // object). | 162 // object). |
163 IPC_STRUCT_MEMBER(content::ResourceType::Type, resource_type) | 163 IPC_STRUCT_MEMBER(content::ResourceType, resource_type) |
164 | 164 |
165 // The priority of this request. | 165 // The priority of this request. |
166 IPC_STRUCT_MEMBER(net::RequestPriority, priority) | 166 IPC_STRUCT_MEMBER(net::RequestPriority, priority) |
167 | 167 |
168 // Used by plugin->browser requests to get the correct net::URLRequestContext. | 168 // Used by plugin->browser requests to get the correct net::URLRequestContext. |
169 IPC_STRUCT_MEMBER(uint32, request_context) | 169 IPC_STRUCT_MEMBER(uint32, request_context) |
170 | 170 |
171 // Indicates which frame (or worker context) the request is being loaded into, | 171 // Indicates which frame (or worker context) the request is being loaded into, |
172 // or kAppCacheNoHostId. | 172 // or kAppCacheNoHostId. |
173 IPC_STRUCT_MEMBER(int, appcache_host_id) | 173 IPC_STRUCT_MEMBER(int, appcache_host_id) |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 341 |
342 // Sent when the renderer process deletes a resource loader. | 342 // Sent when the renderer process deletes a resource loader. |
343 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 343 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
344 int /* request_id */) | 344 int /* request_id */) |
345 | 345 |
346 // Sent by the renderer when a resource request changes priority. | 346 // Sent by the renderer when a resource request changes priority. |
347 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 347 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
348 int /* request_id */, | 348 int /* request_id */, |
349 net::RequestPriority, | 349 net::RequestPriority, |
350 int /* intra_priority_value */) | 350 int /* intra_priority_value */) |
OLD | NEW |