Chromium Code Reviews| Index: content/common/resource_messages.cc |
| diff --git a/content/common/resource_messages.cc b/content/common/resource_messages.cc |
| index 2c0cbe12b7b832e244c9a36b1ce5ad142b2c0e65..9e658c1849a6d5f699737ba5bec0da720a15f05f 100644 |
| --- a/content/common/resource_messages.cc |
| +++ b/content/common/resource_messages.cc |
| @@ -327,4 +327,32 @@ 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()) { |
| + p->Persist(m); |
| + // Do not disclose Set-Cookie headers over IPC. |
|
palmer
2016/04/26 23:12:01
Which behavior do you intend?
dwaxweiler
2016/04/28 07:46:19
Sorry, these comments were leftovers from copy-pas
|
| + //p->Persist(m, net::ct::SignedCertificateTimestamp::PERSIST_SANS_COOKIES); |
| + } |
| +} |
| + |
| +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 |