Index: content/common/resource_messages.h |
diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h |
index 6397eb5abeadcf9babfd92cd8a3874765bb9452d..4d47f94a210d23f0079dea88dceb81e13e44cc75 100644 |
--- a/content/common/resource_messages.h |
+++ b/content/common/resource_messages.h |
@@ -20,7 +20,9 @@ |
#include "content/public/common/resource_response.h" |
#include "ipc/ipc_message_macros.h" |
#include "net/base/request_priority.h" |
+#include "net/cert/signed_certificate_timestamp.h" |
#include "net/http/http_response_info.h" |
+#include "net/ssl/signed_certificate_timestamp_and_status.h" |
#include "net/url_request/redirect_info.h" |
#ifndef CONTENT_COMMON_RESOURCE_MESSAGES_H_ |
@@ -86,6 +88,16 @@ struct ParamTraits<scoped_refptr<content::ResourceRequestBody> > { |
static void Log(const param_type& p, std::string* l); |
}; |
+template <> |
+struct ParamTraits<scoped_refptr<net::ct::SignedCertificateTimestamp>> { |
+ typedef scoped_refptr<net::ct::SignedCertificateTimestamp> param_type; |
+ static void Write(base::Pickle* m, const param_type& p); |
+ static bool Read(const base::Pickle* m, |
+ base::PickleIterator* iter, |
+ param_type* r); |
+ static void Log(const param_type& p, std::string* l); |
+}; |
+ |
} // namespace IPC |
#endif // CONTENT_COMMON_RESOURCE_MESSAGES_H_ |
@@ -153,6 +165,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::ResourceResponseInfo) |
IPC_STRUCT_TRAITS_MEMBER(cache_storage_cache_name) |
IPC_STRUCT_TRAITS_MEMBER(proxy_server) |
IPC_STRUCT_TRAITS_MEMBER(is_using_lofi) |
+ IPC_STRUCT_TRAITS_MEMBER(signed_certificate_timestamps) |
IPC_STRUCT_TRAITS_END() |
IPC_STRUCT_TRAITS_BEGIN(net::RedirectInfo) |
@@ -164,6 +177,13 @@ IPC_STRUCT_TRAITS_BEGIN(net::RedirectInfo) |
IPC_STRUCT_TRAITS_MEMBER(referred_token_binding_host) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(net::SignedCertificateTimestampAndStatus) |
+ IPC_STRUCT_TRAITS_MEMBER(sct) |
+ IPC_STRUCT_TRAITS_MEMBER(status) |
+IPC_STRUCT_TRAITS_END() |
+ |
+IPC_ENUM_TRAITS_MAX_VALUE(net::ct::SCTVerifyStatus, net::ct::SCT_STATUS_MAX) |
+ |
// Parameters for a resource request. |
IPC_STRUCT_BEGIN(ResourceHostMsg_Request) |
// The request method: GET, POST, etc. |