Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: content/common/resource_messages.h

Issue 10640019: Remove the HANDLED_EXTERNALLY status code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: revert removing DCHECK from URLRequest::DoCancel Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // 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/public/common/common_param_traits.h" 9 #include "content/public/common/common_param_traits.h"
10 #include "content/public/common/resource_response.h" 10 #include "content/public/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(content::ResourceResponseHead) 18 IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead)
19 IPC_STRUCT_TRAITS_PARENT(webkit_glue::ResourceResponseInfo) 19 IPC_STRUCT_TRAITS_PARENT(webkit_glue::ResourceResponseInfo)
20 IPC_STRUCT_TRAITS_MEMBER(status) 20 IPC_STRUCT_TRAITS_MEMBER(error_code)
21 IPC_STRUCT_TRAITS_END() 21 IPC_STRUCT_TRAITS_END()
22 22
23 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult) 23 IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult)
24 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead) 24 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead)
25 IPC_STRUCT_TRAITS_MEMBER(final_url) 25 IPC_STRUCT_TRAITS_MEMBER(final_url)
26 IPC_STRUCT_TRAITS_MEMBER(data) 26 IPC_STRUCT_TRAITS_MEMBER(data)
27 IPC_STRUCT_TRAITS_END() 27 IPC_STRUCT_TRAITS_END()
28 28
29 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::ResourceResponseInfo) 29 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::ResourceResponseInfo)
30 IPC_STRUCT_TRAITS_MEMBER(request_time) 30 IPC_STRUCT_TRAITS_MEMBER(request_time)
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 int /* encoded_data_length */) 162 int /* encoded_data_length */)
163 163
164 // Sent when some data from a resource request has been downloaded to 164 // Sent when some data from a resource request has been downloaded to
165 // file. This is only called in the 'download_to_file' case and replaces 165 // file. This is only called in the 'download_to_file' case and replaces
166 // ResourceMsg_DataReceived in the call sequence in that case. 166 // ResourceMsg_DataReceived in the call sequence in that case.
167 IPC_MESSAGE_ROUTED2(ResourceMsg_DataDownloaded, 167 IPC_MESSAGE_ROUTED2(ResourceMsg_DataDownloaded,
168 int /* request_id */, 168 int /* request_id */,
169 int /* data_len */) 169 int /* data_len */)
170 170
171 // Sent when the request has been completed. 171 // Sent when the request has been completed.
172 IPC_MESSAGE_ROUTED4(ResourceMsg_RequestComplete, 172 IPC_MESSAGE_ROUTED5(ResourceMsg_RequestComplete,
173 int /* request_id */, 173 int /* request_id */,
174 net::URLRequestStatus /* status */, 174 int /* error_code */,
175 bool /* handled_externally */,
175 std::string /* security info */, 176 std::string /* security info */,
176 base::TimeTicks /* completion_time */) 177 base::TimeTicks /* completion_time */)
177 178
178 // Resource messages sent from the renderer to the browser. 179 // Resource messages sent from the renderer to the browser.
179 180
180 // Makes a resource request via the browser. 181 // Makes a resource request via the browser.
181 IPC_MESSAGE_ROUTED2(ResourceHostMsg_RequestResource, 182 IPC_MESSAGE_ROUTED2(ResourceHostMsg_RequestResource,
182 int /* request_id */, 183 int /* request_id */,
183 ResourceHostMsg_Request) 184 ResourceHostMsg_Request)
184 185
(...skipping 24 matching lines...) Expand all
209 int /* request_id */) 210 int /* request_id */)
210 211
211 // Sent by the renderer process to acknowledge receipt of a 212 // Sent by the renderer process to acknowledge receipt of a
212 // UploadProgress message. 213 // UploadProgress message.
213 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, 214 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK,
214 int /* request_id */) 215 int /* request_id */)
215 216
216 // Sent when the renderer process deletes a resource loader. 217 // Sent when the renderer process deletes a resource loader.
217 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 218 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
218 int /* request_id */) 219 int /* request_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698