OLD | NEW |
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 #include "content/common/resource_messages.h" | 5 #include "content/common/resource_messages.h" |
6 | 6 |
7 #include "net/base/load_timing_info.h" | 7 #include "net/base/load_timing_info.h" |
8 #include "net/http/http_response_headers.h" | 8 #include "net/http/http_response_headers.h" |
9 | 9 |
10 namespace IPC { | 10 namespace IPC { |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 (*r)->swap_elements(&elements); | 328 (*r)->swap_elements(&elements); |
329 (*r)->set_identifier(identifier); | 329 (*r)->set_identifier(identifier); |
330 return true; | 330 return true; |
331 } | 331 } |
332 | 332 |
333 void ParamTraits<scoped_refptr<content::ResourceRequestBody> >::Log( | 333 void ParamTraits<scoped_refptr<content::ResourceRequestBody> >::Log( |
334 const param_type& p, std::string* l) { | 334 const param_type& p, std::string* l) { |
335 l->append("<ResourceRequestBody>"); | 335 l->append("<ResourceRequestBody>"); |
336 } | 336 } |
337 | 337 |
| 338 void ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>>::Write( |
| 339 base::Pickle* m, |
| 340 const param_type& p) { |
| 341 WriteParam(m, p.get() != NULL); |
| 342 if (p.get()) { |
| 343 p->Persist(m); |
| 344 } |
| 345 } |
| 346 |
| 347 bool ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>>::Read( |
| 348 const base::Pickle* m, |
| 349 base::PickleIterator* iter, |
| 350 param_type* r) { |
| 351 bool has_object; |
| 352 if (!ReadParam(m, iter, &has_object)) |
| 353 return false; |
| 354 if (has_object) |
| 355 *r = net::ct::SignedCertificateTimestamp::CreateFromPickle(iter); |
| 356 return true; |
| 357 } |
| 358 |
| 359 void ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>>::Log( |
| 360 const param_type& p, std::string* l) { |
| 361 l->append("<SignedCertificateTimestamp>"); |
| 362 } |
| 363 |
| 364 |
338 } // namespace IPC | 365 } // namespace IPC |
OLD | NEW |