Chromium Code Reviews| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 320 (*r)->swap_elements(&elements); | 320 (*r)->swap_elements(&elements); |
| 321 (*r)->set_identifier(identifier); | 321 (*r)->set_identifier(identifier); |
| 322 return true; | 322 return true; |
| 323 } | 323 } |
| 324 | 324 |
| 325 void ParamTraits<scoped_refptr<content::ResourceRequestBody> >::Log( | 325 void ParamTraits<scoped_refptr<content::ResourceRequestBody> >::Log( |
| 326 const param_type& p, std::string* l) { | 326 const param_type& p, std::string* l) { |
| 327 l->append("<ResourceRequestBody>"); | 327 l->append("<ResourceRequestBody>"); |
| 328 } | 328 } |
| 329 | 329 |
| 330 void ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>>::Write( | |
| 331 base::Pickle* m, | |
| 332 const param_type& p) { | |
| 333 WriteParam(m, p.get() != NULL); | |
| 334 if (p.get()) { | |
| 335 p->Persist(m); | |
| 336 // 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
| |
| 337 //p->Persist(m, net::ct::SignedCertificateTimestamp::PERSIST_SANS_COOKIES); | |
| 338 } | |
| 339 } | |
| 340 | |
| 341 bool ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>>::Read( | |
| 342 const base::Pickle* m, | |
| 343 base::PickleIterator* iter, | |
| 344 param_type* r) { | |
| 345 bool has_object; | |
| 346 if (!ReadParam(m, iter, &has_object)) | |
| 347 return false; | |
| 348 if (has_object) | |
| 349 *r = net::ct::SignedCertificateTimestamp::CreateFromPickle(iter); | |
| 350 return true; | |
| 351 } | |
| 352 | |
| 353 void ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>>::Log( | |
| 354 const param_type& p, std::string* l) { | |
| 355 l->append("<SignedCertificateTimestamp>"); | |
| 356 } | |
| 357 | |
| 330 } // namespace IPC | 358 } // namespace IPC |
| OLD | NEW |