| 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); |
| 31 } | 37 } |
| 32 | 38 |
| 33 namespace IPC { | 39 namespace IPC { |
| 34 | 40 |
| 35 template <> | 41 template <> |
| 36 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { | 42 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { |
| 37 typedef scoped_refptr<net::HttpResponseHeaders> param_type; | 43 typedef scoped_refptr<net::HttpResponseHeaders> param_type; |
| 38 static void Write(Message* m, const param_type& p); | 44 static void Write(Message* m, const param_type& p); |
| 39 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); | 45 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); |
| 40 static void Log(const param_type& p, std::string* l); | 46 static void Log(const param_type& p, std::string* l); |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 | 403 |
| 398 // Sent when the renderer process deletes a resource loader. | 404 // Sent when the renderer process deletes a resource loader. |
| 399 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 405 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 400 int /* request_id */) | 406 int /* request_id */) |
| 401 | 407 |
| 402 // Sent by the renderer when a resource request changes priority. | 408 // Sent by the renderer when a resource request changes priority. |
| 403 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 409 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
| 404 int /* request_id */, | 410 int /* request_id */, |
| 405 net::RequestPriority, | 411 net::RequestPriority, |
| 406 int /* intra_priority_value */) | 412 int /* intra_priority_value */) |
| OLD | NEW |