| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_prox
y_io_data.h" | 5 #include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_prox
y_io_data.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_service.h" | |
| 8 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_retrieval_params.h" | 7 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_retrieval_params.h" |
| 9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_expe
riments_stats.h" | 8 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_expe
riments_stats.h" |
| 10 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" | 9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" |
| 11 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 10 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
| 11 #include "components/prefs/pref_service.h" |
| 12 #include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_prox
y_settings.h" | 12 #include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_prox
y_settings.h" |
| 13 #include "ios/chrome/browser/pref_names.h" | 13 #include "ios/chrome/browser/pref_names.h" |
| 14 #include "ios/web/public/web_client.h" | 14 #include "ios/web/public/web_client.h" |
| 15 | 15 |
| 16 using data_reduction_proxy::DataReductionProxyParams; | 16 using data_reduction_proxy::DataReductionProxyParams; |
| 17 | 17 |
| 18 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> | 18 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
| 19 CreateIOSChromeDataReductionProxyIOData( | 19 CreateIOSChromeDataReductionProxyIOData( |
| 20 net::NetLog* net_log, | 20 net::NetLog* net_log, |
| 21 PrefService* prefs, | 21 PrefService* prefs, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 40 new data_reduction_proxy::DataReductionProxyIOData( | 40 new data_reduction_proxy::DataReductionProxyIOData( |
| 41 IOSChromeDataReductionProxySettings::GetClient(), flags, net_log, | 41 IOSChromeDataReductionProxySettings::GetClient(), flags, net_log, |
| 42 io_task_runner, ui_task_runner, enabled, enable_quic, | 42 io_task_runner, ui_task_runner, enabled, enable_quic, |
| 43 web::GetWebClient()->GetUserAgent(false))); | 43 web::GetWebClient()->GetUserAgent(false))); |
| 44 data_reduction_proxy_io_data->experiments_stats()->InitializeOnUIThread( | 44 data_reduction_proxy_io_data->experiments_stats()->InitializeOnUIThread( |
| 45 data_reduction_proxy::DataReductionProxyConfigRetrievalParams::Create( | 45 data_reduction_proxy::DataReductionProxyConfigRetrievalParams::Create( |
| 46 prefs)); | 46 prefs)); |
| 47 | 47 |
| 48 return data_reduction_proxy_io_data; | 48 return data_reduction_proxy_io_data; |
| 49 } | 49 } |
| OLD | NEW |