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

Side by Side Diff: components/cronet/url_request_context_config.cc

Issue 937513003: Add Data Saver support to Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nit Created 5 years, 7 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 unified diff | Download patch
OLDNEW
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 &URLRequestContextConfig::http_cache); 99 &URLRequestContextConfig::http_cache);
100 converter->RegisterBoolField(REQUEST_CONTEXT_CONFIG_LOAD_DISABLE_CACHE, 100 converter->RegisterBoolField(REQUEST_CONTEXT_CONFIG_LOAD_DISABLE_CACHE,
101 &URLRequestContextConfig::load_disable_cache); 101 &URLRequestContextConfig::load_disable_cache);
102 converter->RegisterIntField(REQUEST_CONTEXT_CONFIG_HTTP_CACHE_MAX_SIZE, 102 converter->RegisterIntField(REQUEST_CONTEXT_CONFIG_HTTP_CACHE_MAX_SIZE,
103 &URLRequestContextConfig::http_cache_max_size); 103 &URLRequestContextConfig::http_cache_max_size);
104 converter->RegisterRepeatedMessage(REQUEST_CONTEXT_CONFIG_QUIC_HINTS, 104 converter->RegisterRepeatedMessage(REQUEST_CONTEXT_CONFIG_QUIC_HINTS,
105 &URLRequestContextConfig::quic_hints); 105 &URLRequestContextConfig::quic_hints);
106 converter->RegisterStringField( 106 converter->RegisterStringField(
107 REQUEST_CONTEXT_CONFIG_QUIC_OPTIONS, 107 REQUEST_CONTEXT_CONFIG_QUIC_OPTIONS,
108 &URLRequestContextConfig::quic_connection_options); 108 &URLRequestContextConfig::quic_connection_options);
109 converter->RegisterStringField(
110 REQUEST_CONTEXT_CONFIG_DATA_REDUCTION_PRIMARY_PROXY,
111 &URLRequestContextConfig::data_reduction_primary_proxy);
112 converter->RegisterStringField(
113 REQUEST_CONTEXT_CONFIG_DATA_REDUCTION_FALLBACK_PROXY,
114 &URLRequestContextConfig::data_reduction_fallback_proxy);
115 converter->RegisterStringField(
116 REQUEST_CONTEXT_CONFIG_DATA_REDUCTION_SECURE_PROXY_CHECK_URL,
117 &URLRequestContextConfig::data_reduction_secure_proxy_check_url);
118 converter->RegisterStringField(
119 REQUEST_CONTEXT_CONFIG_DATA_REDUCTION_PROXY_KEY,
120 &URLRequestContextConfig::data_reduction_proxy_key);
109 } 121 }
110 122
111 } // namespace cronet 123 } // namespace cronet
OLDNEW
« no previous file with comments | « components/cronet/url_request_context_config.h ('k') | components/cronet/url_request_context_config_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698