| 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/process.h" | 10 #include "base/process.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 template <> | 33 template <> |
| 34 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { | 34 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { |
| 35 typedef scoped_refptr<net::HttpResponseHeaders> param_type; | 35 typedef scoped_refptr<net::HttpResponseHeaders> param_type; |
| 36 static void Write(Message* m, const param_type& p); | 36 static void Write(Message* m, const param_type& p); |
| 37 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 37 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 38 static void Log(const param_type& p, std::string* l); | 38 static void Log(const param_type& p, std::string* l); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 template <> | 41 template <> |
| 42 struct CONTENT_EXPORT ParamTraits<webkit_base::DataElement> { | 42 struct CONTENT_EXPORT ParamTraits<webkit_common::DataElement> { |
| 43 typedef webkit_base::DataElement param_type; | 43 typedef webkit_common::DataElement param_type; |
| 44 static void Write(Message* m, const param_type& p); | 44 static void Write(Message* m, const param_type& p); |
| 45 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 45 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 46 static void Log(const param_type& p, std::string* l); | 46 static void Log(const param_type& p, std::string* l); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 template <> | 49 template <> |
| 50 struct ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> > { | 50 struct ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> > { |
| 51 typedef scoped_refptr<webkit_glue::ResourceDevToolsInfo> param_type; | 51 typedef scoped_refptr<webkit_glue::ResourceDevToolsInfo> param_type; |
| 52 static void Write(Message* m, const param_type& p); | 52 static void Write(Message* m, const param_type& p); |
| 53 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 53 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 int /* request_id */) | 306 int /* request_id */) |
| 307 | 307 |
| 308 // Sent when the renderer process deletes a resource loader. | 308 // Sent when the renderer process deletes a resource loader. |
| 309 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 309 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
| 310 int /* request_id */) | 310 int /* request_id */) |
| 311 | 311 |
| 312 // Sent by the renderer when a resource request changes priority. | 312 // Sent by the renderer when a resource request changes priority. |
| 313 IPC_MESSAGE_ROUTED2(ResourceHostMsg_DidChangePriority, | 313 IPC_MESSAGE_ROUTED2(ResourceHostMsg_DidChangePriority, |
| 314 int /* request_id */, | 314 int /* request_id */, |
| 315 net::RequestPriority) | 315 net::RequestPriority) |
| OLD | NEW |