| 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_manager.h" |
| 6 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_u
i_service.h" |
| 7 #include "content/public/browser/browser_thread.h" |
| 8 |
| 9 #include "net/proxy/proxy_config.h" |
| 10 |
| 11 namespace data_reduction_proxy { |
| 12 |
| 13 DataReductionProxyUIService::DataReductionProxyUIService() { |
| 14 ui_manager_ = new DataReductionProxyUIManager( |
| 15 content::BrowserThread::GetMessageLoopProxyForThread( |
| 16 content::BrowserThread::UI), |
| 17 content::BrowserThread::GetMessageLoopProxyForThread( |
| 18 content::BrowserThread::IO)); |
| 19 } |
| 20 |
| 21 DataReductionProxyUIService::~DataReductionProxyUIService() { } |
| 22 |
| 23 void DataReductionProxyUIService::set_proxy_config_getter( |
| 24 const DataReductionProxyNetworkDelegate::ProxyConfigGetter& getter) { |
| 25 proxy_config_getter_ = getter; |
| 26 } |
| 27 |
| 28 const net::ProxyConfig& |
| 29 DataReductionProxyUIService::data_reduction_proxy_config() const { |
| 30 return proxy_config_getter_.Run(); |
| 31 } |
| 32 |
| 33 const scoped_refptr<DataReductionProxyUIManager>& |
| 34 DataReductionProxyUIService::ui_manager() const { |
| 35 return ui_manager_; |
| 36 } |
| 37 |
| 38 } // namespace data_reduction_proxy |
| OLD | NEW |