| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/cronet/url_request_context_config.h" | 5 #include "components/cronet/url_request_context_config.h" |
| 6 | 6 |
| 7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "net/quic/quic_protocol.h" | 9 #include "net/quic/quic_protocol.h" |
| 10 #include "net/quic/quic_utils.h" | 10 #include "net/quic/quic_utils.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 &URLRequestContextConfig::http_cache); | 96 &URLRequestContextConfig::http_cache); |
| 97 converter->RegisterBoolField(REQUEST_CONTEXT_CONFIG_LOAD_DISABLE_CACHE, | 97 converter->RegisterBoolField(REQUEST_CONTEXT_CONFIG_LOAD_DISABLE_CACHE, |
| 98 &URLRequestContextConfig::load_disable_cache); | 98 &URLRequestContextConfig::load_disable_cache); |
| 99 converter->RegisterIntField(REQUEST_CONTEXT_CONFIG_HTTP_CACHE_MAX_SIZE, | 99 converter->RegisterIntField(REQUEST_CONTEXT_CONFIG_HTTP_CACHE_MAX_SIZE, |
| 100 &URLRequestContextConfig::http_cache_max_size); | 100 &URLRequestContextConfig::http_cache_max_size); |
| 101 converter->RegisterRepeatedMessage(REQUEST_CONTEXT_CONFIG_QUIC_HINTS, | 101 converter->RegisterRepeatedMessage(REQUEST_CONTEXT_CONFIG_QUIC_HINTS, |
| 102 &URLRequestContextConfig::quic_hints); | 102 &URLRequestContextConfig::quic_hints); |
| 103 converter->RegisterStringField( | 103 converter->RegisterStringField( |
| 104 REQUEST_CONTEXT_CONFIG_QUIC_OPTIONS, | 104 REQUEST_CONTEXT_CONFIG_QUIC_OPTIONS, |
| 105 &URLRequestContextConfig::quic_connection_options); | 105 &URLRequestContextConfig::quic_connection_options); |
| 106 converter->RegisterBoolField(REQUEST_CONTEXT_CONFIG_ENABLE_DATA_SAVER, |
| 107 &URLRequestContextConfig::enable_data_saver); |
| 108 converter->RegisterStringField(REQUEST_CONTEXT_CONFIG_DATA_SAVER_KEY, |
| 109 &URLRequestContextConfig::data_saver_key); |
| 106 } | 110 } |
| 107 | 111 |
| 108 } // namespace cronet | 112 } // namespace cronet |
| OLD | NEW |