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

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: fixed IPC problem 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
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/ssl_status_serialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/resource_messages.cc
diff --git a/content/common/resource_messages.cc b/content/common/resource_messages.cc
index 842952f47ab38b6aac06cef2d8de746bf294cc93..f30501476f4771fe0f1c476e02639ddda9155ea7 100644
--- a/content/common/resource_messages.cc
+++ b/content/common/resource_messages.cc
@@ -434,4 +434,48 @@ void ParamTraits<scoped_refptr<content::ResourceRequestBody> >::Log(
l->append("<ResourceRequestBody>");
}
+void ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>>::GetSize(
+ base::PickleSizer* s,
+ const param_type& p) {
+ GetParamSize(s, p.get() != NULL);
+ if (p.get()) {
+ GetParamSize(s, static_cast<unsigned int>(p->version));
+ GetParamSize(s, p->log_id);
+ GetParamSize(s, p->timestamp);
+ GetParamSize(s, p->extensions);
+ GetParamSize(s, static_cast<unsigned int>(p->signature.hash_algorithm));
+ GetParamSize(s,
+ static_cast<unsigned int>(p->signature.signature_algorithm));
+ GetParamSize(s, p->signature.signature_data);
+ GetParamSize(s, static_cast<unsigned int>(p->origin));
+ GetParamSize(s, p->log_description);
+ }
+}
+
+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
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/ssl_status_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698