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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 template <> | 34 template <> |
35 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { | 35 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { |
36 typedef scoped_refptr<net::HttpResponseHeaders> param_type; | 36 typedef scoped_refptr<net::HttpResponseHeaders> param_type; |
37 static void Write(Message* m, const param_type& p); | 37 static void Write(Message* m, const param_type& p); |
38 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 38 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
39 static void Log(const param_type& p, std::string* l); | 39 static void Log(const param_type& p, std::string* l); |
40 }; | 40 }; |
41 | 41 |
42 template <> | 42 template <> |
43 struct CONTENT_EXPORT ParamTraits<webkit_common::DataElement> { | 43 struct CONTENT_EXPORT ParamTraits<storage::DataElement> { |
44 typedef webkit_common::DataElement param_type; | 44 typedef storage::DataElement param_type; |
45 static void Write(Message* m, const param_type& p); | 45 static void Write(Message* m, const param_type& p); |
46 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 46 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
47 static void Log(const param_type& p, std::string* l); | 47 static void Log(const param_type& p, std::string* l); |
48 }; | 48 }; |
49 | 49 |
50 template <> | 50 template <> |
51 struct ParamTraits<scoped_refptr<content::ResourceDevToolsInfo> > { | 51 struct ParamTraits<scoped_refptr<content::ResourceDevToolsInfo> > { |
52 typedef scoped_refptr<content::ResourceDevToolsInfo> param_type; | 52 typedef scoped_refptr<content::ResourceDevToolsInfo> param_type; |
53 static void Write(Message* m, const param_type& p); | 53 static void Write(Message* m, const param_type& p); |
54 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 54 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 352 |
353 // Sent when the renderer process deletes a resource loader. | 353 // Sent when the renderer process deletes a resource loader. |
354 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, | 354 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, |
355 int /* request_id */) | 355 int /* request_id */) |
356 | 356 |
357 // Sent by the renderer when a resource request changes priority. | 357 // Sent by the renderer when a resource request changes priority. |
358 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, | 358 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, |
359 int /* request_id */, | 359 int /* request_id */, |
360 net::RequestPriority, | 360 net::RequestPriority, |
361 int /* intra_priority_value */) | 361 int /* intra_priority_value */) |
OLD | NEW |