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

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

Issue 6771043: Enabled actual transfer size in chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
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/resource_response.h" 9 #include "content/common/resource_response.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Sent when the request has been redirected. The receiver is expected to 114 // Sent when the request has been redirected. The receiver is expected to
115 // respond with either a FollowRedirect message (if the redirect is to be 115 // respond with either a FollowRedirect message (if the redirect is to be
116 // followed) or a CancelRequest message (if it should not be followed). 116 // followed) or a CancelRequest message (if it should not be followed).
117 IPC_MESSAGE_ROUTED3(ResourceMsg_ReceivedRedirect, 117 IPC_MESSAGE_ROUTED3(ResourceMsg_ReceivedRedirect,
118 int /* request_id */, 118 int /* request_id */,
119 GURL /* new_url */, 119 GURL /* new_url */,
120 ResourceResponseHead) 120 ResourceResponseHead)
121 121
122 // Sent when some data from a resource request is ready. The handle should 122 // Sent when some data from a resource request is ready. The handle should
123 // already be mapped into the process that receives this message. 123 // already be mapped into the process that receives this message.
124 IPC_MESSAGE_ROUTED3(ResourceMsg_DataReceived, 124 IPC_MESSAGE_ROUTED4(ResourceMsg_DataReceived,
125 int /* request_id */, 125 int /* request_id */,
126 base::SharedMemoryHandle /* data */, 126 base::SharedMemoryHandle /* data */,
127 int /* data_len */) 127 int /* data_len */,
128 int /* length_received */)
128 129
129 // Sent when some data from a resource request has been downloaded to 130 // Sent when some data from a resource request has been downloaded to
130 // file. This is only called in the 'download_to_file' case and replaces 131 // file. This is only called in the 'download_to_file' case and replaces
131 // ResourceMsg_DataReceived in the call sequence in that case. 132 // ResourceMsg_DataReceived in the call sequence in that case.
132 IPC_MESSAGE_ROUTED2(ResourceMsg_DataDownloaded, 133 IPC_MESSAGE_ROUTED2(ResourceMsg_DataDownloaded,
133 int /* request_id */, 134 int /* request_id */,
134 int /* data_len */) 135 int /* data_len */)
135 136
136 // Sent when the request has been completed. 137 // Sent when the request has been completed.
137 IPC_MESSAGE_ROUTED4(ResourceMsg_RequestComplete, 138 IPC_MESSAGE_ROUTED4(ResourceMsg_RequestComplete,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 int /* request_id */) 175 int /* request_id */)
175 176
176 // Sent by the renderer process to acknowledge receipt of a 177 // Sent by the renderer process to acknowledge receipt of a
177 // UploadProgress message. 178 // UploadProgress message.
178 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, 179 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK,
179 int /* request_id */) 180 int /* request_id */)
180 181
181 // Sent when the renderer process deletes a resource loader. 182 // Sent when the renderer process deletes a resource loader.
182 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 183 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
183 int /* request_id */) 184 int /* request_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698