| 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 #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 Loading... |
| 80 | 80 |
| 81 // Initializes the data reduction proxy with profile and local state prefs, | 81 // Initializes the data reduction proxy with profile and local state prefs, |
| 82 // and a |UrlRequestContextGetter| for canary probes. The caller must ensure | 82 // and a |UrlRequestContextGetter| for canary probes. The caller must ensure |
| 83 // that all parameters remain alive for the lifetime of the | 83 // that all parameters remain alive for the lifetime of the |
| 84 // |DataReductionProxySettings| instance. | 84 // |DataReductionProxySettings| instance. |
| 85 void InitDataReductionProxySettings( | 85 void InitDataReductionProxySettings( |
| 86 PrefService* prefs, | 86 PrefService* prefs, |
| 87 scoped_ptr<DataReductionProxyStatisticsPrefs> statistics_prefs, | 87 scoped_ptr<DataReductionProxyStatisticsPrefs> statistics_prefs, |
| 88 net::URLRequestContextGetter* url_request_context_getter, | 88 net::URLRequestContextGetter* url_request_context_getter, |
| 89 net::NetLog* net_log, | 89 net::NetLog* net_log, |
| 90 DataReductionProxyEventStore* event_store); | 90 DataReductionProxyEventStore* event_store, |
| 91 bool enable_quic); |
| 91 | 92 |
| 92 // Constructs statistics prefs. This should not be called if a valid | 93 // Constructs statistics prefs. This should not be called if a valid |
| 93 // statistics prefs is passed into the constructor. | 94 // statistics prefs is passed into the constructor. |
| 94 void EnableCompressionStatisticsLogging( | 95 void EnableCompressionStatisticsLogging( |
| 95 PrefService* prefs, | 96 PrefService* prefs, |
| 96 scoped_refptr<base::SequencedTaskRunner> ui_task_runner, | 97 scoped_refptr<base::SequencedTaskRunner> ui_task_runner, |
| 97 const base::TimeDelta& commit_delay); | 98 const base::TimeDelta& commit_delay); |
| 98 | 99 |
| 99 base::WeakPtr<DataReductionProxyStatisticsPrefs> statistics_prefs(); | 100 base::WeakPtr<DataReductionProxyStatisticsPrefs> statistics_prefs(); |
| 100 | 101 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 base::ThreadChecker thread_checker_; | 314 base::ThreadChecker thread_checker_; |
| 314 | 315 |
| 315 scoped_ptr<DataReductionProxyConfig> config_; | 316 scoped_ptr<DataReductionProxyConfig> config_; |
| 316 | 317 |
| 317 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettings); | 318 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettings); |
| 318 }; | 319 }; |
| 319 | 320 |
| 320 } // namespace data_reduction_proxy | 321 } // namespace data_reduction_proxy |
| 321 | 322 |
| 322 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SET
TINGS_H_ | 323 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SET
TINGS_H_ |
| OLD | NEW |