OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Multiply-included message file, hence no include guard. | 7 // Multiply-included message file, hence no include guard. |
8 #include "base/shared_memory.h" | 8 #include "base/shared_memory.h" |
9 #include "content/common/page_transition_types.h" | 9 #include "content/common/common_param_traits.h" |
10 #include "content/common/resource_response.h" | 10 #include "content/common/resource_response.h" |
11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
12 #include "net/base/upload_data.h" | 12 #include "net/base/upload_data.h" |
13 | 13 |
14 #define IPC_MESSAGE_START ResourceMsgStart | 14 #define IPC_MESSAGE_START ResourceMsgStart |
15 #undef IPC_MESSAGE_EXPORT | 15 #undef IPC_MESSAGE_EXPORT |
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
17 | 17 |
18 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::ResourceResponseInfo) | 18 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::ResourceResponseInfo) |
19 IPC_STRUCT_TRAITS_MEMBER(request_time) | 19 IPC_STRUCT_TRAITS_MEMBER(request_time) |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // True if the request was user initiated. | 96 // True if the request was user initiated. |
97 IPC_STRUCT_MEMBER(bool, has_user_gesture) | 97 IPC_STRUCT_MEMBER(bool, has_user_gesture) |
98 | 98 |
99 // True if |frame_id| is the main frame of a RenderView. | 99 // True if |frame_id| is the main frame of a RenderView. |
100 IPC_STRUCT_MEMBER(bool, is_main_frame) | 100 IPC_STRUCT_MEMBER(bool, is_main_frame) |
101 | 101 |
102 // Identifies the frame within the RenderView that sent the request. | 102 // Identifies the frame within the RenderView that sent the request. |
103 // -1 if unknown / invalid. | 103 // -1 if unknown / invalid. |
104 IPC_STRUCT_MEMBER(int64, frame_id) | 104 IPC_STRUCT_MEMBER(int64, frame_id) |
105 | 105 |
106 IPC_STRUCT_MEMBER(PageTransition::Type, transition_type) | 106 IPC_STRUCT_MEMBER(content::PageTransition, transition_type) |
107 IPC_STRUCT_END() | 107 IPC_STRUCT_END() |
108 | 108 |
109 // Resource messages sent from the browser to the renderer. | 109 // Resource messages sent from the browser to the renderer. |
110 | 110 |
111 // Sent when the headers are available for a resource request. | 111 // Sent when the headers are available for a resource request. |
112 IPC_MESSAGE_ROUTED2(ResourceMsg_ReceivedResponse, | 112 IPC_MESSAGE_ROUTED2(ResourceMsg_ReceivedResponse, |
113 int /* request_id */, | 113 int /* request_id */, |
114 ResourceResponseHead) | 114 ResourceResponseHead) |
115 | 115 |
116 // Sent when cached metadata from a resource request is ready. | 116 // Sent when cached metadata from a resource request is ready. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 int /* request_id */) | 195 int /* request_id */) |
196 | 196 |
197 // Sent by the renderer process to acknowledge receipt of a | 197 // Sent by the renderer process to acknowledge receipt of a |
198 // UploadProgress message. | 198 // UploadProgress message. |
199 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, | 199 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, |
200 int /* request_id */) | 200 int /* request_id */) |
201 | 201 |
202 // Sent when the renderer process deletes a resource loader. | 202 // Sent when the renderer process deletes a resource loader. |
203 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 203 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
204 int /* request_id */) | 204 int /* request_id */) |
OLD | NEW |