| 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 | 10 |
| 11 #include <stdint.h> | 11 #include <stdint.h> |
| 12 | 12 |
| 13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
| 14 #include "base/process/process.h" | 14 #include "base/process/process.h" |
| 15 #include "content/common/content_param_traits_macros.h" | 15 #include "content/common/content_param_traits_macros.h" |
| 16 #include "content/common/navigation_params.h" | 16 #include "content/common/navigation_params.h" |
| 17 #include "content/common/resource_request.h" | 17 #include "content/common/resource_request.h" |
| 18 #include "content/common/resource_request_body_impl.h" | 18 #include "content/common/resource_request_body_impl.h" |
| 19 #include "content/common/resource_request_completion_status.h" | 19 #include "content/common/resource_request_completion_status.h" |
| 20 #include "content/common/service_worker/service_worker_types.h" | 20 #include "content/common/service_worker/service_worker_types.h" |
| 21 #include "content/public/common/common_param_traits.h" | 21 #include "content/public/common/common_param_traits.h" |
| 22 #include "content/public/common/resource_response.h" | 22 #include "content/public/common/resource_response.h" |
| 23 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
| 24 #include "net/base/request_priority.h" | 24 #include "net/base/request_priority.h" |
| 25 #include "net/cert/signed_certificate_timestamp.h" | 25 #include "net/cert/signed_certificate_timestamp.h" |
| 26 #include "net/http/http_response_info.h" | 26 #include "net/http/http_response_info.h" |
| 27 #include "net/nqe/network_quality_estimator.h" | 27 #include "net/nqe/effective_connection_type.h" |
| 28 #include "net/ssl/signed_certificate_timestamp_and_status.h" | 28 #include "net/ssl/signed_certificate_timestamp_and_status.h" |
| 29 #include "net/url_request/redirect_info.h" | 29 #include "net/url_request/redirect_info.h" |
| 30 | 30 |
| 31 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ | 31 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ |
| 32 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ | 32 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ |
| 33 | 33 |
| 34 namespace net { | 34 namespace net { |
| 35 struct LoadTimingInfo; | 35 struct LoadTimingInfo; |
| 36 } | 36 } |
| 37 | 37 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchCredentialsMode, | 126 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchCredentialsMode, |
| 127 content::FETCH_CREDENTIALS_MODE_LAST) | 127 content::FETCH_CREDENTIALS_MODE_LAST) |
| 128 | 128 |
| 129 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRedirectMode, | 129 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRedirectMode, |
| 130 content::FetchRedirectMode::LAST) | 130 content::FetchRedirectMode::LAST) |
| 131 | 131 |
| 132 IPC_ENUM_TRAITS_MAX_VALUE(content::SkipServiceWorker, | 132 IPC_ENUM_TRAITS_MAX_VALUE(content::SkipServiceWorker, |
| 133 content::SkipServiceWorker::LAST) | 133 content::SkipServiceWorker::LAST) |
| 134 | 134 |
| 135 IPC_ENUM_TRAITS_MAX_VALUE( | 135 IPC_ENUM_TRAITS_MAX_VALUE(net::EffectiveConnectionType, |
| 136 net::NetworkQualityEstimator::EffectiveConnectionType, | 136 net::EFFECTIVE_CONNECTION_TYPE_LAST - 1) |
| 137 net::NetworkQualityEstimator::EFFECTIVE_CONNECTION_TYPE_LAST - 1) | |
| 138 | 137 |
| 139 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) | 138 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) |
| 140 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) | 139 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) |
| 141 IPC_STRUCT_TRAITS_MEMBER(request_start) | 140 IPC_STRUCT_TRAITS_MEMBER(request_start) |
| 142 IPC_STRUCT_TRAITS_MEMBER(response_start) | 141 IPC_STRUCT_TRAITS_MEMBER(response_start) |
| 143 IPC_STRUCT_TRAITS_END() | 142 IPC_STRUCT_TRAITS_END() |
| 144 | 143 |
| 145 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) | 144 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) |
| 146 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) | 145 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) |
| 147 IPC_STRUCT_TRAITS_MEMBER(error_code) | 146 IPC_STRUCT_TRAITS_MEMBER(error_code) |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 | 375 |
| 377 // Sent when the renderer process deletes a resource loader. | 376 // Sent when the renderer process deletes a resource loader. |
| 378 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 377 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 379 int /* request_id */) | 378 int /* request_id */) |
| 380 | 379 |
| 381 // Sent by the renderer when a resource request changes priority. | 380 // Sent by the renderer when a resource request changes priority. |
| 382 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 381 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
| 383 int /* request_id */, | 382 int /* request_id */, |
| 384 net::RequestPriority, | 383 net::RequestPriority, |
| 385 int /* intra_priority_value */) | 384 int /* intra_priority_value */) |
| OLD | NEW |