| Index: content/common/resource_messages.cc
|
| diff --git a/content/common/resource_messages.cc b/content/common/resource_messages.cc
|
| index aa2481267e99e9cb77c419f5a639e76a2cd9eaf1..ec0faca6b05196854a43aa12142e2442a0ae6fa3 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()) {
|
| + 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
|
|
|