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

Unified Diff: content/common/resource_messages.cc

Issue 1957483003: Removal of SignedCertificateTimestampStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reacted to comments of estark Created 4 years, 7 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 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

Powered by Google App Engine
This is Rietveld 408576698