OLD | NEW |
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 // NOTE: All messages must send an |int request_id| as their first parameter. | 7 // NOTE: All messages must send an |int request_id| as their first parameter. |
8 | 8 |
9 // Multiply-included message file, hence no include guard. | 9 // Multiply-included message file, hence no include guard. |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ | 22 #ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ |
23 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ | 23 #define CONTENT_COMMON_RESOURCE_MESSAGES_H_ |
24 | 24 |
25 namespace net { | 25 namespace net { |
26 struct LoadTimingInfo; | 26 struct LoadTimingInfo; |
27 } | 27 } |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 struct ResourceDevToolsInfo; | 30 struct ResourceDevToolsInfo; |
31 | |
32 // TODO(erikchen): Temporary code to help track http://crbug.com/527588. | |
33 // If |m| does not have type ResourceMsg_DataReceived, this method has no | |
34 // effect. Otherwise, this method checks that the |data_offset| member is less | |
35 // than 512kB. | |
36 void CheckContentsOfDataReceivedMessage(const IPC::Message* m); | |
37 } | 31 } |
38 | 32 |
39 namespace IPC { | 33 namespace IPC { |
40 | 34 |
41 template <> | 35 template <> |
42 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { | 36 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { |
43 typedef scoped_refptr<net::HttpResponseHeaders> param_type; | 37 typedef scoped_refptr<net::HttpResponseHeaders> param_type; |
44 static void Write(Message* m, const param_type& p); | 38 static void Write(Message* m, const param_type& p); |
45 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); | 39 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); |
46 static void Log(const param_type& p, std::string* l); | 40 static void Log(const param_type& p, std::string* l); |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 | 397 |
404 // Sent when the renderer process deletes a resource loader. | 398 // Sent when the renderer process deletes a resource loader. |
405 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 399 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
406 int /* request_id */) | 400 int /* request_id */) |
407 | 401 |
408 // Sent by the renderer when a resource request changes priority. | 402 // Sent by the renderer when a resource request changes priority. |
409 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 403 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
410 int /* request_id */, | 404 int /* request_id */, |
411 net::RequestPriority, | 405 net::RequestPriority, |
412 int /* intra_priority_value */) | 406 int /* intra_priority_value */) |
OLD | NEW |