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

Unified 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698