| 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 11f2def56ce009bdc6805ab2cc8c30fc711ecf89..1473d03e2ef581e14c7c95c4d78243d5e7a48ce6 100644
|
| --- a/components/cronet/url_request_context_config.cc
|
| +++ b/components/cronet/url_request_context_config.cc
|
| @@ -12,6 +12,22 @@ namespace cronet {
|
| #include "components/cronet/url_request_context_config_list.h"
|
| #undef DEFINE_CONTEXT_CONFIG
|
|
|
| +URLRequestContextConfig::QuicHint::QuicHint() {
|
| +}
|
| +
|
| +URLRequestContextConfig::QuicHint::~QuicHint() {
|
| +}
|
| +
|
| +// static
|
| +void URLRequestContextConfig::QuicHint::RegisterJSONConverter(
|
| + base::JSONValueConverter<URLRequestContextConfig::QuicHint>* converter) {
|
| + converter->RegisterStringField(REQUEST_CONTEXT_CONFIG_QUIC_HINT_SERVER,
|
| + &URLRequestContextConfig::QuicHint::server);
|
| + converter->RegisterIntField(
|
| + REQUEST_CONTEXT_CONFIG_QUIC_HINT_ALT_PORT,
|
| + &URLRequestContextConfig::QuicHint::alternate_port);
|
| +}
|
| +
|
| URLRequestContextConfig::URLRequestContextConfig() {
|
| }
|
|
|
| @@ -54,6 +70,8 @@ void URLRequestContextConfig::RegisterJSONConverter(
|
| &URLRequestContextConfig::http_cache_max_size);
|
| converter->RegisterStringField(REQUEST_CONTEXT_CONFIG_STORAGE_PATH,
|
| &URLRequestContextConfig::storage_path);
|
| + converter->RegisterRepeatedMessage(REQUEST_CONTEXT_CONFIG_QUIC_HINTS,
|
| + &URLRequestContextConfig::quic_hints);
|
| }
|
|
|
| } // namespace cronet
|
|
|