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

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: Removed boolean from api Created 5 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 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
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->RegisterStringField(
107 REQUEST_CONTEXT_CONFIG_DATA_REDUCTION_PRIMARY_PROXY,
108 &URLRequestContextConfig::data_reduction_primary_proxy);
109 converter->RegisterStringField(
110 REQUEST_CONTEXT_CONFIG_DATA_REDUCTION_FALLBACK_PROXY,
111 &URLRequestContextConfig::data_reduction_fallback_proxy);
112 converter->RegisterStringField(
113 REQUEST_CONTEXT_CONFIG_DATA_REDUCTION_SECURE_PROXY_CHECK_URL,
114 &URLRequestContextConfig::data_reduction_secure_proxy_check_url);
115 converter->RegisterStringField(
116 REQUEST_CONTEXT_CONFIG_DATA_REDUCTION_PROXY_KEY,
117 &URLRequestContextConfig::data_reduction_proxy_key);
106 } 118 }
107 119
108 } // namespace cronet 120 } // namespace cronet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698