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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h

Issue 903213003: Enable QUIC for proxies based on Finch config and command line switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed formatting Created 5 years, 10 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 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_H_ 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_H_
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_H_ 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Initializes the data reduction proxy with profile and local state prefs, 80 // Initializes the data reduction proxy with profile and local state prefs,
81 // and a |UrlRequestContextGetter| for canary probes. The caller must ensure 81 // and a |UrlRequestContextGetter| for canary probes. The caller must ensure
82 // that all parameters remain alive for the lifetime of the 82 // that all parameters remain alive for the lifetime of the
83 // |DataReductionProxySettings| instance. 83 // |DataReductionProxySettings| instance.
84 void InitDataReductionProxySettings( 84 void InitDataReductionProxySettings(
85 PrefService* prefs, 85 PrefService* prefs,
86 net::URLRequestContextGetter* url_request_context_getter, 86 net::URLRequestContextGetter* url_request_context_getter,
87 net::NetLog* net_log, 87 net::NetLog* net_log,
88 DataReductionProxyEventStore* event_store); 88 DataReductionProxyEventStore* event_store);
89 89
90 // Sets DataReductionProxy params.
bengr 2015/02/11 23:57:28 Say that params() must be non-null.
tbansal1 2015/02/12 02:27:21 Done.
91 void EnableQUIC(bool quic_enabled_for_proxies);
bengr 2015/02/11 23:57:28 EnableQuic, as per rch's recommendation and rename
tbansal1 2015/02/12 02:27:21 Done.
92
90 // Sets the |statistics_prefs_| to be used for data reduction proxy pref reads 93 // Sets the |statistics_prefs_| to be used for data reduction proxy pref reads
91 // and writes. 94 // and writes.
92 void SetDataReductionProxyStatisticsPrefs( 95 void SetDataReductionProxyStatisticsPrefs(
93 DataReductionProxyStatisticsPrefs* statistics_prefs); 96 DataReductionProxyStatisticsPrefs* statistics_prefs);
94 97
95 // Sets the |on_data_reduction_proxy_enabled_| callback and runs to register 98 // Sets the |on_data_reduction_proxy_enabled_| callback and runs to register
96 // the DataReductionProxyEnabled synthetic field trial. 99 // the DataReductionProxyEnabled synthetic field trial.
97 void SetOnDataReductionEnabledCallback( 100 void SetOnDataReductionEnabledCallback(
98 const base::Callback<void(bool)>& on_data_reduction_proxy_enabled); 101 const base::Callback<void(bool)>& on_data_reduction_proxy_enabled);
99 102
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 base::ThreadChecker thread_checker_; 305 base::ThreadChecker thread_checker_;
303 306
304 scoped_ptr<DataReductionProxyConfig> config_; 307 scoped_ptr<DataReductionProxyConfig> config_;
305 308
306 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettings); 309 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettings);
307 }; 310 };
308 311
309 } // namespace data_reduction_proxy 312 } // namespace data_reduction_proxy
310 313
311 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SET TINGS_H_ 314 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SET TINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698