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

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

Issue 1966983003: Generate param traits size methods for IPC files in content/ (and traits it depends on). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix owners Created 4 years, 7 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 22 matching lines...) Expand all
33 33
34 namespace content { 34 namespace content {
35 struct ResourceDevToolsInfo; 35 struct ResourceDevToolsInfo;
36 } 36 }
37 37
38 namespace IPC { 38 namespace IPC {
39 39
40 template <> 40 template <>
41 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > { 41 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > {
42 typedef scoped_refptr<net::HttpResponseHeaders> param_type; 42 typedef scoped_refptr<net::HttpResponseHeaders> param_type;
43 static void GetSize(base::PickleSizer* s, const param_type& p);
43 static void Write(base::Pickle* m, const param_type& p); 44 static void Write(base::Pickle* m, const param_type& p);
44 static bool Read(const base::Pickle* m, 45 static bool Read(const base::Pickle* m,
45 base::PickleIterator* iter, 46 base::PickleIterator* iter,
46 param_type* r); 47 param_type* r);
47 static void Log(const param_type& p, std::string* l); 48 static void Log(const param_type& p, std::string* l);
48 }; 49 };
49 50
50 template <> 51 template <>
51 struct CONTENT_EXPORT ParamTraits<storage::DataElement> { 52 struct CONTENT_EXPORT ParamTraits<storage::DataElement> {
52 typedef storage::DataElement param_type; 53 typedef storage::DataElement param_type;
54 static void GetSize(base::PickleSizer* s, const param_type& p);
53 static void Write(base::Pickle* m, const param_type& p); 55 static void Write(base::Pickle* m, const param_type& p);
54 static bool Read(const base::Pickle* m, 56 static bool Read(const base::Pickle* m,
55 base::PickleIterator* iter, 57 base::PickleIterator* iter,
56 param_type* r); 58 param_type* r);
57 static void Log(const param_type& p, std::string* l); 59 static void Log(const param_type& p, std::string* l);
58 }; 60 };
59 61
60 template <> 62 template <>
61 struct ParamTraits<scoped_refptr<content::ResourceDevToolsInfo> > { 63 struct ParamTraits<scoped_refptr<content::ResourceDevToolsInfo> > {
62 typedef scoped_refptr<content::ResourceDevToolsInfo> param_type; 64 typedef scoped_refptr<content::ResourceDevToolsInfo> param_type;
65 static void GetSize(base::PickleSizer* s, const param_type& p);
63 static void Write(base::Pickle* m, const param_type& p); 66 static void Write(base::Pickle* m, const param_type& p);
64 static bool Read(const base::Pickle* m, 67 static bool Read(const base::Pickle* m,
65 base::PickleIterator* iter, 68 base::PickleIterator* iter,
66 param_type* r); 69 param_type* r);
67 static void Log(const param_type& p, std::string* l); 70 static void Log(const param_type& p, std::string* l);
68 }; 71 };
69 72
70 template <> 73 template <>
71 struct ParamTraits<net::LoadTimingInfo> { 74 struct ParamTraits<net::LoadTimingInfo> {
72 typedef net::LoadTimingInfo param_type; 75 typedef net::LoadTimingInfo param_type;
76 static void GetSize(base::PickleSizer* s, const param_type& p);
73 static void Write(base::Pickle* m, const param_type& p); 77 static void Write(base::Pickle* m, const param_type& p);
74 static bool Read(const base::Pickle* m, 78 static bool Read(const base::Pickle* m,
75 base::PickleIterator* iter, 79 base::PickleIterator* iter,
76 param_type* r); 80 param_type* r);
77 static void Log(const param_type& p, std::string* l); 81 static void Log(const param_type& p, std::string* l);
78 }; 82 };
79 83
80 template <> 84 template <>
81 struct ParamTraits<scoped_refptr<content::ResourceRequestBody> > { 85 struct ParamTraits<scoped_refptr<content::ResourceRequestBody> > {
82 typedef scoped_refptr<content::ResourceRequestBody> param_type; 86 typedef scoped_refptr<content::ResourceRequestBody> param_type;
87 static void GetSize(base::PickleSizer* s, const param_type& p);
83 static void Write(base::Pickle* m, const param_type& p); 88 static void Write(base::Pickle* m, const param_type& p);
84 static bool Read(const base::Pickle* m, 89 static bool Read(const base::Pickle* m,
85 base::PickleIterator* iter, 90 base::PickleIterator* iter,
86 param_type* r); 91 param_type* r);
87 static void Log(const param_type& p, std::string* l); 92 static void Log(const param_type& p, std::string* l);
88 }; 93 };
89 94
90 } // namespace IPC 95 } // namespace IPC
91 96
92 #endif // CONTENT_COMMON_RESOURCE_MESSAGES_H_ 97 #endif // CONTENT_COMMON_RESOURCE_MESSAGES_H_
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 452
448 // Sent when the renderer process deletes a resource loader. 453 // Sent when the renderer process deletes a resource loader.
449 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 454 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
450 int /* request_id */) 455 int /* request_id */)
451 456
452 // Sent by the renderer when a resource request changes priority. 457 // Sent by the renderer when a resource request changes priority.
453 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority, 458 IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
454 int /* request_id */, 459 int /* request_id */,
455 net::RequestPriority, 460 net::RequestPriority,
456 int /* intra_priority_value */) 461 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