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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 IPC_STRUCT_MEMBER(uint32, request_context) | 178 IPC_STRUCT_MEMBER(uint32, request_context) |
179 | 179 |
180 // Indicates which frame (or worker context) the request is being loaded into, | 180 // Indicates which frame (or worker context) the request is being loaded into, |
181 // or kAppCacheNoHostId. | 181 // or kAppCacheNoHostId. |
182 IPC_STRUCT_MEMBER(int, appcache_host_id) | 182 IPC_STRUCT_MEMBER(int, appcache_host_id) |
183 | 183 |
184 // Indicates which frame (or worker context) the request is being loaded into, | 184 // Indicates which frame (or worker context) the request is being loaded into, |
185 // or kInvalidServiceWorkerProviderId. | 185 // or kInvalidServiceWorkerProviderId. |
186 IPC_STRUCT_MEMBER(int, service_worker_provider_id) | 186 IPC_STRUCT_MEMBER(int, service_worker_provider_id) |
187 | 187 |
| 188 // True if the request should not be handled by the ServiceWorker. |
| 189 IPC_STRUCT_MEMBER(bool, skip_service_worker) |
| 190 |
188 // Optional resource request body (may be null). | 191 // Optional resource request body (may be null). |
189 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>, | 192 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>, |
190 request_body) | 193 request_body) |
191 | 194 |
192 IPC_STRUCT_MEMBER(bool, download_to_file) | 195 IPC_STRUCT_MEMBER(bool, download_to_file) |
193 | 196 |
194 // True if the request was user initiated. | 197 // True if the request was user initiated. |
195 IPC_STRUCT_MEMBER(bool, has_user_gesture) | 198 IPC_STRUCT_MEMBER(bool, has_user_gesture) |
196 | 199 |
197 // True if load timing data should be collected for request. | 200 // True if load timing data should be collected for request. |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 355 |
353 // Sent when the renderer process deletes a resource loader. | 356 // Sent when the renderer process deletes a resource loader. |
354 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 357 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
355 int /* request_id */) | 358 int /* request_id */) |
356 | 359 |
357 // Sent by the renderer when a resource request changes priority. | 360 // Sent by the renderer when a resource request changes priority. |
358 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 361 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
359 int /* request_id */, | 362 int /* request_id */, |
360 net::RequestPriority, | 363 net::RequestPriority, |
361 int /* intra_priority_value */) | 364 int /* intra_priority_value */) |
OLD | NEW |