blob: e35a88e06cac909adb027ecd3008a12f431df8c4 [file] [log] [blame]
[email protected]b9fd01ba2012-02-28 01:50:401// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]94dc971d2011-03-05 19:08:322// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// IPC messages for resource loading.
[email protected]a17df45d2013-02-15 11:12:466//
7// NOTE: All messages must send an |int request_id| as their first parameter.
[email protected]94dc971d2011-03-05 19:08:328
[email protected]e503a122011-03-17 18:20:529// Multiply-included message file, hence no include guard.
[email protected]9cc992b2013-07-17 06:30:3610#include "base/memory/shared_memory.h"
[email protected]71ed8e022013-07-25 14:39:5711#include "base/process/process.h"
[email protected]9d8ea302012-09-25 15:04:2212#include "content/common/content_param_traits_macros.h"
[email protected]14f154a2014-03-11 16:24:4113#include "content/common/resource_request_body.h"
horo7e40ec72014-09-30 09:23:4614#include "content/common/service_worker/service_worker_types.h"
[email protected]19a5c7442011-10-21 20:00:4115#include "content/public/common/common_param_traits.h"
[email protected]2336ffe2011-11-24 01:23:3416#include "content/public/common/resource_response.h"
[email protected]94dc971d2011-03-05 19:08:3217#include "ipc/ipc_message_macros.h"
[email protected]a9344092d2013-02-27 00:56:4518#include "net/base/request_priority.h"
[email protected]92a98df92013-06-06 02:47:4219#include "net/http/http_response_info.h"
[email protected]cba24642014-08-15 20:49:5920#include "net/url_request/redirect_info.h"
[email protected]94dc971d2011-03-05 19:08:3221
[email protected]9d8ea302012-09-25 15:04:2222#ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_
23#define CONTENT_COMMON_RESOURCE_MESSAGES_H_
24
[email protected]ec298802013-03-27 16:45:0725namespace net {
26struct LoadTimingInfo;
27}
28
[email protected]48ffdf72014-05-31 02:16:5729namespace content {
[email protected]9d8ea302012-09-25 15:04:2230struct ResourceDevToolsInfo;
[email protected]9d8ea302012-09-25 15:04:2231}
32
33namespace IPC {
34
35template <>
36struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > {
37 typedef scoped_refptr<net::HttpResponseHeaders> param_type;
38 static void Write(Message* m, const param_type& p);
39 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
40 static void Log(const param_type& p, std::string* l);
41};
42
43template <>
[email protected]cd501a72014-08-22 19:58:3144struct CONTENT_EXPORT ParamTraits<storage::DataElement> {
45 typedef storage::DataElement param_type;
[email protected]9d8ea302012-09-25 15:04:2246 static void Write(Message* m, const param_type& p);
47 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
48 static void Log(const param_type& p, std::string* l);
49};
50
51template <>
[email protected]48ffdf72014-05-31 02:16:5752struct ParamTraits<scoped_refptr<content::ResourceDevToolsInfo> > {
53 typedef scoped_refptr<content::ResourceDevToolsInfo> param_type;
[email protected]9d8ea302012-09-25 15:04:2254 static void Write(Message* m, const param_type& p);
55 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
56 static void Log(const param_type& p, std::string* l);
57};
58
59template <>
[email protected]ec298802013-03-27 16:45:0760struct ParamTraits<net::LoadTimingInfo> {
61 typedef net::LoadTimingInfo param_type;
[email protected]9d8ea302012-09-25 15:04:2262 static void Write(Message* m, const param_type& p);
63 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
64 static void Log(const param_type& p, std::string* l);
65};
66
67template <>
[email protected]14f154a2014-03-11 16:24:4168struct ParamTraits<scoped_refptr<content::ResourceRequestBody> > {
69 typedef scoped_refptr<content::ResourceRequestBody> param_type;
[email protected]9d8ea302012-09-25 15:04:2270 static void Write(Message* m, const param_type& p);
71 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
72 static void Log(const param_type& p, std::string* l);
73};
74
75} // namespace IPC
76
77#endif // CONTENT_COMMON_RESOURCE_MESSAGES_H_
78
79
[email protected]94dc971d2011-03-05 19:08:3280#define IPC_MESSAGE_START ResourceMsgStart
[email protected]03ff5e52011-09-30 00:28:1481#undef IPC_MESSAGE_EXPORT
82#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
[email protected]94dc971d2011-03-05 19:08:3283
[email protected]92a98df92013-06-06 02:47:4284IPC_ENUM_TRAITS_MAX_VALUE( \
85 net::HttpResponseInfo::ConnectionInfo, \
86 net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1)
87
horo7e40ec72014-09-30 09:23:4688IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRequestMode,
89 content::FETCH_REQUEST_MODE_LAST)
90
horo89252e82014-10-02 12:03:4391IPC_ENUM_TRAITS_MAX_VALUE(content::FetchCredentialsMode,
92 content::FETCH_CREDENTIALS_MODE_LAST)
93
[email protected]2336ffe2011-11-24 01:23:3494IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseHead)
[email protected]0bf419d12014-05-28 01:02:2395IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseInfo)
[email protected]d43d2e112012-08-07 01:10:1996 IPC_STRUCT_TRAITS_MEMBER(request_start)
97 IPC_STRUCT_TRAITS_MEMBER(response_start)
[email protected]2336ffe2011-11-24 01:23:3498IPC_STRUCT_TRAITS_END()
99
100IPC_STRUCT_TRAITS_BEGIN(content::SyncLoadResult)
101 IPC_STRUCT_TRAITS_PARENT(content::ResourceResponseHead)
davidben015fd322014-09-03 23:31:33102 IPC_STRUCT_TRAITS_MEMBER(error_code)
[email protected]2336ffe2011-11-24 01:23:34103 IPC_STRUCT_TRAITS_MEMBER(final_url)
104 IPC_STRUCT_TRAITS_MEMBER(data)
105IPC_STRUCT_TRAITS_END()
106
[email protected]0bf419d12014-05-28 01:02:23107IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo)
[email protected]94dc971d2011-03-05 19:08:32108 IPC_STRUCT_TRAITS_MEMBER(request_time)
109 IPC_STRUCT_TRAITS_MEMBER(response_time)
110 IPC_STRUCT_TRAITS_MEMBER(headers)
111 IPC_STRUCT_TRAITS_MEMBER(mime_type)
112 IPC_STRUCT_TRAITS_MEMBER(charset)
113 IPC_STRUCT_TRAITS_MEMBER(security_info)
114 IPC_STRUCT_TRAITS_MEMBER(content_length)
[email protected]dfd682172011-04-13 19:57:25115 IPC_STRUCT_TRAITS_MEMBER(encoded_data_length)
[email protected]94dc971d2011-03-05 19:08:32116 IPC_STRUCT_TRAITS_MEMBER(appcache_id)
117 IPC_STRUCT_TRAITS_MEMBER(appcache_manifest_url)
[email protected]94dc971d2011-03-05 19:08:32118 IPC_STRUCT_TRAITS_MEMBER(load_timing)
119 IPC_STRUCT_TRAITS_MEMBER(devtools_info)
120 IPC_STRUCT_TRAITS_MEMBER(download_file_path)
121 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_spdy)
122 IPC_STRUCT_TRAITS_MEMBER(was_npn_negotiated)
123 IPC_STRUCT_TRAITS_MEMBER(was_alternate_protocol_available)
[email protected]92a98df92013-06-06 02:47:42124 IPC_STRUCT_TRAITS_MEMBER(connection_info)
[email protected]94dc971d2011-03-05 19:08:32125 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_proxy)
[email protected]b9fd01ba2012-02-28 01:50:40126 IPC_STRUCT_TRAITS_MEMBER(npn_negotiated_protocol)
[email protected]94dc971d2011-03-05 19:08:32127 IPC_STRUCT_TRAITS_MEMBER(socket_address)
[email protected]6ee72da12014-07-22 04:39:10128 IPC_STRUCT_TRAITS_MEMBER(was_fetched_via_service_worker)
horo00320572014-10-01 07:56:28129 IPC_STRUCT_TRAITS_MEMBER(was_fallback_required_by_service_worker)
[email protected]6ee72da12014-07-22 04:39:10130 IPC_STRUCT_TRAITS_MEMBER(original_url_via_service_worker)
horo1eac3a72014-10-21 03:37:20131 IPC_STRUCT_TRAITS_MEMBER(response_type_via_service_worker)
shimazu403d2d92014-09-19 01:25:16132 IPC_STRUCT_TRAITS_MEMBER(service_worker_fetch_start)
133 IPC_STRUCT_TRAITS_MEMBER(service_worker_fetch_ready)
134 IPC_STRUCT_TRAITS_MEMBER(service_worker_fetch_end)
jeremyimbdcd2a72014-10-31 16:38:04135 IPC_STRUCT_TRAITS_MEMBER(proxy_server)
[email protected]94dc971d2011-03-05 19:08:32136IPC_STRUCT_TRAITS_END()
137
[email protected]cba24642014-08-15 20:49:59138IPC_STRUCT_TRAITS_BEGIN(net::RedirectInfo)
139 IPC_STRUCT_TRAITS_MEMBER(status_code)
140 IPC_STRUCT_TRAITS_MEMBER(new_method)
141 IPC_STRUCT_TRAITS_MEMBER(new_url)
142 IPC_STRUCT_TRAITS_MEMBER(new_first_party_for_cookies)
143 IPC_STRUCT_TRAITS_MEMBER(new_referrer)
144IPC_STRUCT_TRAITS_END()
145
[email protected]94dc971d2011-03-05 19:08:32146// Parameters for a resource request.
147IPC_STRUCT_BEGIN(ResourceHostMsg_Request)
148 // The request method: GET, POST, etc.
149 IPC_STRUCT_MEMBER(std::string, method)
150
151 // The requested URL.
152 IPC_STRUCT_MEMBER(GURL, url)
153
154 // Usually the URL of the document in the top-level window, which may be
155 // checked by the third-party cookie blocking policy. Leaving it empty may
156 // lead to undesired cookie blocking. Third-party cookie blocking can be
157 // bypassed by setting first_party_for_cookies = url, but this should ideally
158 // only be done if there really is no way to determine the correct value.
159 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies)
160
161 // The referrer to use (may be empty).
162 IPC_STRUCT_MEMBER(GURL, referrer)
163
[email protected]d5a50342011-12-05 21:56:52164 // The referrer policy to use.
[email protected]180ef242013-11-07 06:50:46165 IPC_STRUCT_MEMBER(blink::WebReferrerPolicy, referrer_policy)
[email protected]d5a50342011-12-05 21:56:52166
[email protected]48ed2612014-01-21 00:30:57167 // The frame's visiblity state.
168 IPC_STRUCT_MEMBER(blink::WebPageVisibilityState, visiblity_state)
169
[email protected]94dc971d2011-03-05 19:08:32170 // Additional HTTP request headers.
171 IPC_STRUCT_MEMBER(std::string, headers)
172
173 // net::URLRequest load flags (0 by default).
174 IPC_STRUCT_MEMBER(int, load_flags)
175
176 // Process ID from which this request originated, or zero if it originated
177 // in the renderer itself.
[email protected]01cb19912013-09-11 19:13:03178 // If kDirectNPAPIRequests isn't specified, then plugin requests get routed
179 // through the renderer and and this holds the pid of the plugin process.
180 // Otherwise this holds the render_process_id of the view that has the plugin.
[email protected]94dc971d2011-03-05 19:08:32181 IPC_STRUCT_MEMBER(int, origin_pid)
182
183 // What this resource load is for (main frame, sub-frame, sub-resource,
184 // object).
[email protected]6c1e05212014-07-31 00:59:40185 IPC_STRUCT_MEMBER(content::ResourceType, resource_type)
[email protected]94dc971d2011-03-05 19:08:32186
[email protected]102ab682013-02-05 19:45:32187 // The priority of this request.
[email protected]a9344092d2013-02-27 00:56:45188 IPC_STRUCT_MEMBER(net::RequestPriority, priority)
[email protected]102ab682013-02-05 19:45:32189
[email protected]94dc971d2011-03-05 19:08:32190 // Used by plugin->browser requests to get the correct net::URLRequestContext.
191 IPC_STRUCT_MEMBER(uint32, request_context)
192
193 // Indicates which frame (or worker context) the request is being loaded into,
[email protected]10f110fa2014-06-15 23:32:46194 // or kAppCacheNoHostId.
[email protected]94dc971d2011-03-05 19:08:32195 IPC_STRUCT_MEMBER(int, appcache_host_id)
196
[email protected]c4c091f2014-03-07 13:06:13197 // Indicates which frame (or worker context) the request is being loaded into,
198 // or kInvalidServiceWorkerProviderId.
199 IPC_STRUCT_MEMBER(int, service_worker_provider_id)
200
horo258fc4232014-09-05 10:15:31201 // True if the request should not be handled by the ServiceWorker.
202 IPC_STRUCT_MEMBER(bool, skip_service_worker)
203
horo7e40ec72014-09-30 09:23:46204 // The request mode passed to the ServiceWorker.
205 IPC_STRUCT_MEMBER(content::FetchRequestMode, fetch_request_mode)
206
horo89252e82014-10-02 12:03:43207 // The credentials mode passed to the ServiceWorker.
208 IPC_STRUCT_MEMBER(content::FetchCredentialsMode, fetch_credentials_mode)
209
horoe392d342014-10-03 06:23:23210 // The request context passed to the ServiceWorker.
211 IPC_STRUCT_MEMBER(content::RequestContextType, fetch_request_context_type)
212
213 // The frame type passed to the ServiceWorker.
214 IPC_STRUCT_MEMBER(content::RequestContextFrameType, fetch_frame_type)
215
[email protected]e3e402c2012-08-21 13:57:42216 // Optional resource request body (may be null).
[email protected]14f154a2014-03-11 16:24:41217 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>,
[email protected]e3e402c2012-08-21 13:57:42218 request_body)
[email protected]94dc971d2011-03-05 19:08:32219
220 IPC_STRUCT_MEMBER(bool, download_to_file)
221
222 // True if the request was user initiated.
223 IPC_STRUCT_MEMBER(bool, has_user_gesture)
[email protected]418da612011-07-21 19:01:52224
[email protected]3821f7a2014-08-13 16:40:08225 // True if load timing data should be collected for request.
226 IPC_STRUCT_MEMBER(bool, enable_load_timing)
227
ljagielski6615c1c2014-10-29 15:49:30228 // True if upload progress should be available for request.
229 IPC_STRUCT_MEMBER(bool, enable_upload_progress)
230
[email protected]60eca4eb2013-12-06 00:02:16231 // The routing id of the RenderFrame.
232 IPC_STRUCT_MEMBER(int, render_frame_id)
233
[email protected]418da612011-07-21 19:01:52234 // True if |frame_id| is the main frame of a RenderView.
235 IPC_STRUCT_MEMBER(bool, is_main_frame)
236
[email protected]79a70282014-03-03 21:29:35237 // True if |parent_render_frame_id| is the main frame of a RenderView.
[email protected]91043a8232011-11-04 16:41:19238 IPC_STRUCT_MEMBER(bool, parent_is_main_frame)
239
240 // Identifies the parent frame of the frame that sent the request.
241 // -1 if unknown / invalid.
[email protected]79a70282014-03-03 21:29:35242 IPC_STRUCT_MEMBER(int, parent_render_frame_id)
[email protected]91043a8232011-11-04 16:41:19243
Sylvain Defresnec6ccc77d2014-09-19 10:19:35244 IPC_STRUCT_MEMBER(ui::PageTransition, transition_type)
[email protected]4ad5d77d2011-12-03 02:00:48245
[email protected]4972fc82013-11-19 04:33:42246 // For navigations, whether this navigation should replace the current session
247 // history entry on commit.
248 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
249
[email protected]4ad5d77d2011-12-03 02:00:48250 // The following two members identify a previous request that has been
251 // created before this navigation has been transferred to a new render view.
252 // This serves the purpose of recycling the old request.
253 // Unless this refers to a transferred navigation, these values are -1 and -1.
254 IPC_STRUCT_MEMBER(int, transferred_request_child_id)
255 IPC_STRUCT_MEMBER(int, transferred_request_request_id)
[email protected]80744782012-05-04 01:47:00256
257 // Whether or not we should allow the URL to download.
258 IPC_STRUCT_MEMBER(bool, allow_download)
[email protected]94dc971d2011-03-05 19:08:32259IPC_STRUCT_END()
260
[email protected]dcbe3df2014-02-06 23:08:37261// Parameters for a ResourceMsg_RequestComplete
262IPC_STRUCT_BEGIN(ResourceMsg_RequestCompleteData)
263 // The error code.
264 IPC_STRUCT_MEMBER(int, error_code)
265
266 // Was ignored by the request handler.
267 IPC_STRUCT_MEMBER(bool, was_ignored_by_handler)
268
269 // A copy of the data requested exists in the cache.
270 IPC_STRUCT_MEMBER(bool, exists_in_cache)
271
272 // Serialized security info; see content/common/ssl_status_serialization.h.
273 IPC_STRUCT_MEMBER(std::string, security_info)
274
275 // Time the request completed.
276 IPC_STRUCT_MEMBER(base::TimeTicks, completion_time)
[email protected]c8c567582014-02-10 12:54:57277
278 // Total amount of data received from the network.
279 IPC_STRUCT_MEMBER(int64, encoded_data_length)
[email protected]dcbe3df2014-02-06 23:08:37280IPC_STRUCT_END()
281
[email protected]94dc971d2011-03-05 19:08:32282// Resource messages sent from the browser to the renderer.
283
284// Sent when the headers are available for a resource request.
[email protected]f4653192013-09-06 19:24:05285IPC_MESSAGE_CONTROL2(ResourceMsg_ReceivedResponse,
286 int /* request_id */,
287 content::ResourceResponseHead)
[email protected]94dc971d2011-03-05 19:08:32288
289// Sent when cached metadata from a resource request is ready.
[email protected]f4653192013-09-06 19:24:05290IPC_MESSAGE_CONTROL2(ResourceMsg_ReceivedCachedMetadata,
291 int /* request_id */,
292 std::vector<char> /* data */)
[email protected]94dc971d2011-03-05 19:08:32293
294// Sent as upload progress is being made.
[email protected]f4653192013-09-06 19:24:05295IPC_MESSAGE_CONTROL3(ResourceMsg_UploadProgress,
296 int /* request_id */,
297 int64 /* position */,
298 int64 /* size */)
[email protected]94dc971d2011-03-05 19:08:32299
300// Sent when the request has been redirected. The receiver is expected to
301// respond with either a FollowRedirect message (if the redirect is to be
302// followed) or a CancelRequest message (if it should not be followed).
[email protected]cba24642014-08-15 20:49:59303IPC_MESSAGE_CONTROL3(ResourceMsg_ReceivedRedirect,
[email protected]f4653192013-09-06 19:24:05304 int /* request_id */,
[email protected]cba24642014-08-15 20:49:59305 net::RedirectInfo /* redirect_info */,
[email protected]f4653192013-09-06 19:24:05306 content::ResourceResponseHead)
[email protected]94dc971d2011-03-05 19:08:32307
[email protected]f0fa1ab2012-09-18 06:28:38308// Sent to set the shared memory buffer to be used to transmit response data to
309// the renderer. Subsequent DataReceived messages refer to byte ranges in the
310// shared memory buffer. The shared memory buffer should be retained by the
311// renderer until the resource request completes.
312//
313// NOTE: The shared memory handle should already be mapped into the process
314// that receives this message.
315//
[email protected]9d9387e2013-01-12 16:55:08316// TODO(darin): The |renderer_pid| parameter is just a temporary parameter,
317// added to help in debugging crbug/160401.
318//
[email protected]f4653192013-09-06 19:24:05319IPC_MESSAGE_CONTROL4(ResourceMsg_SetDataBuffer,
320 int /* request_id */,
321 base::SharedMemoryHandle /* shm_handle */,
322 int /* shm_size */,
323 base::ProcessId /* renderer_pid */)
[email protected]f0fa1ab2012-09-18 06:28:38324
325// Sent when some data from a resource request is ready. The data offset and
326// length specify a byte range into the shared memory buffer provided by the
327// SetDataBuffer message.
[email protected]f4653192013-09-06 19:24:05328IPC_MESSAGE_CONTROL4(ResourceMsg_DataReceived,
329 int /* request_id */,
330 int /* data_offset */,
331 int /* data_length */,
332 int /* encoded_data_length */)
[email protected]94dc971d2011-03-05 19:08:32333
334// Sent when some data from a resource request has been downloaded to
335// file. This is only called in the 'download_to_file' case and replaces
336// ResourceMsg_DataReceived in the call sequence in that case.
[email protected]f4653192013-09-06 19:24:05337IPC_MESSAGE_CONTROL3(ResourceMsg_DataDownloaded,
338 int /* request_id */,
339 int /* data_len */,
340 int /* encoded_data_length */)
[email protected]94dc971d2011-03-05 19:08:32341
342// Sent when the request has been completed.
[email protected]dcbe3df2014-02-06 23:08:37343IPC_MESSAGE_CONTROL2(ResourceMsg_RequestComplete,
[email protected]f4653192013-09-06 19:24:05344 int /* request_id */,
[email protected]dcbe3df2014-02-06 23:08:37345 ResourceMsg_RequestCompleteData)
[email protected]94dc971d2011-03-05 19:08:32346
347// Resource messages sent from the renderer to the browser.
348
349// Makes a resource request via the browser.
[email protected]5636d902014-05-13 23:19:10350IPC_MESSAGE_CONTROL3(ResourceHostMsg_RequestResource,
351 int /* routing_id */,
[email protected]94dc971d2011-03-05 19:08:32352 int /* request_id */,
353 ResourceHostMsg_Request)
354
355// Cancels a resource request with the ID given as the parameter.
[email protected]f4653192013-09-06 19:24:05356IPC_MESSAGE_CONTROL1(ResourceHostMsg_CancelRequest,
357 int /* request_id */)
[email protected]94dc971d2011-03-05 19:08:32358
[email protected]94dc971d2011-03-05 19:08:32359// Follows a redirect that occured for the resource request with the ID given
360// as the parameter.
[email protected]b97fc382014-05-14 20:06:34361IPC_MESSAGE_CONTROL1(ResourceHostMsg_FollowRedirect,
362 int /* request_id */)
[email protected]94dc971d2011-03-05 19:08:32363
364// Makes a synchronous resource request via the browser.
365IPC_SYNC_MESSAGE_ROUTED2_1(ResourceHostMsg_SyncLoad,
366 int /* request_id */,
367 ResourceHostMsg_Request,
[email protected]2336ffe2011-11-24 01:23:34368 content::SyncLoadResult)
[email protected]94dc971d2011-03-05 19:08:32369
370// Sent when the renderer process is done processing a DataReceived
371// message.
[email protected]f4653192013-09-06 19:24:05372IPC_MESSAGE_CONTROL1(ResourceHostMsg_DataReceived_ACK,
373 int /* request_id */)
[email protected]94dc971d2011-03-05 19:08:32374
375// Sent when the renderer has processed a DataDownloaded message.
[email protected]f4653192013-09-06 19:24:05376IPC_MESSAGE_CONTROL1(ResourceHostMsg_DataDownloaded_ACK,
377 int /* request_id */)
[email protected]94dc971d2011-03-05 19:08:32378
379// Sent by the renderer process to acknowledge receipt of a
380// UploadProgress message.
[email protected]f4653192013-09-06 19:24:05381IPC_MESSAGE_CONTROL1(ResourceHostMsg_UploadProgress_ACK,
382 int /* request_id */)
[email protected]94dc971d2011-03-05 19:08:32383
384// Sent when the renderer process deletes a resource loader.
385IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
386 int /* request_id */)
[email protected]a9344092d2013-02-27 00:56:45387
388// Sent by the renderer when a resource request changes priority.
[email protected]ed038bf2014-04-07 22:02:39389IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
[email protected]f4653192013-09-06 19:24:05390 int /* request_id */,
[email protected]ed038bf2014-04-07 22:02:39391 net::RequestPriority,
392 int /* intra_priority_value */)