OLD | NEW |
(Empty) | |
| 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 |
| 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 "net/proxy/proxy_config.h" |
| 8 |
| 9 namespace data_reduction_proxy { |
| 10 |
| 11 DataReductionProxyUIService::DataReductionProxyUIService() { |
| 12 ui_manager_ = new DataReductionProxyUIManager(); |
| 13 } |
| 14 |
| 15 DataReductionProxyUIService::~DataReductionProxyUIService() { } |
| 16 |
| 17 void DataReductionProxyUIService::set_proxy_config_getter( |
| 18 const ProxyConfigGetter& getter) { |
| 19 proxy_config_getter_ = getter; |
| 20 } |
| 21 |
| 22 const net::ProxyConfig& |
| 23 DataReductionProxyUIService::data_reduction_proxy_config() const { |
| 24 return proxy_config_getter_.Run(); |
| 25 } |
| 26 |
| 27 const scoped_refptr<DataReductionProxyUIManager>& |
| 28 DataReductionProxyUIService::ui_manager() const { |
| 29 return ui_manager_; |
| 30 } |
| 31 |
| 32 } // namespace data_reduction_proxy |
OLD | NEW |