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

Unified Diff: content/common/resource_messages.h

Issue 2817033002: Plumb the net::SSLInfo to the browser process when it's using the network service. (Closed)
Patch Set: add tests Created 3 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.h
diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h
index a7a0a3e6fe4439f9199b2090a6b35bc4d2a2dc36..36c0e75e9d8ad1bd4adcd209f7f5b5e0db819690 100644
--- a/content/common/resource_messages.h
+++ b/content/common/resource_messages.h
@@ -22,10 +22,12 @@
#include "content/public/common/resource_response.h"
#include "ipc/ipc_message_macros.h"
#include "net/base/request_priority.h"
+#include "net/cert/ct_policy_status.h"
#include "net/cert/signed_certificate_timestamp.h"
#include "net/cert/signed_certificate_timestamp_and_status.h"
#include "net/http/http_response_info.h"
#include "net/nqe/effective_connection_type.h"
+#include "net/ssl/ssl_info.h"
#include "net/url_request/redirect_info.h"
#include "third_party/WebKit/public/platform/WebMixedContentContextType.h"
@@ -54,6 +56,28 @@ struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > {
};
template <>
+struct ParamTraits<net::SSLInfo> {
+ typedef net::SSLInfo param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
+ 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);
+};
+
+template <>
+struct ParamTraits<net::HashValue> {
+ typedef net::HashValue param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
+ 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);
+};
+
+template <>
struct CONTENT_EXPORT ParamTraits<storage::DataElement> {
typedef storage::DataElement param_type;
static void GetSize(base::PickleSizer* s, const param_type& p);
@@ -121,6 +145,14 @@ IPC_ENUM_TRAITS_MAX_VALUE( \
net::HttpResponseInfo::ConnectionInfo, \
net::HttpResponseInfo::NUM_OF_CONNECTION_INFOS - 1)
+IPC_ENUM_TRAITS(net::TokenBindingParam)
dcheng 2017/04/13 21:12:15 Can we add a MAX value for this enum?
jam 2017/04/13 23:04:22 I was avoiding changing src/net for now with these
+IPC_ENUM_TRAITS(net::SSLInfo::HandshakeType)
dcheng 2017/04/13 21:12:15 Ditto for this and the other enums.
+IPC_ENUM_TRAITS_MAX_VALUE(net::ct::EVPolicyCompliance,
+ net::ct::EVPolicyCompliance::EV_POLICY_MAX)
+IPC_ENUM_TRAITS(net::ct::CertPolicyCompliance)
+IPC_ENUM_TRAITS(net::OCSPVerifyResult::ResponseStatus)
+IPC_ENUM_TRAITS(net::OCSPRevocationStatus)
+
IPC_ENUM_TRAITS_MAX_VALUE(content::FetchRequestMode,
content::FETCH_REQUEST_MODE_LAST)

Powered by Google App Engine
This is Rietveld 408576698