OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_u
i_service.h" |
| 6 |
| 7 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_u
i_manager.h" |
| 8 #include "net/proxy/proxy_config.h" |
| 9 |
| 10 namespace data_reduction_proxy { |
| 11 |
| 12 DataReductionProxyUIService::DataReductionProxyUIService( |
| 13 const DataReductionProxyNetworkDelegate::ProxyConfigGetter& getter, |
| 14 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, |
| 15 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner) |
| 16 : proxy_config_getter_(getter) { |
| 17 ui_manager_ = new DataReductionProxyUIManager(ui_task_runner, |
| 18 io_task_runner); |
| 19 } |
| 20 |
| 21 DataReductionProxyUIService::~DataReductionProxyUIService() { |
| 22 } |
| 23 |
| 24 const net::ProxyConfig& |
| 25 DataReductionProxyUIService::data_reduction_proxy_config() const { |
| 26 return proxy_config_getter_.Run(); |
| 27 } |
| 28 |
| 29 const scoped_refptr<DataReductionProxyUIManager>& |
| 30 DataReductionProxyUIService::ui_manager() const { |
| 31 return ui_manager_; |
| 32 } |
| 33 |
| 34 } // namespace data_reduction_proxy |
OLD | NEW |