| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 IPC_ENUM_TRAITS_MAX_VALUE( \ | 84 IPC_ENUM_TRAITS_MAX_VALUE( \ |
| 85 net::HttpResponseInfo::ConnectionInfo, \ | 85 net::HttpResponseInfo::ConnectionInfo, \ |
| 86 net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1) | 86 net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1) |
| 87 | 87 |
| 88 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRequestMode, | 88 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRequestMode, |
| 89 content::FETCH_REQUEST_MODE_LAST) | 89 content::FETCH_REQUEST_MODE_LAST) |
| 90 | 90 |
| 91 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchCredentialsMode, | 91 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchCredentialsMode, |
| 92 content::FETCH_CREDENTIALS_MODE_LAST) | 92 content::FETCH_CREDENTIALS_MODE_LAST) |
| 93 | 93 |
| 94 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRedirectMode, |
| 95 content::FetchRedirectMode::LAST) |
| 96 |
| 94 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) | 97 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) |
| 95 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) | 98 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) |
| 96 IPC_STRUCT_TRAITS_MEMBER(request_start) | 99 IPC_STRUCT_TRAITS_MEMBER(request_start) |
| 97 IPC_STRUCT_TRAITS_MEMBER(response_start) | 100 IPC_STRUCT_TRAITS_MEMBER(response_start) |
| 98 IPC_STRUCT_TRAITS_END() | 101 IPC_STRUCT_TRAITS_END() |
| 99 | 102 |
| 100 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) | 103 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) |
| 101 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) | 104 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) |
| 102 IPC_STRUCT_TRAITS_MEMBER(error_code) | 105 IPC_STRUCT_TRAITS_MEMBER(error_code) |
| 103 IPC_STRUCT_TRAITS_MEMBER(final_url) | 106 IPC_STRUCT_TRAITS_MEMBER(final_url) |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 205 |
| 203 // True if the request should not be handled by the ServiceWorker. | 206 // True if the request should not be handled by the ServiceWorker. |
| 204 IPC_STRUCT_MEMBER(bool, skip_service_worker) | 207 IPC_STRUCT_MEMBER(bool, skip_service_worker) |
| 205 | 208 |
| 206 // The request mode passed to the ServiceWorker. | 209 // The request mode passed to the ServiceWorker. |
| 207 IPC_STRUCT_MEMBER(content::FetchRequestMode, fetch_request_mode) | 210 IPC_STRUCT_MEMBER(content::FetchRequestMode, fetch_request_mode) |
| 208 | 211 |
| 209 // The credentials mode passed to the ServiceWorker. | 212 // The credentials mode passed to the ServiceWorker. |
| 210 IPC_STRUCT_MEMBER(content::FetchCredentialsMode, fetch_credentials_mode) | 213 IPC_STRUCT_MEMBER(content::FetchCredentialsMode, fetch_credentials_mode) |
| 211 | 214 |
| 215 // The redirect mode used in Fetch API. |
| 216 IPC_STRUCT_MEMBER(content::FetchRedirectMode, fetch_redirect_mode) |
| 217 |
| 212 // The request context passed to the ServiceWorker. | 218 // The request context passed to the ServiceWorker. |
| 213 IPC_STRUCT_MEMBER(content::RequestContextType, fetch_request_context_type) | 219 IPC_STRUCT_MEMBER(content::RequestContextType, fetch_request_context_type) |
| 214 | 220 |
| 215 // The frame type passed to the ServiceWorker. | 221 // The frame type passed to the ServiceWorker. |
| 216 IPC_STRUCT_MEMBER(content::RequestContextFrameType, fetch_frame_type) | 222 IPC_STRUCT_MEMBER(content::RequestContextFrameType, fetch_frame_type) |
| 217 | 223 |
| 218 // Optional resource request body (may be null). | 224 // Optional resource request body (may be null). |
| 219 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>, | 225 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>, |
| 220 request_body) | 226 request_body) |
| 221 | 227 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 394 |
| 389 // Sent when the renderer process deletes a resource loader. | 395 // Sent when the renderer process deletes a resource loader. |
| 390 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 396 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 391 int /* request_id */) | 397 int /* request_id */) |
| 392 | 398 |
| 393 // Sent by the renderer when a resource request changes priority. | 399 // Sent by the renderer when a resource request changes priority. |
| 394 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 400 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
| 395 int /* request_id */, | 401 int /* request_id */, |
| 396 net::RequestPriority, | 402 net::RequestPriority, |
| 397 int /* intra_priority_value */) | 403 int /* intra_priority_value */) |
| OLD | NEW |