Index: components/cronet/url_request_context_config.cc |
diff --git a/components/cronet/url_request_context_config.cc b/components/cronet/url_request_context_config.cc |
index 6072f394d84cdde35069fc3a7e2f44eeb5ce490a..8ab099ddf63fbf579c9590dfde1de21c62509567 100644 |
--- a/components/cronet/url_request_context_config.cc |
+++ b/components/cronet/url_request_context_config.cc |
@@ -56,6 +56,18 @@ void URLRequestContextConfig::QuicHint::RegisterJSONConverter( |
&URLRequestContextConfig::QuicHint::alternate_port); |
} |
+// static |
+void URLRequestContextConfig::Hpkp::RegisterJSONConverter( |
+ base::JSONValueConverter<URLRequestContextConfig::Hpkp>* converter) { |
+ converter->RegisterStringField(REQUEST_CONTEXT_CONFIG_HPKP_HOST, |
+ &URLRequestContextConfig::Hpkp::host); |
+ converter->RegisterRepeatedString(REQUEST_CONTEXT_CONFIG_HPKP_PIN_HASHES, |
+ &URLRequestContextConfig::Hpkp::pin_hashes); |
+ converter->RegisterBoolField( |
+ REQUEST_CONTEXT_CONFIG_HPKP_INCLUDE_SUBDOMAINS, |
+ &URLRequestContextConfig::Hpkp::include_subdomains); |
+} |
+ |
URLRequestContextConfig::URLRequestContextConfig() {} |
URLRequestContextConfig::~URLRequestContextConfig() {} |
@@ -139,6 +151,8 @@ void URLRequestContextConfig::RegisterJSONConverter( |
converter->RegisterStringField( |
REQUEST_CONTEXT_CONFIG_DATA_REDUCTION_PROXY_KEY, |
&URLRequestContextConfig::data_reduction_proxy_key); |
+ converter->RegisterRepeatedMessage(REQUEST_CONTEXT_CONFIG_HPKP_LIST, |
+ &URLRequestContextConfig::hpkp_list); |
// For Testing. |
converter->RegisterCustomField<scoped_ptr<net::CertVerifier>>( |