Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: content/common/resource_messages.cc

Issue 1772603002: Addition of Certificate Transparency details to Security panel of DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed some unnecessary includes and fixed order in net.gypi Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698