| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 #define IPC_MESSAGE_START ResourceMsgStart | 79 #define IPC_MESSAGE_START ResourceMsgStart |
| 80 #undef IPC_MESSAGE_EXPORT | 80 #undef IPC_MESSAGE_EXPORT |
| 81 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 81 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 82 | 82 |
| 83 IPC_ENUM_TRAITS_MAX_VALUE( \ | 83 IPC_ENUM_TRAITS_MAX_VALUE( \ |
| 84 net::HttpResponseInfo::ConnectionInfo, \ | 84 net::HttpResponseInfo::ConnectionInfo, \ |
| 85 net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1) | 85 net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1) |
| 86 | 86 |
| 87 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) | 87 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) |
| 88 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) | 88 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) |
| 89 IPC_STRUCT_TRAITS_MEMBER(error_code) | |
| 90 IPC_STRUCT_TRAITS_MEMBER(request_start) | 89 IPC_STRUCT_TRAITS_MEMBER(request_start) |
| 91 IPC_STRUCT_TRAITS_MEMBER(response_start) | 90 IPC_STRUCT_TRAITS_MEMBER(response_start) |
| 92 IPC_STRUCT_TRAITS_END() | 91 IPC_STRUCT_TRAITS_END() |
| 93 | 92 |
| 94 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) | 93 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) |
| 95 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) | 94 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) |
| 95 IPC_STRUCT_TRAITS_MEMBER(error_code) |
| 96 IPC_STRUCT_TRAITS_MEMBER(final_url) | 96 IPC_STRUCT_TRAITS_MEMBER(final_url) |
| 97 IPC_STRUCT_TRAITS_MEMBER(data) | 97 IPC_STRUCT_TRAITS_MEMBER(data) |
| 98 IPC_STRUCT_TRAITS_END() | 98 IPC_STRUCT_TRAITS_END() |
| 99 | 99 |
| 100 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo) | 100 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo) |
| 101 IPC_STRUCT_TRAITS_MEMBER(request_time) | 101 IPC_STRUCT_TRAITS_MEMBER(request_time) |
| 102 IPC_STRUCT_TRAITS_MEMBER(response_time) | 102 IPC_STRUCT_TRAITS_MEMBER(response_time) |
| 103 IPC_STRUCT_TRAITS_MEMBER(headers) | 103 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 104 IPC_STRUCT_TRAITS_MEMBER(mime_type) | 104 IPC_STRUCT_TRAITS_MEMBER(mime_type) |
| 105 IPC_STRUCT_TRAITS_MEMBER(charset) | 105 IPC_STRUCT_TRAITS_MEMBER(charset) |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 | 352 |
| 353 // Sent when the renderer process deletes a resource loader. | 353 // Sent when the renderer process deletes a resource loader. |
| 354 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 354 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 355 int /* request_id */) | 355 int /* request_id */) |
| 356 | 356 |
| 357 // Sent by the renderer when a resource request changes priority. | 357 // Sent by the renderer when a resource request changes priority. |
| 358 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 358 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
| 359 int /* request_id */, | 359 int /* request_id */, |
| 360 net::RequestPriority, | 360 net::RequestPriority, |
| 361 int /* intra_priority_value */) | 361 int /* intra_priority_value */) |
| OLD | NEW |