Chromium Code Reviews| Index: content/common/resource_messages.cc |
| diff --git a/content/common/resource_messages.cc b/content/common/resource_messages.cc |
| index aa2481267e99e9cb77c419f5a639e76a2cd9eaf1..e474be0b97d330cb430d8b20a3e540681c732b81 100644 |
| --- a/content/common/resource_messages.cc |
| +++ b/content/common/resource_messages.cc |
| @@ -335,4 +335,31 @@ void ParamTraits<scoped_refptr<content::ResourceRequestBody> >::Log( |
| l->append("<ResourceRequestBody>"); |
| } |
| +void ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>>::Write( |
| + base::Pickle* m, |
| + const param_type& p) { |
| + WriteParam(m, p.get() != NULL); |
| + if (p.get()) { |
|
Charlie Reis
2016/05/12 21:13:09
nit: No braces needed for one-line body.
dwaxweiler
2016/05/12 22:24:06
Acknowledged.
|
| + p->Persist(m); |
| + } |
| +} |
| + |
| +bool ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>>::Read( |
| + const base::Pickle* m, |
| + base::PickleIterator* iter, |
| + param_type* r) { |
| + bool has_object; |
| + if (!ReadParam(m, iter, &has_object)) |
| + return false; |
| + if (has_object) |
| + *r = net::ct::SignedCertificateTimestamp::CreateFromPickle(iter); |
| + return true; |
| +} |
| + |
| +void ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>>::Log( |
| + const param_type& p, |
| + std::string* l) { |
| + l->append("<SignedCertificateTimestamp>"); |
| +} |
| + |
| } // namespace IPC |