| Index: components/data_reduction_proxy/content/data_reduction_proxy_ui_service.cc
|
| diff --git a/components/data_reduction_proxy/content/data_reduction_proxy_ui_service.cc b/components/data_reduction_proxy/content/data_reduction_proxy_ui_service.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ec6dd19a0ba860aa3ea84092d9146373b6de96fa
|
| --- /dev/null
|
| +++ b/components/data_reduction_proxy/content/data_reduction_proxy_ui_service.cc
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "components/data_reduction_proxy/content/data_reduction_proxy_ui_service.h"
|
| +#include "net/proxy/proxy_config.h"
|
| +
|
| +namespace data_reduction_proxy {
|
| +
|
| +DataReductionProxyUIService::DataReductionProxyUIService() {
|
| + ui_manager_ = new DataReductionProxyUIManager();
|
| +}
|
| +
|
| +DataReductionProxyUIService::~DataReductionProxyUIService() { }
|
| +
|
| +void DataReductionProxyUIService::set_proxy_config_getter(
|
| + const ProxyConfigGetter& getter) {
|
| + proxy_config_getter_ = getter;
|
| +}
|
| +
|
| +const net::ProxyConfig&
|
| +DataReductionProxyUIService::data_reduction_proxy_config() const {
|
| + return proxy_config_getter_.Run();
|
| +}
|
| +
|
| +const scoped_refptr<DataReductionProxyUIManager>&
|
| +DataReductionProxyUIService::ui_manager() const {
|
| + return ui_manager_;
|
| +}
|
| +
|
| +} // namespace data_reduction_proxy
|
|
|