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

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: Renamed length_received to raw_data_length in didReceiveData on chromium side. 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"
11 #include "net/base/upload_data.h" 11 #include "net/base/upload_data.h"
12 12
13 #define IPC_MESSAGE_START ResourceMsgStart 13 #define IPC_MESSAGE_START ResourceMsgStart
14 14
15 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::ResourceResponseInfo) 15 IPC_STRUCT_TRAITS_BEGIN(webkit_glue::ResourceResponseInfo)
16 IPC_STRUCT_TRAITS_MEMBER(request_time) 16 IPC_STRUCT_TRAITS_MEMBER(request_time)
17 IPC_STRUCT_TRAITS_MEMBER(response_time) 17 IPC_STRUCT_TRAITS_MEMBER(response_time)
18 IPC_STRUCT_TRAITS_MEMBER(headers) 18 IPC_STRUCT_TRAITS_MEMBER(headers)
19 IPC_STRUCT_TRAITS_MEMBER(mime_type) 19 IPC_STRUCT_TRAITS_MEMBER(mime_type)
20 IPC_STRUCT_TRAITS_MEMBER(charset) 20 IPC_STRUCT_TRAITS_MEMBER(charset)
21 IPC_STRUCT_TRAITS_MEMBER(security_info) 21 IPC_STRUCT_TRAITS_MEMBER(security_info)
22 IPC_STRUCT_TRAITS_MEMBER(content_length) 22 IPC_STRUCT_TRAITS_MEMBER(content_length)
23 IPC_STRUCT_TRAITS_MEMBER(raw_data_length)
23 IPC_STRUCT_TRAITS_MEMBER(appcache_id) 24 IPC_STRUCT_TRAITS_MEMBER(appcache_id)
24 IPC_STRUCT_TRAITS_MEMBER(appcache_manifest_url) 25 IPC_STRUCT_TRAITS_MEMBER(appcache_manifest_url)
25 IPC_STRUCT_TRAITS_MEMBER(connection_id) 26 IPC_STRUCT_TRAITS_MEMBER(connection_id)
26 IPC_STRUCT_TRAITS_MEMBER(connection_reused) 27 IPC_STRUCT_TRAITS_MEMBER(connection_reused)
27 IPC_STRUCT_TRAITS_MEMBER(load_timing) 28 IPC_STRUCT_TRAITS_MEMBER(load_timing)
28 IPC_STRUCT_TRAITS_MEMBER(devtools_info) 29 IPC_STRUCT_TRAITS_MEMBER(devtools_info)
29 IPC_STRUCT_TRAITS_MEMBER(download_file_path) 30 IPC_STRUCT_TRAITS_MEMBER(download_file_path)
30 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_spdy) 31 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_spdy)
31 IPC_STRUCT_TRAITS_MEMBER(was_npn_negotiated) 32 IPC_STRUCT_TRAITS_MEMBER(was_npn_negotiated)
32 IPC_STRUCT_TRAITS_MEMBER(was_alternate_protocol_available) 33 IPC_STRUCT_TRAITS_MEMBER(was_alternate_protocol_available)
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Sent when the request has been redirected. The receiver is expected to 115 // 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 116 // respond with either a FollowRedirect message (if the redirect is to be
116 // followed) or a CancelRequest message (if it should not be followed). 117 // followed) or a CancelRequest message (if it should not be followed).
117 IPC_MESSAGE_ROUTED3(ResourceMsg_ReceivedRedirect, 118 IPC_MESSAGE_ROUTED3(ResourceMsg_ReceivedRedirect,
118 int /* request_id */, 119 int /* request_id */,
119 GURL /* new_url */, 120 GURL /* new_url */,
120 ResourceResponseHead) 121 ResourceResponseHead)
121 122
122 // Sent when some data from a resource request is ready. The handle should 123 // Sent when some data from a resource request is ready. The handle should
123 // already be mapped into the process that receives this message. 124 // already be mapped into the process that receives this message.
124 IPC_MESSAGE_ROUTED3(ResourceMsg_DataReceived, 125 IPC_MESSAGE_ROUTED4(ResourceMsg_DataReceived,
125 int /* request_id */, 126 int /* request_id */,
126 base::SharedMemoryHandle /* data */, 127 base::SharedMemoryHandle /* data */,
127 int /* data_len */) 128 int /* data_len */,
129 int /* raw_data_length */)
128 130
129 // Sent when some data from a resource request has been downloaded to 131 // 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 132 // file. This is only called in the 'download_to_file' case and replaces
131 // ResourceMsg_DataReceived in the call sequence in that case. 133 // ResourceMsg_DataReceived in the call sequence in that case.
132 IPC_MESSAGE_ROUTED2(ResourceMsg_DataDownloaded, 134 IPC_MESSAGE_ROUTED2(ResourceMsg_DataDownloaded,
133 int /* request_id */, 135 int /* request_id */,
134 int /* data_len */) 136 int /* data_len */)
135 137
136 // Sent when the request has been completed. 138 // Sent when the request has been completed.
137 IPC_MESSAGE_ROUTED4(ResourceMsg_RequestComplete, 139 IPC_MESSAGE_ROUTED4(ResourceMsg_RequestComplete,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 int /* request_id */) 176 int /* request_id */)
175 177
176 // Sent by the renderer process to acknowledge receipt of a 178 // Sent by the renderer process to acknowledge receipt of a
177 // UploadProgress message. 179 // UploadProgress message.
178 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK, 180 IPC_MESSAGE_ROUTED1(ResourceHostMsg_UploadProgress_ACK,
179 int /* request_id */) 181 int /* request_id */)
180 182
181 // Sent when the renderer process deletes a resource loader. 183 // Sent when the renderer process deletes a resource loader.
182 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 184 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
183 int /* request_id */) 185 int /* request_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698