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/cert/signed_certificate_timestamp_and_status.h" | 26 #include "net/cert/signed_certificate_timestamp_and_status.h" |
27 #include "net/http/http_response_info.h" | 27 #include "net/http/http_response_info.h" |
28 #include "net/nqe/effective_connection_type.h" | 28 #include "net/nqe/effective_connection_type.h" |
29 #include "net/url_request/redirect_info.h" | 29 #include "net/url_request/redirect_info.h" |
| 30 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h" |
30 | 31 |
31 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ | 32 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ |
32 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ | 33 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ |
33 | 34 |
34 namespace net { | 35 namespace net { |
35 struct LoadTimingInfo; | 36 struct LoadTimingInfo; |
36 } | 37 } |
37 | 38 |
38 namespace content { | 39 namespace content { |
39 struct ResourceDevToolsInfo; | 40 struct ResourceDevToolsInfo; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 129 |
129 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRedirectMode, | 130 IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRedirectMode, |
130 content::FetchRedirectMode::LAST) | 131 content::FetchRedirectMode::LAST) |
131 | 132 |
132 IPC_ENUM_TRAITS_MAX_VALUE(content::SkipServiceWorker, | 133 IPC_ENUM_TRAITS_MAX_VALUE(content::SkipServiceWorker, |
133 content::SkipServiceWorker::LAST) | 134 content::SkipServiceWorker::LAST) |
134 | 135 |
135 IPC_ENUM_TRAITS_MAX_VALUE(net::EffectiveConnectionType, | 136 IPC_ENUM_TRAITS_MAX_VALUE(net::EffectiveConnectionType, |
136 net::EFFECTIVE_CONNECTION_TYPE_LAST - 1) | 137 net::EFFECTIVE_CONNECTION_TYPE_LAST - 1) |
137 | 138 |
| 139 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebMixedContentContextType, |
| 140 blink::WebMixedContentContextType::ShouldBeBlockable) |
| 141 |
138 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) | 142 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) |
139 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) | 143 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) |
140 IPC_STRUCT_TRAITS_MEMBER(request_start) | 144 IPC_STRUCT_TRAITS_MEMBER(request_start) |
141 IPC_STRUCT_TRAITS_MEMBER(response_start) | 145 IPC_STRUCT_TRAITS_MEMBER(response_start) |
142 IPC_STRUCT_TRAITS_END() | 146 IPC_STRUCT_TRAITS_END() |
143 | 147 |
144 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) | 148 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) |
145 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) | 149 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) |
146 IPC_STRUCT_TRAITS_MEMBER(error_code) | 150 IPC_STRUCT_TRAITS_MEMBER(error_code) |
147 IPC_STRUCT_TRAITS_MEMBER(final_url) | 151 IPC_STRUCT_TRAITS_MEMBER(final_url) |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 IPC_STRUCT_TRAITS_MEMBER(request_context) | 227 IPC_STRUCT_TRAITS_MEMBER(request_context) |
224 IPC_STRUCT_TRAITS_MEMBER(appcache_host_id) | 228 IPC_STRUCT_TRAITS_MEMBER(appcache_host_id) |
225 IPC_STRUCT_TRAITS_MEMBER(should_reset_appcache) | 229 IPC_STRUCT_TRAITS_MEMBER(should_reset_appcache) |
226 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id) | 230 IPC_STRUCT_TRAITS_MEMBER(service_worker_provider_id) |
227 IPC_STRUCT_TRAITS_MEMBER(originated_from_service_worker) | 231 IPC_STRUCT_TRAITS_MEMBER(originated_from_service_worker) |
228 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) | 232 IPC_STRUCT_TRAITS_MEMBER(skip_service_worker) |
229 IPC_STRUCT_TRAITS_MEMBER(fetch_request_mode) | 233 IPC_STRUCT_TRAITS_MEMBER(fetch_request_mode) |
230 IPC_STRUCT_TRAITS_MEMBER(fetch_credentials_mode) | 234 IPC_STRUCT_TRAITS_MEMBER(fetch_credentials_mode) |
231 IPC_STRUCT_TRAITS_MEMBER(fetch_redirect_mode) | 235 IPC_STRUCT_TRAITS_MEMBER(fetch_redirect_mode) |
232 IPC_STRUCT_TRAITS_MEMBER(fetch_request_context_type) | 236 IPC_STRUCT_TRAITS_MEMBER(fetch_request_context_type) |
| 237 IPC_STRUCT_TRAITS_MEMBER(fetch_mixed_content_context_type) |
233 IPC_STRUCT_TRAITS_MEMBER(fetch_frame_type) | 238 IPC_STRUCT_TRAITS_MEMBER(fetch_frame_type) |
234 IPC_STRUCT_TRAITS_MEMBER(request_body) | 239 IPC_STRUCT_TRAITS_MEMBER(request_body) |
235 IPC_STRUCT_TRAITS_MEMBER(download_to_file) | 240 IPC_STRUCT_TRAITS_MEMBER(download_to_file) |
236 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) | 241 IPC_STRUCT_TRAITS_MEMBER(has_user_gesture) |
237 IPC_STRUCT_TRAITS_MEMBER(enable_load_timing) | 242 IPC_STRUCT_TRAITS_MEMBER(enable_load_timing) |
238 IPC_STRUCT_TRAITS_MEMBER(enable_upload_progress) | 243 IPC_STRUCT_TRAITS_MEMBER(enable_upload_progress) |
239 IPC_STRUCT_TRAITS_MEMBER(do_not_prompt_for_login) | 244 IPC_STRUCT_TRAITS_MEMBER(do_not_prompt_for_login) |
240 IPC_STRUCT_TRAITS_MEMBER(render_frame_id) | 245 IPC_STRUCT_TRAITS_MEMBER(render_frame_id) |
241 IPC_STRUCT_TRAITS_MEMBER(is_main_frame) | 246 IPC_STRUCT_TRAITS_MEMBER(is_main_frame) |
242 IPC_STRUCT_TRAITS_MEMBER(parent_is_main_frame) | 247 IPC_STRUCT_TRAITS_MEMBER(parent_is_main_frame) |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 376 |
372 // Sent when the renderer process deletes a resource loader. | 377 // Sent when the renderer process deletes a resource loader. |
373 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 378 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
374 int /* request_id */) | 379 int /* request_id */) |
375 | 380 |
376 // Sent by the renderer when a resource request changes priority. | 381 // Sent by the renderer when a resource request changes priority. |
377 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 382 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
378 int /* request_id */, | 383 int /* request_id */, |
379 net::RequestPriority, | 384 net::RequestPriority, |
380 int /* intra_priority_value */) | 385 int /* intra_priority_value */) |
OLD | NEW |