| 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_priority_change_info.h" |
| 17 #include "content/common/resource_request.h" | 18 #include "content/common/resource_request.h" |
| 18 #include "content/common/resource_request_body_impl.h" | 19 #include "content/common/resource_request_body_impl.h" |
| 19 #include "content/common/resource_request_completion_status.h" | 20 #include "content/common/resource_request_completion_status.h" |
| 20 #include "content/common/service_worker/service_worker_types.h" | 21 #include "content/common/service_worker/service_worker_types.h" |
| 21 #include "content/public/common/common_param_traits.h" | 22 #include "content/public/common/common_param_traits.h" |
| 22 #include "content/public/common/resource_response.h" | 23 #include "content/public/common/resource_response.h" |
| 23 #include "ipc/ipc_message_macros.h" | 24 #include "ipc/ipc_message_macros.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 | 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 { |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // Parameters for a ResourceMsg_RequestComplete | 256 // Parameters for a ResourceMsg_RequestComplete |
| 257 IPC_STRUCT_TRAITS_BEGIN(content::ResourceRequestCompletionStatus) | 257 IPC_STRUCT_TRAITS_BEGIN(content::ResourceRequestCompletionStatus) |
| 258 IPC_STRUCT_TRAITS_MEMBER(error_code) | 258 IPC_STRUCT_TRAITS_MEMBER(error_code) |
| 259 IPC_STRUCT_TRAITS_MEMBER(was_ignored_by_handler) | 259 IPC_STRUCT_TRAITS_MEMBER(was_ignored_by_handler) |
| 260 IPC_STRUCT_TRAITS_MEMBER(exists_in_cache) | 260 IPC_STRUCT_TRAITS_MEMBER(exists_in_cache) |
| 261 IPC_STRUCT_TRAITS_MEMBER(completion_time) | 261 IPC_STRUCT_TRAITS_MEMBER(completion_time) |
| 262 IPC_STRUCT_TRAITS_MEMBER(encoded_data_length) | 262 IPC_STRUCT_TRAITS_MEMBER(encoded_data_length) |
| 263 IPC_STRUCT_TRAITS_MEMBER(encoded_body_length) | 263 IPC_STRUCT_TRAITS_MEMBER(encoded_body_length) |
| 264 IPC_STRUCT_TRAITS_END() | 264 IPC_STRUCT_TRAITS_END() |
| 265 | 265 |
| 266 // Parameters for ResourceHostMsg_DidChangePriority |
| 267 IPC_STRUCT_TRAITS_BEGIN(content::ResourcePriorityChangeInfo) |
| 268 IPC_STRUCT_TRAITS_MEMBER(request_id) |
| 269 IPC_STRUCT_TRAITS_MEMBER(priority) |
| 270 IPC_STRUCT_TRAITS_MEMBER(intra_priority_value) |
| 271 IPC_STRUCT_TRAITS_END() |
| 272 |
| 266 // Resource messages sent from the browser to the renderer. | 273 // Resource messages sent from the browser to the renderer. |
| 267 | 274 |
| 268 // Sent when the headers are available for a resource request. | 275 // Sent when the headers are available for a resource request. |
| 269 IPC_MESSAGE_CONTROL2(ResourceMsg_ReceivedResponse, | 276 IPC_MESSAGE_CONTROL2(ResourceMsg_ReceivedResponse, |
| 270 int /* request_id */, | 277 int /* request_id */, |
| 271 content::ResourceResponseHead) | 278 content::ResourceResponseHead) |
| 272 | 279 |
| 273 // Sent when cached metadata from a resource request is ready. | 280 // Sent when cached metadata from a resource request is ready. |
| 274 IPC_MESSAGE_CONTROL2(ResourceMsg_ReceivedCachedMetadata, | 281 IPC_MESSAGE_CONTROL2(ResourceMsg_ReceivedCachedMetadata, |
| 275 int /* request_id */, | 282 int /* request_id */, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 373 |
| 367 // Sent by the renderer process to acknowledge receipt of a | 374 // Sent by the renderer process to acknowledge receipt of a |
| 368 // UploadProgress message. | 375 // UploadProgress message. |
| 369 IPC_MESSAGE_CONTROL1(ResourceHostMsg_UploadProgress_ACK, | 376 IPC_MESSAGE_CONTROL1(ResourceHostMsg_UploadProgress_ACK, |
| 370 int /* request_id */) | 377 int /* request_id */) |
| 371 | 378 |
| 372 // Sent when the renderer process deletes a resource loader. | 379 // Sent when the renderer process deletes a resource loader. |
| 373 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 380 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 374 int /* request_id */) | 381 int /* request_id */) |
| 375 | 382 |
| 376 // Sent by the renderer when a resource request changes priority. | 383 // Sent by the renderer when resource requests changes priority. |
| 377 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 384 IPC_MESSAGE_CONTROL1(ResourceHostMsg_DidChangePriority, |
| 378 int /* request_id */, | 385 std::vector<content::ResourcePriorityChangeInfo>); |
| 379 net::RequestPriority, | |
| 380 int /* intra_priority_value */) | |
| OLD | NEW |