Chromium Code Reviews| 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/ct_policy_status.h" | 25 #include "net/cert/ct_policy_status.h" |
| 26 #include "net/cert/signed_certificate_timestamp.h" | 26 #include "net/cert/signed_certificate_timestamp.h" |
| 27 #include "net/cert/signed_certificate_timestamp_and_status.h" | 27 #include "net/cert/signed_certificate_timestamp_and_status.h" |
| 28 #include "net/http/http_response_info.h" | 28 #include "net/http/http_response_info.h" |
| 29 #include "net/nqe/effective_connection_type.h" | |
| 30 #include "net/ssl/ssl_info.h" | 29 #include "net/ssl/ssl_info.h" |
| 31 #include "net/url_request/redirect_info.h" | 30 #include "net/url_request/redirect_info.h" |
| 32 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h" | 31 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h" |
| 33 | 32 |
| 34 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ | 33 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ |
| 35 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ | 34 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ |
| 36 | 35 |
| 37 namespace net { | 36 namespace net { |
| 38 struct LoadTimingInfo; | 37 struct LoadTimingInfo; |
| 39 } | 38 } |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 163 | 162 |
| 164 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchCredentialsMode, | 163 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchCredentialsMode, |
| 165 content::FETCH_CREDENTIALS_MODE_LAST) | 164 content::FETCH_CREDENTIALS_MODE_LAST) |
| 166 | 165 |
| 167 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRedirectMode, | 166 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRedirectMode, |
| 168 content::FetchRedirectMode::LAST) | 167 content::FetchRedirectMode::LAST) |
| 169 | 168 |
| 170 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerMode, | 169 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerMode, |
| 171 content::ServiceWorkerMode::LAST) | 170 content::ServiceWorkerMode::LAST) |
| 172 | 171 |
| 173 IPC_ENUM_TRAITS_MAX_VALUE(net::EffectiveConnectionType, | |
| 174 net::EFFECTIVE_CONNECTION_TYPE_LAST - 1) | |
| 175 | |
| 176 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMixedContentContextType, | 172 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMixedContentContextType, |
| 177 blink::WebMixedContentContextType::kLast) | 173 blink::WebMixedContentContextType::kLast) |
| 178 | 174 |
| 179 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) | 175 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) |
| 180 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) | 176 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) |
| 181 IPC_STRUCT_TRAITS_MEMBER(request_start) | 177 IPC_STRUCT_TRAITS_MEMBER(request_start) |
| 182 IPC_STRUCT_TRAITS_MEMBER(response_start) | 178 IPC_STRUCT_TRAITS_MEMBER(response_start) |
| 183 IPC_STRUCT_TRAITS_END() | 179 IPC_STRUCT_TRAITS_END() |
| 184 | 180 |
| 185 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) | 181 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 213 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_service_worker) | 209 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_service_worker) |
| 214 IPC_STRUCT_TRAITS_MEMBER(was_fallback_required_by_service_worker) | 210 IPC_STRUCT_TRAITS_MEMBER(was_fallback_required_by_service_worker) |
| 215 IPC_STRUCT_TRAITS_MEMBER(url_list_via_service_worker) | 211 IPC_STRUCT_TRAITS_MEMBER(url_list_via_service_worker) |
| 216 IPC_STRUCT_TRAITS_MEMBER(response_type_via_service_worker) | 212 IPC_STRUCT_TRAITS_MEMBER(response_type_via_service_worker) |
| 217 IPC_STRUCT_TRAITS_MEMBER(service_worker_start_time) | 213 IPC_STRUCT_TRAITS_MEMBER(service_worker_start_time) |
| 218 IPC_STRUCT_TRAITS_MEMBER(service_worker_ready_time) | 214 IPC_STRUCT_TRAITS_MEMBER(service_worker_ready_time) |
| 219 IPC_STRUCT_TRAITS_MEMBER(is_in_cache_storage) | 215 IPC_STRUCT_TRAITS_MEMBER(is_in_cache_storage) |
| 220 IPC_STRUCT_TRAITS_MEMBER(cache_storage_cache_name) | 216 IPC_STRUCT_TRAITS_MEMBER(cache_storage_cache_name) |
| 221 IPC_STRUCT_TRAITS_MEMBER(did_service_worker_navigation_preload) | 217 IPC_STRUCT_TRAITS_MEMBER(did_service_worker_navigation_preload) |
| 222 IPC_STRUCT_TRAITS_MEMBER(previews_state) | 218 IPC_STRUCT_TRAITS_MEMBER(previews_state) |
| 223 IPC_STRUCT_TRAITS_MEMBER(effective_connection_type) | |
|
nasko
2017/05/23 21:42:04
Why is this removed from here and not the actual d
tbansal1
2017/05/23 22:37:11
Thanks. Fixed.
Also, filed crbug.com/725680 for cl
| |
| 224 IPC_STRUCT_TRAITS_MEMBER(certificate) | 219 IPC_STRUCT_TRAITS_MEMBER(certificate) |
| 225 IPC_STRUCT_TRAITS_MEMBER(cert_status) | 220 IPC_STRUCT_TRAITS_MEMBER(cert_status) |
| 226 IPC_STRUCT_TRAITS_MEMBER(ssl_connection_status) | 221 IPC_STRUCT_TRAITS_MEMBER(ssl_connection_status) |
| 227 IPC_STRUCT_TRAITS_MEMBER(ssl_key_exchange_group) | 222 IPC_STRUCT_TRAITS_MEMBER(ssl_key_exchange_group) |
| 228 IPC_STRUCT_TRAITS_MEMBER(signed_certificate_timestamps) | 223 IPC_STRUCT_TRAITS_MEMBER(signed_certificate_timestamps) |
| 229 IPC_STRUCT_TRAITS_MEMBER(cors_exposed_header_names) | 224 IPC_STRUCT_TRAITS_MEMBER(cors_exposed_header_names) |
| 230 IPC_STRUCT_TRAITS_END() | 225 IPC_STRUCT_TRAITS_END() |
| 231 | 226 |
| 232 IPC_ENUM_TRAITS_MAX_VALUE(net::URLRequest::ReferrerPolicy, | 227 IPC_ENUM_TRAITS_MAX_VALUE(net::URLRequest::ReferrerPolicy, |
| 233 net::URLRequest::MAX_REFERRER_POLICY - 1) | 228 net::URLRequest::MAX_REFERRER_POLICY - 1) |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 407 | 402 |
| 408 // Sent when the renderer process deletes a resource loader. | 403 // Sent when the renderer process deletes a resource loader. |
| 409 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 404 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 410 int /* request_id */) | 405 int /* request_id */) |
| 411 | 406 |
| 412 // Sent by the renderer when a resource request changes priority. | 407 // Sent by the renderer when a resource request changes priority. |
| 413 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 408 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
| 414 int /* request_id */, | 409 int /* request_id */, |
| 415 net::RequestPriority, | 410 net::RequestPriority, |
| 416 int /* intra_priority_value */) | 411 int /* intra_priority_value */) |
| OLD | NEW |