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 "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.h" | 5 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.h" |
6 | 6 |
| 7 #include <utility> |
| 8 |
7 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
8 #include "build/build_config.h" | 10 #include "build/build_config.h" |
9 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" | 11 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
10 #include "chrome/common/chrome_content_client.h" | 12 #include "chrome/common/chrome_content_client.h" |
11 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
12 #include "components/data_reduction_proxy/content/browser/content_lofi_decider.h
" | 14 #include "components/data_reduction_proxy/content/browser/content_lofi_decider.h
" |
13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_retrieval_params.h" | 15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_retrieval_params.h" |
14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_expe
riments_stats.h" | 16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_expe
riments_stats.h" |
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" | 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d
ata.h" |
16 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" | 18 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param
s.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 scoped_ptr<data_reduction_proxy::ContentDataReductionProxyDebugUIService> | 76 scoped_ptr<data_reduction_proxy::ContentDataReductionProxyDebugUIService> |
75 data_reduction_proxy_ui_service( | 77 data_reduction_proxy_ui_service( |
76 new data_reduction_proxy::ContentDataReductionProxyDebugUIService( | 78 new data_reduction_proxy::ContentDataReductionProxyDebugUIService( |
77 base::Bind(&data_reduction_proxy::DataReductionProxyConfigurator:: | 79 base::Bind(&data_reduction_proxy::DataReductionProxyConfigurator:: |
78 GetProxyConfig, | 80 GetProxyConfig, |
79 base::Unretained( | 81 base::Unretained( |
80 data_reduction_proxy_io_data->configurator())), | 82 data_reduction_proxy_io_data->configurator())), |
81 ui_task_runner, io_task_runner, | 83 ui_task_runner, io_task_runner, |
82 g_browser_process->GetApplicationLocale())); | 84 g_browser_process->GetApplicationLocale())); |
83 data_reduction_proxy_io_data->set_debug_ui_service( | 85 data_reduction_proxy_io_data->set_debug_ui_service( |
84 data_reduction_proxy_ui_service.Pass()); | 86 std::move(data_reduction_proxy_ui_service)); |
85 #endif | 87 #endif |
86 | 88 |
87 return data_reduction_proxy_io_data; | 89 return data_reduction_proxy_io_data; |
88 } | 90 } |
OLD | NEW |