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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 #define IPC_MESSAGE_START ResourceMsgStart | 78 #define IPC_MESSAGE_START ResourceMsgStart |
79 #undef IPC_MESSAGE_EXPORT | 79 #undef IPC_MESSAGE_EXPORT |
80 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 80 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
81 | 81 |
82 IPC_ENUM_TRAITS_MAX_VALUE( \ | 82 IPC_ENUM_TRAITS_MAX_VALUE( \ |
83 net::HttpResponseInfo::ConnectionInfo, \ | 83 net::HttpResponseInfo::ConnectionInfo, \ |
84 net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1) | 84 net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1) |
85 | 85 |
86 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) | 86 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead) |
87 IPC_STRUCT_TRAITS_PARENT(webkit_glue::ResourceResponseInfo) | 87 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo) |
88 IPC_STRUCT_TRAITS_MEMBER(error_code) | 88 IPC_STRUCT_TRAITS_MEMBER(error_code) |
89 IPC_STRUCT_TRAITS_MEMBER(request_start) | 89 IPC_STRUCT_TRAITS_MEMBER(request_start) |
90 IPC_STRUCT_TRAITS_MEMBER(response_start) | 90 IPC_STRUCT_TRAITS_MEMBER(response_start) |
91 IPC_STRUCT_TRAITS_END() | 91 IPC_STRUCT_TRAITS_END() |
92 | 92 |
93 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) | 93 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) |
94 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) | 94 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) |
95 IPC_STRUCT_TRAITS_MEMBER(final_url) | 95 IPC_STRUCT_TRAITS_MEMBER(final_url) |
96 IPC_STRUCT_TRAITS_MEMBER(data) | 96 IPC_STRUCT_TRAITS_MEMBER(data) |
97 IPC_STRUCT_TRAITS_END() | 97 IPC_STRUCT_TRAITS_END() |
98 | 98 |
99 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::ResourceResponseInfo) | 99 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo) |
100 IPC_STRUCT_TRAITS_MEMBER(request_time) | 100 IPC_STRUCT_TRAITS_MEMBER(request_time) |
101 IPC_STRUCT_TRAITS_MEMBER(response_time) | 101 IPC_STRUCT_TRAITS_MEMBER(response_time) |
102 IPC_STRUCT_TRAITS_MEMBER(headers) | 102 IPC_STRUCT_TRAITS_MEMBER(headers) |
103 IPC_STRUCT_TRAITS_MEMBER(mime_type) | 103 IPC_STRUCT_TRAITS_MEMBER(mime_type) |
104 IPC_STRUCT_TRAITS_MEMBER(charset) | 104 IPC_STRUCT_TRAITS_MEMBER(charset) |
105 IPC_STRUCT_TRAITS_MEMBER(security_info) | 105 IPC_STRUCT_TRAITS_MEMBER(security_info) |
106 IPC_STRUCT_TRAITS_MEMBER(content_length) | 106 IPC_STRUCT_TRAITS_MEMBER(content_length) |
107 IPC_STRUCT_TRAITS_MEMBER(encoded_data_length) | 107 IPC_STRUCT_TRAITS_MEMBER(encoded_data_length) |
108 IPC_STRUCT_TRAITS_MEMBER(appcache_id) | 108 IPC_STRUCT_TRAITS_MEMBER(appcache_id) |
109 IPC_STRUCT_TRAITS_MEMBER(appcache_manifest_url) | 109 IPC_STRUCT_TRAITS_MEMBER(appcache_manifest_url) |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 339 |
340 // Sent when the renderer process deletes a resource loader. | 340 // Sent when the renderer process deletes a resource loader. |
341 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 341 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
342 int /* request_id */) | 342 int /* request_id */) |
343 | 343 |
344 // Sent by the renderer when a resource request changes priority. | 344 // Sent by the renderer when a resource request changes priority. |
345 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 345 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
346 int /* request_id */, | 346 int /* request_id */, |
347 net::RequestPriority, | 347 net::RequestPriority, |
348 int /* intra_priority_value */) | 348 int /* intra_priority_value */) |
OLD | NEW |