Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: content/common/resource_messages.h

Issue 1659003003: IPC::Message -> base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more mac fix Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/media/media_param_traits.cc ('k') | content/common/resource_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10
(...skipping 21 matching lines...) Expand all
32 32
33 namespace content { 33 namespace content {
34 struct ResourceDevToolsInfo; 34 struct ResourceDevToolsInfo;
35 } 35 }
36 36
37 namespace IPC { 37 namespace IPC {
38 38
39 template <> 39 template <>
40 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { 40 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > {
41 typedef scoped_refptr<net::HttpResponseHeaders> param_type; 41 typedef scoped_refptr<net::HttpResponseHeaders> param_type;
42 static void Write(Message* m, const param_type& p); 42 static void Write(base::Pickle* m, const param_type& p);
43 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); 43 static bool Read(const base::Pickle* m,
44 base::PickleIterator* iter,
45 param_type* r);
44 static void Log(const param_type& p, std::string* l); 46 static void Log(const param_type& p, std::string* l);
45 }; 47 };
46 48
47 template <> 49 template <>
48 struct CONTENT_EXPORT ParamTraits<storage::DataElement> { 50 struct CONTENT_EXPORT ParamTraits<storage::DataElement> {
49 typedef storage::DataElement param_type; 51 typedef storage::DataElement param_type;
50 static void Write(Message* m, const param_type& p); 52 static void Write(base::Pickle* m, const param_type& p);
51 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); 53 static bool Read(const base::Pickle* m,
54 base::PickleIterator* iter,
55 param_type* r);
52 static void Log(const param_type& p, std::string* l); 56 static void Log(const param_type& p, std::string* l);
53 }; 57 };
54 58
55 template <> 59 template <>
56 struct ParamTraits<scoped_refptr<content::ResourceDevToolsInfo> > { 60 struct ParamTraits<scoped_refptr<content::ResourceDevToolsInfo> > {
57 typedef scoped_refptr<content::ResourceDevToolsInfo> param_type; 61 typedef scoped_refptr<content::ResourceDevToolsInfo> param_type;
58 static void Write(Message* m, const param_type& p); 62 static void Write(base::Pickle* m, const param_type& p);
59 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); 63 static bool Read(const base::Pickle* m,
64 base::PickleIterator* iter,
65 param_type* r);
60 static void Log(const param_type& p, std::string* l); 66 static void Log(const param_type& p, std::string* l);
61 }; 67 };
62 68
63 template <> 69 template <>
64 struct ParamTraits<net::LoadTimingInfo> { 70 struct ParamTraits<net::LoadTimingInfo> {
65 typedef net::LoadTimingInfo param_type; 71 typedef net::LoadTimingInfo param_type;
66 static void Write(Message* m, const param_type& p); 72 static void Write(base::Pickle* m, const param_type& p);
67 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); 73 static bool Read(const base::Pickle* m,
74 base::PickleIterator* iter,
75 param_type* r);
68 static void Log(const param_type& p, std::string* l); 76 static void Log(const param_type& p, std::string* l);
69 }; 77 };
70 78
71 template <> 79 template <>
72 struct ParamTraits<scoped_refptr<content::ResourceRequestBody> > { 80 struct ParamTraits<scoped_refptr<content::ResourceRequestBody> > {
73 typedef scoped_refptr<content::ResourceRequestBody> param_type; 81 typedef scoped_refptr<content::ResourceRequestBody> param_type;
74 static void Write(Message* m, const param_type& p); 82 static void Write(base::Pickle* m, const param_type& p);
75 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); 83 static bool Read(const base::Pickle* m,
84 base::PickleIterator* iter,
85 param_type* r);
76 static void Log(const param_type& p, std::string* l); 86 static void Log(const param_type& p, std::string* l);
77 }; 87 };
78 88
79 } // namespace IPC 89 } // namespace IPC
80 90
81 #endif // CONTENT_COMMON_RESOURCE_MESSAGES_H_ 91 #endif // CONTENT_COMMON_RESOURCE_MESSAGES_H_
82 92
83 93
84 #define IPC_MESSAGE_START ResourceMsgStart 94 #define IPC_MESSAGE_START ResourceMsgStart
85 #undef IPC_MESSAGE_EXPORT 95 #undef IPC_MESSAGE_EXPORT
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 427
418 // Sent when the renderer process deletes a resource loader. 428 // Sent when the renderer process deletes a resource loader.
419 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 429 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
420 int /* request_id */) 430 int /* request_id */)
421 431
422 // Sent by the renderer when a resource request changes priority. 432 // Sent by the renderer when a resource request changes priority.
423 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 433 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
424 int /* request_id */, 434 int /* request_id */,
425 net::RequestPriority, 435 net::RequestPriority,
426 int /* intra_priority_value */) 436 int /* intra_priority_value */)
OLDNEW
« no previous file with comments | « content/common/media/media_param_traits.cc ('k') | content/common/resource_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698